Public API: search for places by name (metered)
const url = 'https://api.tareky.com/v1/locations/search?query=example&limit=10';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/locations/search?query=example&limit=10' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Header Parameters
Section titled “Header Parameters”Legacy key id (until its sunset)
Responses
Section titled “Responses”object
object
From lng/lat, when both were given
Arabic name, else English, else empty
English name, else Arabic, else empty
An admin area’s stored map zoom, which is approximate; null for every other kind
A place’s category; null for every other kind, and for the catch-all General category
object
object
The smallest admin area the result lies in (a street by its midpoint); for an admin area, its parent
object
object
The governorate, when it is not already area; null for a governorate
object
object
The level of an admin row; null for every other kind
[minLng, minLat, maxLng, maxLat] of an admin area’s polygon or a street’s line, ready for fitBounds; else null
Example
{ "place": [ { "kind": "poi", "area": { "level": "governorate" }, "adminLevel": "governorate" } ]}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"}