Donate using PayPal

CycleStreets API (v2)

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

Map downloads

This API call gives a list of map download files in Mapsforge format.

These are for use as offline map packs in the CycleStreets Android app.

Example

https://api.cyclestreets.net/v2/mapdownloads.list

Result:

{
    "type": "FeatureCollection",
    "features": [
        {
            "type": "Feature",
            "properties": {
                "id": "alberta",
                "name": "Alberta",
                "parent": "canada",
                "size": "145MB",
                "lastModified": "2020-04-20",
                "url: "https://example.com/mapsforge/v5/north-america/canada/alberta.map"
            },
            "geometry": {
                "type": "Point",
                "coordinates": [
                    -115.00305,
                    54.49753
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "id": "algeria",
                "name": "Algeria",
                "parent": "africa",
                "size": "146MB",
                "lastModified": "2020-05-29",
                "url: "https://example.com/mapsforge/v5/africa/algeria.map"
            },
            "geometry": {
                "type": "Point",
                "coordinates": [
                    1.66554,
                    28.35079
                ]
            }
        },
        ...
    }
}

Request parameters - required

None.

Request parameters - optional

fullgeometries (1|0), default 0
Whether to return full geometries, which is a much larger download size. By default, the centroid is given only.

Response

JSON object as above.

Error response

JSON object containing an error key and a text string.

Example error (text string will vary):

{
    "error": "The value of the supplied fullgeometries was not a numeric boolean (1 or 0)."
}

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

My comments relate to: *






Your comments: *
URL of page: * https://camden.cyclestreets.net/api/v2/mapdownloads.list/
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.