Reputation: 141
I need to get the latitude and longitude for a string which consists of areaname,cityname,statename and countryname using google maps api v3... How is it posssible ?
Upvotes: 1
Views: 2525
Reputation: 46653
This is called Geocoding.
Here's an example request. You need to separate the 4 sections of your location by commas:
http://maps.googleapis.com/maps/api/geocode/json?address=Kemp+Town,+Brighton,%20East%20Sussex,+UK&sensor=true
Upvotes: 3