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.
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.