Contents:
This data shows whether each street is either:
The data shown here is the result of automated analysis of OpenStreetMap data.
This work is experimental at present, with known bugs. We continue to refine the analysis.
A maximum of 2,000 results are returned within the supplied bounding box. Geometries are simplified to 5 decimal places.
Coverage is currently the UK and Ireland.
Example which retrieves streets marked as LTN/rat-run/traffic-calmed in an area of central Cambridge.
https://api.cyclestreets.net/v2/advocacydata.ltns?bbox=0.101131,52.195807,0.170288,52.209719&zoom=15
Result:
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "name": "York Street", "ratrun": "no", "traffic_calmed": "n/a", "osmId": 3987016, "colour": "#8bb" }, "geometry": { "type": "LineString", "coordinates": [ [ 0.14235, 52.20378 ], [ 0.14086, 52.20662 ], [ 0.13978, 52.20758 ] ] } }, { "type": "Feature", "properties": { "name": "New Street", "ratrun": "yes", "traffic_calmed": "no", "osmId": 3987006, "colour": "#d44" }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ 0.137, 52.20656 ], [ 0.13707, 52.20666 ], [ 0.13875, 52.20732 ] ], [ [ 0.13875, 52.20732 ], [ 0.13931, 52.20746 ] ], [ [ 0.13931, 52.20746 ], [ 0.13967, 52.20756 ], [ 0.13978, 52.20758 ] ] ] } }, ... ] }
JSON structure as per example above.
JSON object containing an error key and a text string.
Example error (text string may vary):
{ "error": "No bbox parameter was supplied." }