Skip to main content
GET
Resolve a place prediction to coordinates

Authorizations

Authorization
string
header
default:sk_test_DEMO0000_replace_with_your_sandbox_key
required

API key authentication. Issued by the Safariat admin or via the partner portal. The secret is shown only once at generation.

Production sk_live_* keys must additionally sign every write request (POST/PUT/DELETE) with the X-Timestamp and X-Signature headers. Sandbox sk_test_* keys are exempt from request signing: X-Signature and X-Timestamp are not required for writes in the sandbox (so the developer-portal "Try it" playground works end to end). The Idempotency-Key header remains required on writes in both environments.

Query Parameters

place_id
string
required

A place_id obtained from /places/autocomplete.

session_token
string

The session token used for the matching /places/autocomplete calls.

Response

Resolved place

A resolved place with coordinates, ready for the /adventures geo filter.

place_name
string
required
Example:

"Marrakech"

latitude
number<double> | null
Example:

31.63

longitude
number<double> | null
Example:

-7.99

locality
string | null
Example:

"Marrakech"

country
string | null

ISO 3166-1 alpha-2 country code.

Example:

"MA"