Address search (geocoding)

Coordinates and structured address from free-text input. Single and bulk requests, multiple output formats.

The service turns an address (e.g. Muuseumi tee 2) into one or more structured matches with coordinates, relevance score and address components. Estonian, Latvian and Lithuanian addresses are covered, see the guide chapters Searching Latvian addresses and Searching Lithuanian addresses.

Read the guide â†’ All options step by step: formats, bulk, window, extended data, 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/jgc_rest/geocode
GEThttps://pump.elemroot.com/jgc_rest_lyh/geocode ("lyh": same API and JSON structure but with a shorter address form: e.g. Eesti, Tartumaa, Tartu linn, … instead of the usual Eesti Vabariik, Tartu maakond, Tartu linn, …; meant for frequent short queries such as autocomplete: keep main traffic on jgc_rest)

Required parameters

ParameterMeaning
q requiredAddress to geocode (repeat for multiple addresses)
gl requiredDataset ID, e.g. ee_aid (repeat for multiple datasets)
key requiredAPI key (without it: 403)

Quick example

curl "https://pump.elemroot.com/jgc_rest/geocode?q=Muuseumi+tee+2&gl=ee_aid&output=json&key=docs_382d376eaaa6d004b7b93b7d"

Full explanation and more examples: Geocoding guide.