TheyWorkForYou API
getConstituencies function
http://www.theyworkforyou.com/api/getConstituencies
Fetch a list of constituencies.
Arguments
Note only one argument can be given at present.
- date (optional)
- Fetch the list of constituencies as it was on this date.
- search (optional)
- Fetch the list of constituencies that match this search string.
- latitude, longitude, distance (optional, all together)
- Fetches (vaguely) constituency or constituencies within distance km of (latitude,longitude)
Example Response
[
{ name : "Aberavon" },
{ name : "Aldershot" },
{ name : "Aldridge-Brownhills" },
...
]
Explorer
Try out this function without writing any code!

