Codingan API for the tube (August 2015)

About

On a recent trip to Nottingham my mind was racing. As usual. I was thinking about how under-utilised my tube data set was. It'd been used in the tube walk page, which describes the duration of every tube journey if taken on foot. But it only got a few retweets, a couple of favourites, and not much else.

So I created an API to expose the data to the rest of the world, in the hope I'll get more!

The URL stub is:

http://marquisdegeek.com/api/tube/

Parameters

These are filters, and are combined using the 'AND' operation. i.e. all filters must conform.

name

Filter by name

zone

Filter by zone

long/longitude

Filter by longitude, within a given distance

lat/latitude

Filter by latitude, within a given distance

distance

The distance to used when filtering by long/lat, in meters

These are extras:

sortby

Sorting parameter. Can be name, zone, longitude, latitude or distance (only if filtering by long/lat)

sortorder

If provided, must be 'asc' or 'desc', and orders the parameters in 'sortby'