leaflet-control-geocoder icon indicating copy to clipboard operation
leaflet-control-geocoder copied to clipboard

HEREv2: use /geocode instead of /discover by default

Open iiiCpu opened this issue 3 years ago • 0 comments

/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?

iiiCpu avatar May 18 '21 10:05 iiiCpu