views:

65

answers:

1

I have a list of areas names in my City and i need the Lat and Long of the same.

Is there any service which i can use the get the Data ?

i dont wanna use any map. i would like to make simple api calls and get the lat long via jSon or xml.

+3  A: 

You can use the Google Geocoding service:

REST format: http://code.google.com/apis/maps/documentation/geocoding/index.html

JavaScript: http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding

EDIT: For those too lazy to read, here's the REST format example..

xml response: http://maps.googleapis.com/maps/api/geocode/xml?address=Bangalore&sensor=false

json response: http://maps.googleapis.com/maps/api/geocode/json?address=Bangalore&sensor=false

Mike Gleason jr Couturier
that requires me to use google maps. isnt there a service which i can do with just a query to its api ?
Harsha M V
@Harsha Define `query`, define `api` and define `service`, because you are `querying` Google Geocoding `service`, using their REST or JS `api`.
Strelok
something like Http://website.com/api?place=Bangalore not sure what its called :D
Harsha M V
This is REST and no js required.. read the google doc I provided, its so simple...
Mike Gleason jr Couturier
Strelok
oops :D i read some place that with google maps. u need to have to map to make the call. thanks a lot. been a bit lazy to read thru i guess.
Harsha M V
No problem, glad to help :)
Mike Gleason jr Couturier