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:

Data comes from GeoNames ZIP codes. To build the MySQL database run the database/ shell script. It'll download the required data, setup the database and load the data into it.

Requires PHP with PDO and JSON support.