Get geo for a location using google geocoding api

If you need to get geocode for a location dynamically( specially for realty sites), you can use google map geo api which is very straight forward. Let you need to know geocode for “New York 10001”, that is city with zipcode, send your request to google map api as follows –
http://maps.google.com/maps/geo?q=New+York+10001&output=xml

the output parameter is to specify output format, you can pass csv also to get the value as csv, json and kml too. Its work well for USA and Canada but not works well for UK, show about a mile far from the location. Get the details here – http://code.google.com/apis/maps/documentation/geocoding/

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

One thought on “Get geo for a location using google geocoding api

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s