Finding City and Zip Code for a Location

后端 未结 8 868
既然无缘
既然无缘 2020-12-28 10:45

Given a latitude and longitude, what is the easiest way to find the name of the city and the US zip code of that location.

(This is similar to https://stackoverflow.

相关标签:
8条回答
  • 2020-12-28 11:49

    Any of the online services mentioned and their competitors offer "reverse geocoding" which does what you ask--convert lon/lat coordinates into a street address of some-sort.

    If you only need the zip codes and/or cities, then I would obtain the Zip Code database and urban area database from the US Census Bureau which is FREE (paid for by your tax dollars). http://www.census.gov/geo/www/cob/zt_metadata.html.

    From there, you can either come up with your own search algorithm for the spatial data or make use of one of a spatial databases such as Microsoft SQL Server, PostGIS, Oracle Spatial, ArcSDE, etc.

    Update: The 2010 Census data can be found at: http://www2.census.gov/census_2010/

    0 讨论(0)
  • 2020-12-28 11:49

    You can buy a fairly inexpensive subscription to zipcodes with lat and long info here: http://www.zipcodedownload.com/

    0 讨论(0)
提交回复
热议问题