Reverse geocoding

Nearest address from coordinates, with distance and structured components.

The service finds the nearest address to the given coordinates (e.g. 58.3958,26.7463) and returns it with distance in metres. All three Baltic countries are covered: the same endpoint returns the nearest address in Estonia, Latvia and Lithuania.

Read the guide â†’ Request, output formats, detail, coordinate order, errors. API reference (Swagger UI) â†’ All parameters and interactive try-it-out. OpenAPI spec (YAML file) â†’ Machine-readable API description for tooling: import into Postman or generate client code (OpenAPI Generator). Note: opens as a raw YAML file; your browser may download it.

Endpoint

MethodURL
GEThttps://pump.elemroot.com/rgc4/revgeocode
GEThttps://pump.elemroot.com/rgc4_lyh/revgeocode ("lyh": same API and JSON structure but with a shorter address form: e.g. EE, Tartumaa, Tartu, Tartu, Muuseumi tee 2 instead of the usual EE, Tartu maakond, Tartu linn, Tartu linn, Muuseumi tee 2; for frequent short queries: keep main traffic on rgc4)

Required parameters

ParameterMeaning
q requiredCoordinates lat,lon (e.g. 58.3958,26.7463)
gl requiredDataset ID, e.g. ee_lt_lv
s requiredService ID, e.g. ADDRESS
key requiredAPI key (without it: 403)

Quick example

curl "https://pump.elemroot.com/rgc4/revgeocode?q=58.3957739405547,26.7462826320901&gl=ee_lt_lv&s=ADDRESS&detail&key=docs_382d376eaaa6d004b7b93b7d"

Full explanation and more examples: Reverse geocoding guide.