Java+Play Framework tech demo that imports the CodePoint Open UK postcode dataset and offers a Geocoding REST API and a postcode map.
Java Scala
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app Play 2.2.2. Dep upgrades. Mar 5, 2014
codepointopen Latest fixes. Sep 15, 2012
conf Some minor updates. You can now specify a username/pw for mongodb. May 1, 2012
lib initial entry Apr 11, 2012
project GeoTools 10.5. Mar 18, 2014
public/images Some small improvements. Sep 15, 2012
.gitignore Some minor fixes and updated the readme. Apr 11, 2012
.travis.yml Play 2.2.1. Leaflet, Bootstrap and JQuery upgrades. Camel to 2.11.3. Jan 17, 2014
README.markdown [ci skip] README changes Jan 19, 2014


CamelCode Build Status

A tech demo built using Play Framework 2.2 (Java) that imports the CodePoint Open UK postcode dataset and offers a Geocoding RESTful API and a map. It also demonstrates how Google Guice can be integrated in a Play Framework Java application.

Follow @analytically for updates.



Edit conf/application.conf and point it to a MongoDB installation (defaults to localhost:27017), and execute

play run

Then drop the CodePoint Open CSV (scroll halfway down, 20mb) files in the codepointopen directory.

After each file is imported, it will be moved to the codepointopen/done directory.

Then visit http://localhost:9000 and you should see the welcome screen. Check out the server metrics or the map.


GET http://localhost:9000/latlng/POSTCODE to geocode a UK postcode. Response will be JSON:



Welcome Page




Licensed under the WTFPL.

This data contains Ordnance Survey data © Crown copyright and database right 2013. Code-Point Open contains Royal Mail data © Royal Mail copyright and database right 2012. Code-Point Open and ONSPD contains National Statistics data © Crown copyright and database right 2013.

OS data may be used under the terms of the OS OpenData licence.