tags:

views:

348

answers:

1

Hi Folks,

An question on latitude and longitude...Probably a silly one.

I have a set of latitude and longitudes for various locations.And, I have the latitude and longitude of the location in which I am in.

Now,I have to find the nearest places from my locations from the set of latitudes and longitudes I have. Is thee any special way of calculating it or it is just mere subtraction and checking the difference?

Could you please throw some light on this?

Thanks, J

+1  A: 

Hi

It depends on how the points are placed.

For example - if most of the points are in a parking lot, then Euclidean Distance should work well.

In other cases - Geodesic Distance needs to be computed. This link should help you with more information.

Here is the conversion from Decimal format to Degree-Minute-Second format and vice versa.

cheers

Andriyev
Hi Andriyev, Thanks for the information. All of my latitudes and longitudes are of the form "13.048869". Is there a way I could convert them to "53 09 02N" format? Sorry if its a way too dumb.Thanks,J
Abhishek
@jadaaih - Your lat, long is in decimal format. Updated the response with a link, which is about the conversion you seek.
Andriyev
@Andriyev - Thanks a bunch bro!
Abhishek
You are welcome.
Andriyev