smeijer / leaflet-geosearch

A geocoding/address-lookup library supporting various api providers.
https://smeijer.github.io/leaflet-geosearch/
MIT License
1.02k stars 270 forks source link

Is there a way to add get sorted data from leaflet-geosearch? #392

Closed itse4elhaam closed 4 months ago

itse4elhaam commented 5 months ago

Right now the results I am getting are not sorted by the closest location, I am using the OpenStreetMapProvider.

I am looking for either one of these options:

PS: loving the plugin, it makes my everything really swift, kudos!

itse4elhaam commented 4 months ago

I got the answer, it can be done using a custom provider and the parse function.