pure-maps
pure-maps copied to clipboard
Address the differences in Search and Nearby
It seems to cause confusion on when to use Nearby and when Search. In HERE, looks like you can start typing a type of something (restaurant) and this will be shown as a first result. To distinguish, its shown in "" marks. Maybe something similar can be done in Pure Maps.
For example, if a type is selected, then we can ask for distance or even assume some distance and let users change it if needed.
Challenge will be to make such list while having multiple Nearby backends supported. Some may not even provide the list of types, I think.
Related issue is #101 which should allow to search by name of the restaurants, for example, and show the local ones first.
If merging two searches is too complicated, consider somehow making it clear which one to choose.
We could make a list of all possible POI types and bundle it with the app. When user starts typing "cafe", search for POIs with cafe in the name, but also add an item in the list allowing to switch over to nearby search.
An example of how can that be mixed well is HERE geocoder. Use the similar approach for such more clever geocoders and merge Nearby/Search under Search