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
| Method | URL |
|---|---|
GET | https://pump.elemroot.com/rgc4/revgeocode |
GET | https://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
| Parameter | Meaning |
|---|---|
q required | Coordinates lat,lon (e.g. 58.3958,26.7463) |
gl required | Dataset ID, e.g. ee_lt_lv |
s required | Service ID, e.g. ADDRESS |
key required | API 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.