Donate using PayPal

CycleStreets API (v2)

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

API testing - run one

This API call is used internally for testing the system.

It is meant for the development team and so should be considered fluid.

The API testing system has a long list of predefined named tests. Each test defines an expected result, which can be compared with the actual result of running the test. The result of this API call indicates whether that test passed or failed.

Example

This example runs a named test:

https://api.cyclestreets.net/v2/apitesting.runtest?name=Photomap+categories

Result:

{
    "status": true,
    "time": 55,
    "call": "photomap.categories",
    "apiVersion": 2,
    "name": "Photomap categories",
    "note": false,
    "response": "Hidden",
    "percentage": false,
    "diagnosis": "",
    "diagnosisHtml": false
}

Request parameters - required

name string
Name of the test. These which can contain spaces, so must be URL-encoded. The full list, which contains 207 tests, is:
  • 1.5+mile+route,+Charing+Cross+to+Westcheap+Cross,+(segments=0)
  • 15+mile+route,+Charing+Cross+to+Waltham+Cross
  • 150+mile+route,+Charing+Cross+to+Lincoln+Cross
  • 24-minute+Cambridge+leisure+route
  • Add+Feedback+v2
  • Archived+route+retrieval
  • Archived+route+retrieval+v1
  • Best+leisure+from+previous+itinerary
  • Best+leisure+from+previous+itinerary+v2
  • Cambridge+York+Street+partial+percentage+test
  • Cambridge+central+PHP+engine
  • Cambridge+central+PHP+engine+no+turns+no+cello
  • Cambridge+journey+three+waypoints
  • Cambridge+leisure+route+v2
  • Cambridge+really+short+itinerary
  • Cambridge+really+short+journey+3+plans
  • Cambridge+retrieve+itinerary
  • Cambridge+very+old+(start-finish)_(longitude-latitude)+params
  • Cambridge+very+old+params+geojson
  • Cambridge,+plan=shortest+v1
  • Cambridge,+two+point+journey,+gml+(useDom=1)
  • Cambridge,+two+point+journey,+marker+format+(useDom=0)
  • Cambridge,+unusual+chars+in+waypoint+names
  • Collisions+bbox+locations
  • Collisions+boundary+locations
  • Collisions+single+location
  • Confirm+no+leisure+route+for+existing+AtoB+itinerary
  • Country+-+Australia+-+Corowa
  • Country+-+Australia+-+Sydney
  • Country+-+British+Isles+-+Dublin
  • Country+-+California+-+LA
  • Country+-+Canada+-+Vancouver
  • Country+-+Czech+Republic+-+Prague
  • Country+-+Denmark+-+Copenhagen
  • Country+-+Nepal+-+Kathmandu
  • Country+-+Pennsylvania+-+Philadelphia
  • Country+-+Switzerland+-+Bern
  • Coverage+-+RU+-+Moscow
  • Coverage+-+UK+-+Cambridge
  • Dartford+crossing
  • Eleanor's+Cross+route,+marker+json
  • Elevation+coverage
  • Elevation+test:+australia
  • Elevation+test:+azerbaijan
  • Elevation+test:+belgium
  • Elevation+test:+bratislava
  • Elevation+test:+brazil
  • Elevation+test:+china
  • Elevation+test:+coverage-au-melbourne
  • Elevation+test:+coverage-au-sydney
  • Elevation+test:+coverage-be-brussels
  • Elevation+test:+coverage-br-rio
  • Elevation+test:+coverage-br-saopaulo
  • Elevation+test:+coverage-ca-edmonton
  • Elevation+test:+coverage-ca-montreal
  • Elevation+test:+coverage-ca-ottawa
  • Elevation+test:+coverage-ca-toronto
  • Elevation+test:+coverage-ca-vancouver
  • Elevation+test:+coverage-ch-geneva
  • Elevation+test:+coverage-ch-zurich
  • Elevation+test:+coverage-cl-santiago
  • Elevation+test:+coverage-cz-prague
  • Elevation+test:+coverage-de-berlin
  • Elevation+test:+coverage-de-hamburg
  • Elevation+test:+coverage-de-munich
  • Elevation+test:+coverage-de-rhineruhr
  • Elevation+test:+coverage-de-stuttgart
  • Elevation+test:+coverage-dk-copenhagen
  • Elevation+test:+coverage-ee-tallinn
  • Elevation+test:+coverage-es-barcelona
  • Elevation+test:+coverage-es-madrid
  • Elevation+test:+coverage-fi-helsinki
  • Elevation+test:+coverage-fr-bordeaux
  • Elevation+test:+coverage-fr-grenoble
  • Elevation+test:+coverage-fr-lyon
  • Elevation+test:+coverage-fr-marseille
  • Elevation+test:+coverage-fr-nantes
  • Elevation+test:+coverage-fr-nice
  • Elevation+test:+coverage-fr-paris
  • Elevation+test:+coverage-fr-rennes
  • Elevation+test:+coverage-fr-strasbourg
  • Elevation+test:+coverage-fr-toulouse
  • Elevation+test:+coverage-hk-hongkong
  • Elevation+test:+coverage-hu-budapest
  • Elevation+test:+coverage-ie-dublin
  • Elevation+test:+coverage-is-iceland
  • Elevation+test:+coverage-it-bologna
  • Elevation+test:+coverage-it-florence
  • Elevation+test:+coverage-it-milan
  • Elevation+test:+coverage-it-naples
  • Elevation+test:+coverage-it-palermo
  • Elevation+test:+coverage-it-rome
  • Elevation+test:+coverage-it-turin
  • Elevation+test:+coverage-it-venice
  • Elevation+test:+coverage-jp-tokyo
  • Elevation+test:+coverage-kr-seoul
  • Elevation+test:+coverage-mx-df
  • Elevation+test:+coverage-my-kl
  • Elevation+test:+coverage-nl-randstad
  • Elevation+test:+coverage-no-oslo
  • Elevation+test:+coverage-ph-manila
  • Elevation+test:+coverage-pt-lisbon
  • Elevation+test:+coverage-ru-moscow
  • Elevation+test:+coverage-ru-stpetersburg
  • Elevation+test:+coverage-se-stockholm
  • Elevation+test:+coverage-sg-singapore
  • Elevation+test:+coverage-tr-istanbul
  • Elevation+test:+coverage-tw-taipei
  • Elevation+test:+coverage-uk-birmingham
  • Elevation+test:+coverage-uk-edinburgh
  • Elevation+test:+coverage-uk-glasgow
  • Elevation+test:+coverage-uk-leeds
  • Elevation+test:+coverage-uk-liverpool
  • Elevation+test:+coverage-uk-london
  • Elevation+test:+coverage-uk-manchester
  • Elevation+test:+coverage-uk-newcastle
  • Elevation+test:+coverage-uk-oxford
  • Elevation+test:+coverage-us-atlanta
  • Elevation+test:+coverage-us-boston
  • Elevation+test:+coverage-us-chicago
  • Elevation+test:+coverage-us-dc
  • Elevation+test:+coverage-us-denver
  • Elevation+test:+coverage-us-houston
  • Elevation+test:+coverage-us-la
  • Elevation+test:+coverage-us-miami
  • Elevation+test:+coverage-us-nyc
  • Elevation+test:+coverage-us-philadelphia
  • Elevation+test:+coverage-us-portland
  • Elevation+test:+coverage-us-sandiego
  • Elevation+test:+coverage-us-seattle
  • Elevation+test:+coverage-us-sf
  • Elevation+test:+coverage-zz-barbados
  • Elevation+test:+croatia
  • Elevation+test:+czech-republic
  • Elevation+test:+denmark
  • Elevation+test:+estonia
  • Elevation+test:+france
  • Elevation+test:+germany
  • Elevation+test:+great-britain
  • Elevation+test:+iceland
  • Elevation+test:+ireland-and-northern-ireland
  • Elevation+test:+italy
  • Elevation+test:+lithuania
  • Elevation+test:+luxembourg
  • Elevation+test:+nepal
  • Elevation+test:+netherlands
  • Elevation+test:+norway
  • Elevation+test:+perthWA
  • Elevation+test:+sacremento
  • Elevation+test:+sweden
  • Elevation+test:+switzerland
  • Elevation+test:+tbilisi
  • Feedback+v1
  • GPX+URL
  • Galleries+Add+V2
  • Galleries+List+V2
  • Galleries+Show+V2
  • Galleries+Update+V2
  • Geocoder+Ely+(station)
  • Geocoder+Ely+(station),+using+JSON-P
  • Geocoder+check+fail+-+viewbox+in+wrong+order
  • Geocoder+geojson+Station+Road
  • Geocoder+v1+CR4+2AG
  • Geocoder+v1+Ely
  • Geocoder+v2+CR4+2AG
  • Geocoder+with+full+geometries
  • Greenwich+short+leg
  • Impossible+route+check+fail+-+Strand+Underpass+to+Charing+Cross+(oneway+deadend)
  • Impossible+route,+Strand+Underpass+to+Charing+Cross+(oneway+deadend)
  • Journey+without+archiving
  • Map+data+for+network+browsing
  • Millharbour+roundabout
  • NearestPoint+18th+Street+versus+Mission+Street,+San+Francisco
  • NearestPoint+Forth+Bridge
  • NearestPoint+Great+St.+Mary's
  • NearestPoint+Silver+St+and+Queens+Road+junction+matching+name+Queens
  • NearestPoint+Silver+St+and+Queens+Road+junction+matching+name+Sidgwick
  • NearestPoint+check+fail+-+not+found
  • NearestPoint+gml+(useDom=1)
  • NearestPoint+not+found+0,0+gml+(useDom=1)
  • Non+existent+route+retrival+(useDom=1)
  • POI+types
  • POI+types+v1
  • POIs+CyclePoint+Cambridge
  • POIs+cafes+bbox
  • POIs+cafes+v1
  • POIs+central+Cambridge+cycle+private+parking
  • POIs+check+fail+-+invalid+type+xxxcafes
  • POIs+pubs+polar+coordinates
  • Photo+location
  • Photomap+Like
  • Photomap+categories
  • Photomap+locations
  • PhotomapCategories+v1
  • Photos+of+bad+cycleparking
  • Plan+quietest+journey+for+most+recent+itinerary+that+lacked+one
  • Reach+Ride+(multi-point+journey+plannning+test+-+more+than+two+points)
  • Recent+route+retrieval
  • Retrieve+Cambridge+really+short+journey
  • Routing+coverage
  • Saddle+Loop+Trail+way+with+many+points
  • Self+test+of+the+API+testing
  • Specific+leisure8+from+previous+itinerary+(not+displayable+in+gui)
  • Status+v2
  • Tapner's+Road+short+journey+no+truncated+legs
  • Thames+Cable+Car
  • Too+long+a+route,+Hugh+Town+to+Lincoln+Cross

Request parameters - optional

enablecache 0|1, default 0
Whether to enable cacheable results (generally those relating to journey planning) to be read from the cache, if already cached.
comparison 0|1, default 0
Whether to include a detailed report, in HTML, showing the comparison of the test against the received data.
force 0|1
Tests can be set to be skipped by default. Reasons for doing that include that the test takes time to run, that it is work in progress or that the relevant area data is not loaded. This option forces the test to be tried.

Response

JSON object as above, showing the outcome of the test.

Error response

JSON object containing an error key and a text string.

Example error (text string will vary):

{
    "error": "Cannot find named test."
}

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

My comments relate to: *






Your comments: *
URL of page: * https://www.cyclestreets.net/api/v2/apitesting.runtest/
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.