views:

140

answers:

3

i want to get the latitude and longitude using the zipcode for android application

+1  A: 

You will have to use a Geocoding Service, like the ones provided by Google or the freely available Nominatim. Note that since you will be just providing a ZIP code, you might not get the results you want due to the inaccuracy of the address itself.

npinti
Also (at least for Google), make sure you fill in as many details as possible, and maybe even set some region options, to ensure the ZIP code is searched in the country you expect it to be. For ZIP code formats that hold spaces, you might want to remove those first, for otherwise Google might only use the first part and show you another country as well.
Arjan
A: 

Check this post out.... You can use Google Maps to do that

http://www.datawinconsulting.com/dnn/TechArticles/UpdateyourLatandLongwithGoogle/tabid/82/Default.aspx

Rahul
+2  A: 

You could use YQL like so: select centroid from geo.places where text="ZIPCODE_HERE"

Tyler Gillies