Contents:
Modal filters (or 'point closures') are measures to restrict through-traffic. These facilitate safer streets for cycling and walking, as well as improving residential amenity.
Various types are shown see optional parameters.
The data shown here is the result of automated analysis of OpenStreetMap data.
This data should be considered beta level. We continue to refine the analysis to remove false-positives and to add additional types.
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 modal filters in an area of central Cambridge.
https://api.cyclestreets.net/v2/advocacydata.modalfilters?bbox=0.101131,52.195807,0.170288,52.209719
Result:
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "osmId": 20826564, "osmType": "node", "modalfilter": "bollard", "name": "Abbey Street", "colour": "#888" }, "geometry": { "type": "Point", "coordinates": [ 0.13933, 52.20852 ] } }, { "type": "Feature", "properties": { "osmId": 862027210, "osmType": "node", "modalfilter": "gate", "name": "Adam and Eve Street", "colour": "#952" }, "geometry": { "type": "Point", "coordinates": [ 0.13329, 52.20547 ] } }, ... ] }
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." }