Contents:
The Galleries Get API retrieves a single Photo Gallery containing cycling-related infrastructure which has been submitted by a user.
Each Gallery has metadata attached to it, such as a title, a description, list of locations and more.
Note that each location has a license (e.g. Creative Commons, Public Domain, No reproduction permitted, etc.) as specified by the contributor. You are required to respect the specified license. Also, CycleStreets naturally has a database right in the collective dataset.
Example which returns the data of a user-created Photo Gallery
https://api.cyclestreets.net/v2/galleries.show?id=300
Result:
{ "id": 300, "title": "Cambridge Station Cycle Parking", "description": "Photos of the new and improved cycling parking.", "photos": [ 1, 2, 3, 4, 5, 6, 7, 9 ], "datetime": 1437336779 }
GeoJSON object containing one Gallery
See example above.
JSON object containing an error key and a text string.
Example error (text string will vary):
{ "error": "Invalid gallery ID recieved." }