perliedman / leaflet-control-geocoder

A simple geocoder form to locate places. Easily extended to multiple data providers.
http://www.liedman.net/leaflet-control-geocoder/
BSD 2-Clause "Simplified" License
560 stars 220 forks source link

HEREv2: use /geocode instead of /discover by default #327

Open iiiCpu opened 3 years ago

iiiCpu commented 3 years ago

/discover is local search and is supposed to be used in apps for nearest search. Like, "I'm hungry, where's nearest mc'KF?" https://developer.here.com/documentation/geocoding-search-api/dev_guide/topics/endpoint-discover-brief.html

/geocode is global search and should be used by default. Like, "-Where am I? -7 Pine street, sir. -To hell with the details, what city it is?" https://developer.here.com/documentation/geocoding-search-api/dev_guide/topics/endpoint-geocode-brief.html

Another reason to use /geocode is that /discover needs to be provided with coordinates. Like hell i would ask if i knew them beforehand! Maybe /discover should be used only if provided with 'at' option?