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