Station Features
GeoJSON feature collection
This endpoint provides a single GeoJSON FeatureCollection containing every station on the UK Rail network. This feature collection can be used with libraries like Leaflet or OpenLayers to plot onto a map.
Please make certain you have read the Conditions of use before using this API.
To get the feature set simply make a call to http://api.area51.onl/rail/1/station/feature and you will get a large GeoJSON file back. Each feature represents a single station and has just two properties:
- name
- The station name
- crs
- The 3Alpha/CRS code
$ curl -s http://api.area51.onl/rail/1/station/feature | jq '.' { "json": { "type": "FeatureCollection", "bbox": [ -5.83882, 50.1218, 0, 1.74963, 58.59, 0 ], "features": [ { "type": "Feature", "properties": { "name": "Aberdour", "crs": "AUR" }, "geometry": { "type": "Point", "coordinates": [ -3.30014, 56.055, 0 ] }, "id": "AUR" }, ... { "type": "Feature", "properties": { "name": "Ystrad Rhondda", "crs": "YSR" }, "geometry": { "type": "Point", "coordinates": [ -3.46687, 51.6436, 0 ] }, "id": "YSR" } ] } }