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

increase search result limit #631

Open
huggymann opened this issue Aug 30, 2022 · 9 comments
Open

increase search result limit #631

huggymann opened this issue Aug 30, 2022 · 9 comments

Comments

@huggymann
Copy link

Hello,

is it possible to increase the search result limit? I would like to search e.g. for a fuel station and check the locations on the map but it is always limited to 50 results. Would it be possible to increase that number fairly to see an overview on the map?

Kind Regards
Matthias

@rinigus
Copy link
Owner

rinigus commented Aug 31, 2022

Hi!

I am reluctant to do so. 50 is already quite a bunch... Any way to make hits that you are more interested in?

@huggymann
Copy link
Author

huggymann commented Aug 31, 2022 via email

@huggymann
Copy link
Author

e.g. when i search for restaurant in a city (e.g. Dresden in germany) and check them on the map, I see 50 results (blue dots in the middle). This is the city-center but not showing me the results from other parts of the city (marked in green). i have to search again and again for each city-part which takes a lot of time. I would prefer to scroll in/around to see where are the POIs (restaurants) which is - for me - much easier.
image

@huggymann
Copy link
Author

huggymann commented Sep 5, 2022 via email

@rinigus
Copy link
Owner

rinigus commented Sep 6, 2022

Sorry for delayed reply - being swamped right now. I would have to think about how to do that in a sensible manner. Having a cloud of points covering the whole city is probably not the best solution

@huggymann
Copy link
Author

Could you give me some hints

  • where is the limit of 50 set?
  • where are the points of the map calculated/shown?

I can do some testing myself

@rinigus
Copy link
Owner

rinigus commented Sep 7, 2022

Sure, for OSM Scout Server it is set at https://github.com/rinigus/pure-maps/blob/master/guides/osmscout.py#L78

@huggymann
Copy link
Author

Hello Rinigus, i tried with multiple settings as maximum, it is really crowded with higher maximum, but zooming in it is fine. Depending on the type of search (e.g. restaurant) the number of search results in a 100km range could go really high, making the search slow.

Could it be possible to Reload the nearby places when i move on the map? in the background it could still be a smaller/faster limit. I couldnt figure out in the code where the "nearby(...)" function is called.

@rinigus
Copy link
Owner

rinigus commented Oct 11, 2022

Search and nearby are different search strategies. Compare subfolders "guides" and "geocoders". As for whether it is possible - yes, it is probably. Would have to start catching map movement, check whether it is significant and try to search again. Geocoding also has reference point in addition to the string, so that would influence the result. But that functionality is not there right now.

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

No branches or pull requests

2 participants