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

Prioritized display of search requests relative to the center of the map #630

Open
1 task
Zirochkabila opened this issue Dec 26, 2024 · 2 comments
Open
1 task

Comments

@Zirochkabila
Copy link
Collaborator

Zirochkabila commented Dec 26, 2024

Description

When location access is activated, POI is sorted according to the distance from the geolocation, not the location on which the map is centered.

This raises several controversial issues:

  1. When planning a trip, a user who is in Odesa wants to see the nearest McDonald's to the hotel where he is staying (respectively, the map is centered on the hotel) in Rome. But, at the beginning of the list, he sees the establishment that is closest to him, not the one that is on the map, and those establishments that are on the map are displayed in the middle of the list (or not at all - this is the next question) OsmAnd
  2. If the search is performed in a city that is located at a great distance, the limit of 1000 results may not be enough - for example, if user searches for “Starbucks” in Berlin while being in Wels, Austria, POIs will not be displayed OsmAnd

Steps to reproduce

  1. Activate location > Center the map on Rome (to a city 100-200km away) > Find Starbucks
  2. Activate location > Center the map on Berlin (600-700 km away) > Find Starbucks

Actual result

1
Screen.Recording.2024-12-25.at.14.48.45.mov
2
Screen.Recording.2024-12-26.at.10.26.45.mov

Expected result

  • Prioritization of POIs relative to the center of the map
@yuriiurshuliak
Copy link

The described behavior has been reproduced . Here are the details of the test cases :

Steps to Reproduce:

  1. Scenario 1:

    • Activated location access (current location: Lviv).
    • Centered the map on Rome and zoomed in.
    • Typed "McDonald's" in the search bar.

    Actual Behavior:
    OsmAnd displayed McDonald's locations near Lviv at the top of the results list instead of prioritizing locations in Rome.

  2. Scenario 2:

    • Centered the map on Berlin and zoomed in.
    • Performed a search for "McDonald's".

    Actual Behavior:
    OsmAnd prioritized McDonald's locations near Lviv over those in Berlin.

Expected Behavior:

In both scenarios, McDonald's locations in Rome or Berlin, near the center of the map, should appear at the top of the results list.

@vshcherb
Copy link
Member

Doesn't look like a serious issue, at least A) it's sorted B) the distance is clear not like center of the map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants