Geolocation

Geocoding API

Forward and reverse geocoding with MENA region optimization. Powered by Nominatim (OpenStreetMap) with automatic fallback to a curated 26-location MENA dataset. Includes Arabic names, landmark types, and nearby point-of-interest discovery.

Endpoint:/v1/geocode
Method:GET
Latency:~100ms

Try it out

GET/v1/geocode

Parameters

Code

curl
curl -X GET "https://khaleejiapi.dev/api/v1/geocode?q=Burj%20Khalifa&lang=en&limit=10" \
-H "X-API-Key: your_api_key"

Parameters

Provide either q for forward geocoding or lat + lng for reverse geocoding.

ParameterTypeRequiredDescription
qstringOptionalPlace name for forward geocoding (address, landmark, city)
latnumberOptionalLatitude for reverse geocoding (-90 to 90)
lngnumberOptionalLongitude for reverse geocoding (-180 to 180)
countrystringOptionalCountry code filter (e.g. AE, SA)
langstringOptionalLanguage for results
limitnumberOptionalMax results to return (1–50)

Geocoding Modes

Forward Geocoding — ?q=Burj Khalifa

Convert place names, addresses, or landmarks to coordinates. Returns multiple results ranked by relevance. MENA country biasing for better results.

Reverse Geocoding — ?lat=25.19&lng=55.27

Convert coordinates to addresses. Returns enriched result with nearby landmarks (Burj Khalifa, Palm Jumeirah, etc.) when in GCC region.

Response Fields

name / nameAr

Place name in English and Arabic

lat / lng

Latitude and longitude coordinates

country / countryCode

Country name and ISO code

address

Structured address: road, neighbourhood, city, state, postcode, full

type

Place type (city, attraction, building, etc.)

nearbyLandmarks

Nearby GCC landmarks (reverse geocoding only)

Rate Limits

PlanRequests/MonthRate Limit
Free1,00010 req/min
Starter10,00060 req/min
Professional100,000300 req/min
Business500,0001,000 req/min