Geocoding search results closer to specific point

Geocoding control search results closer to the specific geographical point will be given higher priority. Use the proximity options in the control constructor to prioritize results close to the given point (ranked by proximity). Geographical point given as an latitude and longitude [lat, lng]. See all geocoding control options in the geocoding control reference documentation. In the example below, we to prioritize results near Time Square in New York (Ex. “park avenue”).

Related examples

An extension of MapLibre GL JS