Geocoding function searches by geographic coordinates
20. 8. 2024
Geocoding Function (Geocode, Suggest) now also supports searching by geographic coordinates in various formats. Users can not only enter a text address or location name, but also type or paste geographic coordinates.
A wide range of text formats is supported, such as:
- 50.6795675N; 14.8752756E
- N 50° 33.320 E 015° 07.766
- 40 N, 47 E
- jtsk: 801310.09, 1077249.26
- and many others
For the found coordinates, the function returns the same parameters as for other results (name, label, position, type=coordinate, regionalStructure…)
This behavior is not enabled by default. To activate searching by coordinates, you need to add the value coordinate to the type parameter (e.g., type=regional,poi,coordinate).
You can try it out, for example, in this tutorial or in the testing lab (don’t forget to add type coordinate).