ft-interactive/referendum-place-search

Name: referendum-place-search

Owner: FT Interactive News

Description: Microservice: search for a EU referendum voting area (local authority)

Created: 2016-06-02 09:09:24.0

Updated: 2017-05-26 17:18:45.0

Pushed: 2017-07-17 16:22:09.0

Homepage:

Size: 8262

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

DEPRECATED

New API: ig-uk-postcode-api


EU referendum place search

Run locally
start
Using the service

/?q={POSTCODE}

Returns the GSS code for the local EU referendum voting area. If the postcode isn't geographic or is for a place not voting in the referendum then returns a 404.

The space between the outcode and incode is optional: both SE19HL and SE1 9HL are fine. Also the postcode can be upper or lower case.

Invalid postcodes will get a 400 error.

Example:

 -v "http://localhost:9999/?q=SE19HL"

/1.1 200 OK
ss-Control-Allow-Origin: *
e-Control: max-age=31536000
ent-Type: text/plain

00028

/__gtg

Used to test the service is alive. Simply returns a 200 statusCode and and OK in the body.

Licence

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.