headway icon indicating copy to clipboard operation
headway copied to clipboard

Add a proper search results page

Open ellenhp opened this issue 2 years ago • 2 comments

Right now we only hit the pelias autocomplete endpoint which doesn't perform interpolation, among other issues. Letting users press enter to see an actual search result page would give us the opportunity to hit the search endpoint and get additional address coverage that way.

ellenhp avatar Aug 23 '22 01:08 ellenhp

Can we make it so that when the user press enter, if the first result has a high enough confidence score, the "To" is filled? Or maybe fill it unconditionally with the first result, not sure. It would be an effect similar to when a route search is made: select the first result and show the others below in another style.

kresp0 avatar Sep 10 '22 11:09 kresp0

I would prefer to show a search results page filled with all of the options returned from the Pelias search endpoint. Right now we're only using the autocomplete endpoint which leads to some problems. The search endpoint is tolerant of misspellings and is capable of doing address interpolation which is very important in some parts of the world with poor address coverage.

In the future though we'll also want to allow users to use the arrow keys to navigate the autocomplete suggestions, which should at least partially satisfy your request. :)

ellenhp avatar Sep 10 '22 16:09 ellenhp