Skip to content

A tech demo built using Play! 2.1 that imports the CodePoint Open UK postcode dataset and offers a Geocoding REST API and a postcode map.

Notifications You must be signed in to change notification settings

velebak/camelcode

 
 

Repository files navigation

CamelCode Build Status

A tech demo built using Play! 2.1 (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 2.1 Java application.

Development sponsored by Coen Recruitment. Follow @analytically on Twitter for updates.

Requirements

Setup

Edit conf/application.conf and point it to a MongoDB installation, 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. Visit http://localhost:9000/servermetrics for server metrics.

REST API and JSON

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

{"latitude":51.505615,"longitude":-2.6120315}

Screenshots

Welcome Page


Map

Technology

License

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.

About

A tech demo built using Play! 2.1 that imports the CodePoint Open UK postcode dataset and offers a Geocoding REST API and a postcode map.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published