Skip to content
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

AER-2539 Attempt at improving suggestions from Bing map search #43

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

BertScholten
Copy link
Member

The locations endpoint has a query part, but that doesn't really work as suggestions: it only returns results that are pretty much exactly what you're searching for, and something like 'edin' won't result anything. There is a autosuggest endpoint, but that one doesn't return geo information... So tying the 2 together, first the suggestion for sensible suggstions and then the locations endpoint to get geo information. Does mean more roundtrips, but there's a max of 10 results anyway.

The locations endpoint has a query part, but that doesn't really work as suggestions: it only returns results that are pretty much exactly what you're searching for, and something like 'edin' won't result anything.
There is a autosuggest endpoint, but that one doesn't return geo information... So tying the 2 together, first the suggestion for sensible suggstions and then the locations endpoint to get geo information. Does mean more roundtrips, but there's a max of 10 results anyway.
@BertScholten BertScholten changed the title Attempt at improving suggestions from Bing map search AER-2539 Attempt at improving suggestions from Bing map search Dec 1, 2023
@JornC
Copy link
Member

JornC commented Dec 1, 2023

Ah

Copy link
Member

@JornC JornC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

The name does not really fit in the locations-with-adress endpoint (when using it along with countryregion, you'll get just United Kingdom as a result...), so have to use the locations-with-query endpoint (which is the same, but has different query parameters, not the cleanest endpoint definition ever).
Does mean more results are returned, so reduced number of max results.
@BertScholten BertScholten merged commit 5f961d9 into aerius:main Dec 1, 2023
1 check passed
@BertScholten BertScholten deleted the adjust_bing_search branch December 1, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants