Public API: place name at a coordinate (metered)
const url = 'https://api.tareky.com/v1/locations/reverse-geocode?lat=1&lng=1&lang=ar';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/reverse-geocode?lat=1&lng=1&lang=ar' \ --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
The nearest place or area name in the requested lang, falling back to Arabic and then English; null outside every known area
The nearest named street within 60 m, in the requested lang (Arabic where it has no name in it); never an alley code such as 214-109
Street, subdistrict, district, city: finest first, each in the requested lang (Arabic where it has no name in it); joined with the Arabic comma, or with “, “ for lang=en
The 10-digit Open Location Code of the point (a ~14 m cell)
The name to show for the point, never null. First match wins: a named POI within 50 m, a named street within 60 m, a named POI within 200 m (near: true), the smallest containing area, the plus code.
object
What the label names
The POI, street or admin row; null for a plus code
object
To the POI or street; null for an area or a plus code
True when the label is a POI 50-200 m away: show it as “near X”
The smallest admin area containing the point
object
object
The governorate, when it is not already area
object
object
Example
{ "label": { "source": "poi" }, "area": { "level": "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"}