Files of check-in [ebe0ca4fac]
in the top-level directory
This is a webservice that allows us to map US ZIP codes to a pair of
Usage is very simple, just query the service with a ZIP code as a parameter:
And receive the coordinates in JSON format:
Data comes from GeoNames Postal Codes. It is distributed as a plain text file.
To build the MySQL database run the database/geonames.sh shell script. It'll
download the required data, setup the database structure and import the data
into it using MySQL's native load functionality.
Requires PHP with PDO and JSON support.
A webservice to find the nearest location (for example the nearest office,
store, etc of a business) to the given location (typically the user's), either
by coordinates or ZIP code, in the latter case using the ZIP2Coords webservice.
Locations are stored in the file locations.json in JSON format.
To use just query the service with either a ZIP code or a pair of coordinates:
To get a response such as:
Requires PHP with cURL support.