API reference

Forward geocoding

GET /v1/geocode

Converts a text address or place name into geographic coordinates (latitude/longitude). Powered by Photon/OpenStreetMap.

Romanian addresses. Block, staircase, floor and apartment (bl., sc., et., ap.), nr., sector and jud. are recognised, abbreviations such as str., bd., șos., tg. are expanded, and the building details are returned separately in query.unit. Each result then carries properties.match with a quality level and warnings (different house number, different locality), and exact matches are listed first. When the street is found but the house number is not in the map, the position may be taken from a building range (match.position: range) or calculated between the nearest known numbers on the same side (match.position: interpolated); match.position_from lists the numbers used, the quality is approximate and the warning is house_number_estimated. Treat anything other than quality: exact as needing review.

Parameters

q string, required
Address or place name to search
limit integer
Maximum number of results Default: 5.
lang string
Language for result labels (en, de, fr …). Use local for names as written locally (București rather than Bucharest). Default: en.
country string
Two-letter country code. Keeps only results in that country; ro also turns on Romanian address handling for queries without typical markers.

Example request

curl "https://eunavigation.duckdns.org/v1/geocode?q=Pia%C8%9Ba%20Unirii%2C%20Bucure%C8%99ti" \
  -H "X-API-Key: YOUR_KEY"

Price

See the price of /v1/geocode on the pricing page.

Related endpoints