Contents:
This data shows statistics about the proportion of streets in each area according to whether they are:
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.
Results are provided for a maximum of 10,000 areas within the supplied bounding box. Alternatively a census code can be provided to give the results for a particular area.
Coverage is currently the UK and Ireland.
Example which retrieves statistics in an area of central Cambridge.
https://api.cyclestreets.net/v2/advocacydata.ltnstatistics?bbox=0.101131,52.195807,0.170288,52.209719&type=wards&zoom=15
Result:
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "name": "Abbey Ward", "area_description": "District Ward", "census_code": "E05013050", "dataUrl": "https://api.cyclestreets.net/v2/advocacydata.ltns?key=&censuscode=E05013050", "noThroughStreetLengthPercent": 77, "throughStreetLengthPercent": 5, "calmedThroughStreetLengthPercent": 1, "mainRoadLengthPercent": 17, "noThroughStreetLengthMetres": 36872, "throughStreetLengthMetres": 2342, "calmedThroughStreetLengthMetres": 259, "mainRoadLengthMetres": 7950 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 0.179892752959072, 52.2022378537638 ], [ 0.177381089988381, 52.2032490729808 ], ..., [ 0.179892752959072, 52.2022378537638 ] ] ] ] } }, ... ] }
All parameters are optional.
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." }