Donate using PayPal

CycleStreets API (v2)

  • Details for:
  • API overview
  • Obtain API key
  • Usage policy
  • Uptime policy

Retrieve a specified gallery

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

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
}

Request parameters - required

id int
The gallery ID.

Request parameters - optional

datetime int
Time (Unix timestamp) of last update of the gallery.
This can be given as friendly, friendlydate, sqldatetime or unixtime
If this parameter is not supplied, the default output will be in unixtime format, as shown in the example above.

Response

GeoJSON object containing one Gallery

See example above.

Error response

JSON object containing an error key and a text string.

Example error (text string will vary):

{
    "error": "Invalid gallery ID recieved."
}

We welcome your feedback, especially to report bugs or give us route feedback.

My comments relate to: *






Your comments: *
URL of page: * https://newcastle.cyclestreets.net/api/v2/galleries.show/
How did you find out about CycleStreets?:
Your name:
Our ref: Please leave blank - anti-spam measure

* Items marked with an asterisk [*] are required fields and must be fully completed.