Ree
Ree

Reputation: 141

Convert area,city,state,country to latitude and longitude in googlep maps api v3?

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

Answers (1)

Colin Pickard
Colin Pickard

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

Related Questions