How to use geocoding API to find addresses

How to search for a text-based address and obtain its coordinates (which will then be displayed on the map).

After entering the query into the search field and pressing the Geocode button, the Geocoding function will be called. In its parameters, we will provide the desired type of results (cities, city parts, streets, address points).

The function will return corresponding entities (addresses, cities, streets) that we will display on the map – using the Maplibre map library.

We now also support searching for geographic coordinates in various formats, try entering e.g.,

  • 50.6795675N; 14.8752756E
  • 50° 41′ 47.52″ N, 15° 6′ 18.57″ E
  • 50 s.š., 14 v.d.
  • 50 N, 14 E
  • … and many more

Coordinate searching is not enabled by default; it needs to be activated by adding the coordinate type.

Note – the sample does not include autocomplete function (continuous offering of results while typing a search query). Auto-suggest can be found, for example, in the Autocomplete sample or in the comprehensive example of Address Validation.