rinigus / pure-maps

Maps and navigation
https://rinigus.github.io/pure-maps/
GNU General Public License v3.0
243 stars 43 forks source link

increase search result limit #631

Open huggymann opened 1 year ago

huggymann commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Hello rinigus,

What i am usually doing is to explore a Restaurant, Camping or something in the range of ~100km (i am using the "map", not the list) to show all the Results and explore a good spot. I am using osmand for this right now, it Shows actually ALL the Results on the map. With 50 results the range sometimes is some kilometer and it is showing them usually more in the east, so i need to re-search on different spot.

Would it be possible to recalculate on the map when i am moving? Or show all on map, independent from a 'location' ?
I agree with you that in list view its not helpful to have hundrets of results.

Hope this makes sense

Am Mittwoch, 31. August 2022 schrieb rinigus:

Hi!

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

-- Reply to this email directly or view it on GitHub: https://github.com/rinigus/pure-maps/issues/631#issuecomment-1233147833 You are receiving this because you authored the thread.

Message ID: @.***

-- Sent from my Sailfish device

huggymann commented 1 year ago

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 commented 1 year ago

Does that make sense?

Am Mittwoch, 31. August 2022 schrieb Matthias:

Hello rinigus,

What i am usually doing is to explore a Restaurant, Camping or something in the range of ~100km (i am using the "map", not the list) to show all the Results and explore a good spot. I am using osmand for this right now, it Shows actually ALL the Results on the map. With 50 results the range sometimes is some kilometer and it is showing them usually more in the east, so i need to re-search on different spot.

Would it be possible to recalculate on the map when i am moving? Or show all on map, independent from a 'location' ?
I agree with you that in list view its not helpful to have hundrets of results.

Hope this makes sense

Am Mittwoch, 31. August 2022 schrieb rinigus:

Hi!

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

-- Reply to this email directly or view it on GitHub: https://github.com/rinigus/pure-maps/issues/631#issuecomment-1233147833 You are receiving this because you authored the thread.

Message ID: @.***

-- Sent from my Sailfish devic

-- Sent from my Sailfish device

rinigus commented 1 year ago

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 commented 1 year ago

Could you give me some hints

I can do some testing myself

rinigus commented 1 year ago

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

huggymann commented 1 year ago

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 commented 1 year ago

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.