Public API: render a static map image (metered)
const url = 'https://api.tareky.com/v1/static-map/light/44.3661%2C33.3152%2C14%2C0%2C0/600x400%402x.webp?lang=ar&pin=true';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/static-map/light/44.3661%2C33.3152%2C14%2C0%2C0/600x400%402x.webp?lang=ar&pin=true' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
44.3661,33.3152,14,0,0Lng,lat,zoom[,bearing[,pitch]]
Example
600x400@2x.webp{width}x{height} up to 1280, optional @2x, optional .webp (default) / .png / .jpeg
Query Parameters
Section titled “Query Parameters”Header Parameters
Section titled “Header Parameters”Legacy key id (until its sunset)
Responses
Section titled “Responses”The rendered map, in the format the size extension chose
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
object
object
Stable machine-readable code, e.g. quota_exceeded, no_route
For invalid_request: the validation issues
object
object
Stable machine-readable code, e.g. quota_exceeded, no_route
For invalid_request: the validation issues
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
object
object
Stable machine-readable code, e.g. quota_exceeded, no_route
For invalid_request: the validation issues
object
object
Stable machine-readable code, e.g. quota_exceeded, no_route
For invalid_request: the validation issues