Reputation: 928
I have a set of GPS Cordniates like so:
N: 49 33 40, W: 101 26 21
I need to give these to google maps to find the location. - and idea on how? I am looking through Google Maps API 3 docs and coming up empty handed
Upvotes: 3
Views: 3751
Reputation: 17745
Google maps api doesn't handle DMS format. You'll have to convert it first to decimal values and then use reverse geocoding as Rohit suggested.
Check here and here for the transformation
P.S. The first link is from stackoverflow that's why I don't include the code. If an upvote is appropriate, then it should go to the author of that answer and not to me.
Upvotes: 3
Reputation: 300
Look at reverse geocoding: https://developers.google.com/maps/documentation/geocoding/#ReverseGeocoding
An example query:
http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true_or_false
Upvotes: 1