@(distanceCalc: Form[Application.DistanceCalc], geocode: Form[Application.Geocode], postcodeUnits: List[models.PostcodeUnit]) @implicitField = @{helper.FieldConstructor(twitterBootstrap20FieldConstructor.f)} @main("Welcome to CamelCode") {

CamelCode

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

Geocode

Geocoding UK postcodes has never been so easy! The 1.7 million CodePoint Open postcodes are imported in under one minute, and average response time is below 10ms on modern hardware. Try these: BS10 6TF, SW1A 2AA.

Postcode map

Visit the postcode map. Click anywhere to display postcodes. CTRL-Double click for distances.

Completely free

The CamelCode project is free for commercial use. Follow @@analytically for updates and programming tips and tricks. Development sponsored by Coen Recruitment.

@helper.form(routes.Application.calc()) {
@helper.input(distanceCalc("postcode"), '_label -> "Postcode:") { (id, name, value, args) => } @helper.input(distanceCalc("distance"), '_label -> "Within (miles):") { (id, name, value, args) => }
}
@helper.form(routes.Application.ll) {
@helper.input(geocode("postcode"), '_label -> "Postcode:") { (id, name, value, args) => }
}
@helper.form(routes.Application.en) {
@helper.input(geocode("postcode"), '_label -> "Postcode:") { (id, name, value, args) => }
}

Metrics

Check the server metrics and health.

@if(flash.containsKey("success")) {
Done! @flash.get("success")
} @if(postcodeUnits.size > 0) {
} Coded by @@analytically.
}