0

I downloaded related csv file from MaxMind, but I found there are only latitude longitude for a combination of zip code and city, is it possible to get latitude and longitude of the city only?

Ray Niu
  • 1
  • 2

1 Answers1

0

There are a few solutions to your problem, none are quite that easy I am afraid. While there might be a better solution, I will try to make this work with what you have.

First, you have two options. Either you pre-process the file you have and add city name, respectively replace the postal codes, or you can issue queries as you need them. There are two web services I found with a simple search (there might be more) that allow you to resolve your ZIP codes: Ziptastic and Free Zip Code Web Services. With the limited information you provided, I hope these are able to suit your needs.

However, there is an easier solution. You could use the Google Maps API which provide a web service to resolve the kind of request you would want to have resolved. Have a look at this question.

Community
  • 1
  • 1
Eric Tobias
  • 3,225
  • 4
  • 32
  • 50