Skip to content
Developer documentation

Public Forward Geocode

GET /v1/geocode · X-API-Key

Public Forward Geocode

GET /v1/geocode · X-API-Key

GET/v1/geocode

Public Forward Geocode

Public forward geocoding: free-text address -> coordinates.

Credential
X-API-Key
Plane
https://api.bardiyamap.com
Billing
1 credit per request
Operation id
forwardGeocode

Parameters

Query parameters

NameTypeRequiredDescription
addressstringyesFree-form street address or place description, in Arabic or English.2 to 200 chars
languagestring | nullnoPreferred response language for names and categories: ar or en.matches (ar|en)
latitudenumber (double) | nullnoLatitude in decimal degrees, north positive. Send it together with longitude.-90 to 90 / double
limitintegernoMaximum number of candidates.1 to 50 / default 10
longitudenumber (double) | nullnoLongitude in decimal degrees, east positive. This is the second element of a GeoJSON pair, not the first.-180 to 180 / double
radius_mintegernoBias radius in metres used to disambiguate repeated street names.100 to 200000 / default 50000

Header parameters

NameTypeRequiredDescription
Idempotency-Keystring | nullnoOpaque key that makes a retried POST safe. Reuse the same value for every retry of the same intent; a new value is a new chargeable operation.

Request example

shell
curl "https://api.bardiyamap.com/v1/geocode?address=5%20El%20Nasr%20Road%2C%20Nasr%20City%2C%20Cairo&language=ar&latitude=30.0444&limit=10&longitude=31.2357&radius_m=50000" \
  -H "X-API-Key: $BARDIYA_API_KEY"

Response 200 · GeocodeResponse

FieldTypeRequiredNotes
countintegeryes
messagestring | nullno
modestring | nullno
querystringyes
resultsGeocodeResult[]yes

Errors

StatusMeaning
400Request is malformed or a parameter is out of range
401Missing or invalid credential
403Credential is valid but lacks the required scope, or the request origin is not allowed
404Resource not found or not visible to this credential's organization
422Validation Error
429Rate limit or quota exceeded; honour `Retry-After`
503The upstream provider is temporarily unavailable

Error bodies use the shared envelope documented in Errors: { "error": { "code", "message", "details", "request_id" } }.

GET /v1/geocode is part of the Geocoding group. Values on this page are generated from contract version 1.1.0.