Find location by zip code

I am looking for a google API or any other API that returns me a location (as latitude / longitude or place name)

Using a geocoder, I can find lat, as long as I know the name of the place.

It could be a web service or some kind of query to some online database. I do not want to populate US zip codes with a local database.

+6
source share
4 answers

Google webservice and Javascript surveyor as geocoded zipcodes on their own, without an explicit placenta name. There is a speed limit and a daily limit with both. Google’s terms of service do not allow the storage of geocoded data; which you are not going to do - but they provide a mandate that displays geocoded points (points) on a Google map (which you may not intend to do).

In my opinion, five-digit postal codes by default correspond to USPS codes. For five-digit codes of other countries, you must specify the country.

Edit:

Javascript API Documentation: https://developers.google.com/maps/documentation/javascript/geocoding
Example for the Javascript API: https://google-developers.appspot.com/maps/documentation/javascript/examples/geocoding-simple (try entering 90210 )
Documentation for webservice: https://developers.google.com/maps/documentation/geocoding/
Example request: http://maps.googleapis.com/maps/api/geocode/xml?address=90210&sensor=false

You may find that the postal codes of some countries do not work. But in order to make an expression on clothes, they do not provide a zipcode-based location search, are incorrect. If you are having difficulty with specific country postal codes — such as, for example, the Indian PIN; best to be specific.

Edit # 2:

If you are interested in Indian pincodes, then the best result for Google was this thread: https://groups.google.com/group/datameet/browse_thread/thread/db5b8a3f4033ae36

+5
source

GeoNames provides several geolocation - related web services including lat / long information for zip codes.

+2
source

There are several publicly available web services on the Internet — here is one that returns location names (and other information) for zip codes:

  • USZip (select GetInfoByZIP)
0
source

If you're in the UK, the only way to do this effectively with the Google Maps API is to write it in javascript due to Google’s limit on the number of API calls per day from a single IP address.

If your solution will be under moderate pressure, you can look at a solution that uses the PAF UK Royal Mail file. One of these services with which I integrated my work is Postcode Anywhere (www.postcodeanywhere.com). They have a great API, available in a variety of formats ... it was the easiest integration I've done lately.

0
source

Source: https://habr.com/ru/post/911066/


All Articles