Addressing
Addressing
Across much of the MENA region, formal street addresses are sparse, informal, or simply not signed — a building may be known only as "the third turn after the bakery." Navvo's Addressing layer fixes this with Plus Codes: a short, globally-unique code derived directly from a coordinate. Any point on Earth gets a compact address that is offline-derivable (no lookup needed to compute it), globally unique, and shareable — paste it into a message and the recipient lands within metres. Codes can be shortened to a local form (relative to a nearby locality) for everyday use, e.g. XW36+H6 Abdoun, Amman.
This page covers encoding a point to a code, decoding a code back to a coordinate, the full addressing bundle for a point, and a fault-tolerant geocoding autocomplete tuned for Arabic input.
8G3QXW36+H6 resolves anywhere with no extra context. A short/local code such as XW36+H6 drops the area prefix for readability and must be paired with a nearby reference point (lat/lng) or a locality name to be recovered. Code lengths run 8–11: longer codes are more precise. The default length 10 resolves to roughly a 14 m square.GET /geo/pluscode
Encode a coordinate into a Plus Code (Open Location Code).
Scope required: geo
Query parameters
8–11. Defaults to 10 (≈ 14 m precision). Higher values produce a longer, more precise code.curl -s "https://navvo.io/api/v1/geo/pluscode?lat=31.94920&lng=35.89970&length=10" \
-H "x-api-key: nvvo_YOUR_KEY"
Response
{
"provider": "navvo-addressing",
"code": "8G3QXW36+H6",
"lat": 31.9492,
"lng": 35.8997
}
| Field | Type | Description |
|---|---|---|
provider | string | Always navvo-addressing. |
code | string | The full (global) Plus Code for the point. |
lat / lng | number | The input coordinate, echoed back. |
Errors
| Status | When |
|---|---|
400 | lat/lng missing or not numeric, or length outside 8–11. |
401 / 403 | Missing/invalid key, or key lacks the geo scope. |
GET /geo/pluscode/decode
Decode a Plus Code back into a coordinate and its bounding cell. Accepts either a full code or a short/local code; for a short code, supply a reference lat/lng so the nearest matching cell can be recovered.
Scope required: geo
Query parameters
8G3QXW36+H6) or short/local (e.g. XW36+H6).code is a short/local code — used to recover the nearest match.lat for short-code recovery.# Full code — no reference needed
curl -s "https://navvo.io/api/v1/geo/pluscode/decode?code=8G3QXW36%2BH6" \
-H "x-api-key: nvvo_YOUR_KEY"
# Short/local code — supply a nearby reference point
curl -s "https://navvo.io/api/v1/geo/pluscode/decode?code=XW36%2BH6&lat=31.95&lng=35.90" \
-H "x-api-key: nvvo_YOUR_KEY"
+ in a Plus Code must be URL-encoded as %2B in a query string.Response
{
"provider": "navvo-addressing",
"code": "8G3QXW36+H6",
"lat": 31.949125,
"lng": 35.899625,
"bounds": {
"south": 31.94906,
"west": 35.89956,
"north": 31.94919,
"east": 35.89969
}
}
| Field | Type | Description |
|---|---|---|
provider | string | Always navvo-addressing. |
code | string | The resolved full code (a short code passed in is expanded against the reference point). |
lat / lng | number | Centre of the decoded cell. |
bounds | object | The cell extent: south, west, north, east in decimal degrees. |
Errors
| Status | When |
|---|---|
400 | code missing or not a valid Plus Code, or a short code passed without a usable lat/lng reference. |
401 / 403 | Missing/invalid key, or key lacks the geo scope. |
GET /geo/address
Resolve a coordinate to the full addressing bundle — everything a client needs to display and share a human-friendly address for a point. This is the recommended endpoint for MENA addressing: it combines the global code, the local code, the locality name, a ready-to-render localAddress, and a shareable URL in one call.
Scope required: geo
Query parameters
8–11. Defaults to 10 (≈ 14 m).curl -s "https://navvo.io/api/v1/geo/address?lat=31.94920&lng=35.89970" \
-H "x-api-key: nvvo_YOUR_KEY"
Response
{
"provider": "navvo-addressing",
"lat": 31.9492,
"lng": 35.8997,
"plusCode": "8G3QXW36+H6",
"shortCode": "XW36+H6",
"locality": "Abdoun, Amman",
"localAddress": "XW36+H6 Abdoun, Amman",
"shareUrl": "https://navvo.io/a/8G3QXW36+H6"
}
| Field | Type | Description |
|---|---|---|
provider | string | Always navvo-addressing. |
lat / lng | number | The input coordinate, echoed back. |
plusCode | string | The full, globally-unique code (resolves anywhere with no context). |
shortCode | string | The shortened, local code (drops the area prefix; pair with locality for everyday use). |
locality | string | The nearest named locality, e.g. Abdoun, Amman. |
localAddress | string | Ready-to-render local address combining shortCode + locality, e.g. XW36+H6 Abdoun, Amman. |
shareUrl | string | A canonical link that opens the point on Navvo. |
عبدون، عمّان), so localAddress reads naturally in Arabic. The plusCode itself is language-independent, so it stays shareable across locales.Errors
| Status | When |
|---|---|
400 | lat/lng missing or not numeric, or length outside 8–11. |
401 / 403 | Missing/invalid key, or key lacks the geo scope. |
POST /geo/address/batch
Bulk addressing — resolve up to 50 coordinates to Plus Code addresses in one request (the batch form of GET /geo/address). Each point returns the full bundle (plusCode, shortCode, locality, localAddress). Scope required: geo.
curl -s -X POST "https://navvo.io/api/v1/geo/address/batch" \
-H "x-api-key: $NAVVO_API_KEY" -H "content-type: application/json" \
-d '{ "points": [ {"lat":31.9539,"lng":35.9106}, {"lat":29.532,"lng":35.006} ], "length": 10 }'
| Field | Type | Notes |
|---|---|---|
points | array | required — { lat, lng } (or lon) objects, max 50 |
length | number | optional Plus Code length 8–11 applied to all |
{
"provider": "navvo-addressing", "count": 2, "resolved": 2,
"results": [
{ "lat": 31.9539, "lng": 35.9106, "ok": true, "plusCode": "8G3QXW36+H6", "shortCode": "XW36+H6", "locality": "منطقة زهران, عمان", "localAddress": "XW36+H6 منطقة زهران, عمان" }
]
}
resolved counts the successful points; a point with out-of-range or non-numeric coordinates returns ok:false with error: "invalid coordinates". 400 if points[] is missing/empty.
GET /geocode/autocomplete
Fault-tolerant typeahead suggestions for an in-progress query. Built for messy real-world MENA input: it applies Arabic normalization (tolerating common letter variants such as أ/إ/آ → ا, ة → ه, and stripping diacritics) and understands Arabizi — the Latin "chat alphabet" with numbers standing in for Arabic letters (e.g. shar3 abdali → شارع العبدلي). It is designed to return relevant results even when the query is partial or loosely spelled.
Scope required: geocode
Query parameters
10.ar,en (Arabic-first).# Arabizi input — chat-alphabet with a digit standing in for an Arabic letter
curl -s "https://navvo.io/api/v1/geocode/autocomplete?q=shar3%20abdali&limit=5" \
-H "x-api-key: nvvo_YOUR_KEY"
Response
{
"provider": "navvo-geocode",
"query": "shar3 abdali",
"normalizedQuery": "العبدلي",
"hasData": true,
"suggestions": [
{
"id": "3162219",
"label": "العبدلي, منطقة زهران, عمان, ناحية عمان, لواء قصبة عمان, عمان, 11193, الأردن",
"name": "العبدلي",
"lat": 31.9593159,
"lng": 35.9187494,
"type": "neighbourhood",
"category": "place"
}
]
}
shar3 abdali is Arabizi for شارع العبدلي ("Abdali Street"). Amman has no street of that name, so the
answer is the Abdali district, the place people mean by it (see Nearest first).
Without lat/lon the search is measured from Amman.
| Field | Type | Description |
|---|---|---|
provider | string | Always navvo-geocode. |
query | string | The original query, echoed back. |
normalizedQuery | string | undefined | The normalized/transliterated form Navvo actually matched on (present when the input was rewritten, e.g. Arabizi → Arabic). |
suggestions | array | Ranked candidates (see below). Empty array when there are no matches. |
suggestions[].id | string | Stable identifier for the suggested place. |
suggestions[].label | string | Display label, formatted for the requested locale. |
suggestions[].name | string | Primary name of the place. |
suggestions[].lat / lng | number | Coordinate of the suggestion. |
suggestions[].type | string | Fine-grained type (e.g. road, city, suburb, poi). |
suggestions[].category | string | Broad category (e.g. highway, place, amenity). |
label in the dropdown, but resolve selection by id (and lat/lng) — labels are localized and may differ between locales. When normalizedQuery is present you can surface it as a "searching for…" hint so users see how their Arabizi was interpreted.Errors
| Status | When |
|---|---|
400 | q missing/blank, or limit not numeric. |
401 / 403 | Missing/invalid key, or key lacks the geocode scope. |