Public API: walk/ride/walk transit itineraries (metered)
const url = 'https://api.tareky.com/v1/transit/plan/44.42039%2C33.35654%3B44.45398%2C33.33030?radius=800&limit=3';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.tareky.com/v1/transit/plan/44.42039%2C33.35654%3B44.45398%2C33.33030?radius=800&limit=3' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
44.42039,33.35654;44.45398,33.33030Origin;destination
Query Parameters
Section titled “Query Parameters”Header Parameters
Section titled “Header Parameters”Legacy key id (until its sunset)
Responses
Section titled “Responses”object
object
object
object
A street, square or area to name the stop; null for the trip’s own origin and destination
object
object
A street, square or area to name the stop; null for the trip’s own origin and destination
object
The leg as a line, in travel order
object
object
A street, square or area to name the stop; null for the trip’s own origin and destination
object
object
A street, square or area to name the stop; null for the trip’s own origin and destination
object
The leg as a line, in travel order
The line’s Arabic name; the same as routeNames.ar
The line’s name; en is curated, ckb is not there yet
object
The end of the line this ride is heading to; null where that end has not been confirmed
object
Example
{ "itineraries": [ { "legs": [ { "mode": "walk" } ] } ]}Rate limit or monthly quota exceeded; see Retry-After
object
object
Stable machine-readable code, e.g. quota_exceeded, no_route
For invalid_request: the validation issues
Examplegenerated
{ "error": { "code": "example", "message": "example", "status": 1, "details": "example", "docsUrl": "example" }, "requestId": "example"}default
Section titled “default”Any other error, in the /v1 error envelope
object
object
Stable machine-readable code, e.g. quota_exceeded, no_route
For invalid_request: the validation issues
Examplegenerated
{ "error": { "code": "example", "message": "example", "status": 1, "details": "example", "docsUrl": "example" }, "requestId": "example"}