-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QOL: Autocomplete entries sorted by distance #390
QOL: Autocomplete entries sorted by distance #390
Conversation
Nice! Great idea to improve the auto complete based on previous coordinates! Is it somehow possible to avoid using the "lower level" |
Ah yes, I'll look into this :) |
This should do it |
Nice, thank you! Now that I see the code: it could make more sense to pass only the Sorry for the hassle... |
I've moved the logic part out of the Geocode class, could you check if this is what you had in mind? |
Thanks! |
Have increased the location_bias_scale to reduce hiding results. E.g. when I first entered the location "Dresden", then "hoyer" should give us not only streets in "Dresden". Let's see if it still makes problems. |
* implemented * remove debug & reformat files * removed low-level getQueryStore().state.queryPoints * removed obsolete import * removed more obsolete imports * cleaned up the Geocoder * format file
Since I found it quite annoying that the autocompletion was always based on the coordinate
0,0
, I implemented that if there is a query point above the currently selected one, these coordinates are sent together with the geocode request to the GraphHopper Geocoding API.fixes #385