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

StructuredFallbackQuery scoring of venue queries. #136

Open
missinglink opened this issue Apr 16, 2024 · 0 comments
Open

StructuredFallbackQuery scoring of venue queries. #136

missinglink opened this issue Apr 16, 2024 · 0 comments
Labels

Comments

@missinglink
Copy link
Member

missinglink commented Apr 16, 2024

When specifying the venue param for /v1/search/structured (ie. when searching for a POI), additional information, such as the postcode and street fields are not considered for scoring.

function addQuery(vs) {

This results in POI results being returned in insertion order rather than better matches being shown first.

Examples:

The second result matches the postalcode 6011, yet is displayed second:

Screenshot 2024-04-16 at 17 02 48 Screenshot 2024-04-16 at 17 02 53

Adding the address information of the second result returns only address layer results:

Screenshot 2024-04-16 at 17 05 16 Screenshot 2024-04-16 at 17 05 23

Manually specifying layers=venue shows the same results as the original query (incorrectly ordered):

Screenshot 2024-04-16 at 17 05 59 Screenshot 2024-04-16 at 17 06 04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant