Public API: the most important active POIs inside a bounding box, for the map viewport (metered)
GET
/v1/poi/in-bounds
const url = 'https://api.tareky.com/v1/poi/in-bounds?minLng=1&minLat=1&maxLng=1&maxLat=1&take=500';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/poi/in-bounds?minLng=1&minLat=1&maxLng=1&maxLat=1&take=500' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”minLng
required
number
minLat
required
number
maxLng
required
number
maxLat
required
number
categoryId
string format: uuid
take
integer
How many places to return: the most important take in the box.
filters
string
JSON, specific to categoryId, e.g. {“accessType”:“PUBLIC”,“minPowerKw”:22} for EV charging. 400 invalid_request when malformed; ignored for a category with no filters.
Header Parameters
Section titled “Header Parameters”x-access-key-id
string
Legacy key id (until its sunset)
Responses
Section titled “Responses”Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
lng
required
number
lat
required
number
categoryId
required
string | null
name
required
object
ar
required
string | null
en
required
string | null
ckb
required
string | null
category
required
object
id
required
string
name
required
object
ar
required
string | null
en
required
string | null
ckb
required
string | null
avgRating
required
Mean review rating, 0 when there are no reviews
number
reviewCount
required
integer
importance
required
Rank of the place on a crowded map (the category weight, higher for a vetted place); read it only as relative, rows arrive in this order
integer
Examplegenerated
{ "data": [ { "id": "example", "lng": 1, "lat": 1, "categoryId": "example", "name": { "ar": "example", "en": "example", "ckb": "example" }, "category": { "id": "example", "name": { "ar": "example", "en": "example", "ckb": "example" } }, "avgRating": 1, "reviewCount": 1, "importance": 1 } ]}Rate limit or monthly quota exceeded; see Retry-After
Media typeapplication/json
object
error
required
object
code
required
Stable machine-readable code, e.g. quota_exceeded, no_route
string
message
required
string
status
required
integer
details
For invalid_request: the validation issues
docsUrl
required
string
requestId
string
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
Media typeapplication/json
object
error
required
object
code
required
Stable machine-readable code, e.g. quota_exceeded, no_route
string
message
required
string
status
required
integer
details
For invalid_request: the validation issues
docsUrl
required
string
requestId
string
Examplegenerated
{ "error": { "code": "example", "message": "example", "status": 1, "details": "example", "docsUrl": "example" }, "requestId": "example"}