Update of "ZIP2Coords"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: d869830d5e73670f550392ccdfe36ca5703dedf8
Page Name:ZIP2Coords
Date: 2015-04-17 17:52:55
Original User: densch
Content

This is a webservice that allows us to map US ZIP codes to a pair of coordinates.

Usage is very simple, just query the service with a ZIP code as a parameter: http://localhost/zip2coords/?zip=90210

And receive the coordinates in JSON format:

{"latitude":"34.0901000","longitude":"-118.4065000"}
Data comes from GeoNames ZIP codes. To build the MySQL database run the database/geonames.sh shell script. It'll download the required data, setup the database and load the data into it.

Requires PHP with PDO and JSON support.