Address picker (component)

One script and one element: a working address picker for Estonian, Latvian and Lithuanian addresses on your page.

The address picker is a ready component that gives your page a search field with autocomplete, address selection by levels, the Elemroot map and clean output: the address in its official form with AADRESS_ID, postal code and coordinates. The component uses address search, address selection and reverse geocoding and loads the map itself; your page needs no additional library.

Read the guide â†’ Options, map, output, methods, styling. Configurator â†— Choose the settings, try the component and take the code for your page. Address selection (gazetteer) â†’ The service the component takes the levels from. Address search â†’ The service the component takes the search matches from.

Quick start

<script src="https://examples.elemroot.com/widget/aadressivalija/v1/aadressivalija.js"></script>
<div id="aadress"></div>
<script>
  ElemrootAddressPicker.create('#aadress', {
    key: 'YOUR_API_KEY',
    countries: ['ee', 'lv', 'lt'],
    map: 'raster',
    layout: 'side',
    onChange: function (a) { console.log(a); }
  });
</script>

The key needs the services address search, address selection and reverse geocoding; for the map also raster or vector tiles. The component version is 1.7.0; the /v1/ path keeps backwards compatibility, the same URL receives updates.

Full description: Address picker guide.