UK postcode & geolocation API, serving up open data
See the code
UK postcode & geolocation API, serving up open data
Query for UK postcodes and geolocations over HTTP.
Postcodes.io serves the ONS Postcode Directory, Ordnance Survey Open Names and Scottish Postcode Directory datasets. The API runs against a pre-built PostgreSQL/PostGIS database that is published as a pg_dump from an upstream pipeline — this repository contains the HTTP service only.
Start querying UK postcode data immediately on your local machine with Docker
docker-compose up
# Run the entire test suite end-to-end (build images, seed DB, run mocha):
make test
# Interactive test container:
make test-up
make test-shell
$api-container> ./bin/load_test_seed # rebuild the seeded DB
$api-container> npm test # mocha against the seeded DB
# Run a command in the running test container:
make test-exec npm test
MIT
625 followers · starred Nov 2015
419 followers · starred Dec 2018
117 followers · starred Mar 2023
127 followers · starred Dec 2015
UK postcode & geolocation API, serving up open data
See the code
UK postcode & geolocation API, serving up open data
Query for UK postcodes and geolocations over HTTP.
Postcodes.io serves the ONS Postcode Directory, Ordnance Survey Open Names and Scottish Postcode Directory datasets. The API runs against a pre-built PostgreSQL/PostGIS database that is published as a pg_dump from an upstream pipeline — this repository contains the HTTP service only.
Start querying UK postcode data immediately on your local machine with Docker
docker-compose up
# Run the entire test suite end-to-end (build images, seed DB, run mocha):
make test
# Interactive test container:
make test-up
make test-shell
$api-container> ./bin/load_test_seed # rebuild the seeded DB
$api-container> npm test # mocha against the seeded DB
# Run a command in the running test container:
make test-exec npm test
MIT
625 followers · starred Nov 2015
419 followers · starred Dec 2018
117 followers · starred Mar 2023
127 followers · starred Dec 2015