Skip to content
Developers

Address codes and public links

Every published address has a short public code. Read an address by its code, or share its public page.

Base URLhttps://makani-gke-eu.lamah.com

Read an address by its code

A public code names one address in a country. It is the publicCode of search and lookup results, and it stays the same for the life of the address.

An unknown code answers 404 ADDRESS_CODE_NOT_FOUND.

GET/v1/addresses/{countryCode}/code/{publicCode}Scopeaddresses:read
curl "https://makani-gke-eu.lamah.com/v1/addresses/QA/code/QA-street-3-984-2?locale=en" \  -H "x-api-key: $MAKANI_API_KEY"

Without a key

The same address can be read without a key, for a public page or a shared link. This answer also carries the point (latitude, longitude) and the address in both languages. Add countryCode only when the same code exists in more than one country.

Public endpoints are limited per network address and per day, and are meant for people, not for bulk reads. Use a key for your application's traffic.

GET/v1/public/addresses/code/{publicCode}No key needed
curl "https://makani-gke-eu.lamah.com/v1/public/addresses/code/QA-street-3-984-2?locale=en"

Floors and units

An apartment, office or shop inside a building is a unit with its own code: the building's code, -unit- and the unit number (LY-F7J5V-1125-unit-3). Search, lookup, reverse lookup and reading by code answer it like any address, and its formattedAddress names the floor and the unit in the requested language, where the country's format puts them ("Building 1125, Misrata, F7J5V, Floor 5, Unit 3").

Every result carries unit: for a unit, its number, floor, floorLabel (the floor in the requested language), unitType, and its building's buildingId and buildingCode; null for any other address. floor is one of ground, mezzanine, basement, basement-2 to basement-9, or a floor number from 1 to 200. Reading a building by code without a key also lists its published units.

A unit stands at its building's point, and a route to a unit's code ends at its building's entrance. A unit's number is unique in its building and is never given again, so a unit's code never names another unit.