pure-maps icon indicating copy to clipboard operation
pure-maps copied to clipboard

increase search result limit

Open huggymann opened this issue 2 years ago • 9 comments

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

huggymann avatar Aug 30 '22 08:08 huggymann

Hi!

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

rinigus avatar Aug 31 '22 16:08 rinigus

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 avatar Aug 31 '22 20:08 huggymann

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 avatar Sep 01 '22 09:09 huggymann

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

huggymann avatar Sep 05 '22 20:09 huggymann

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

rinigus avatar Sep 06 '22 18:09 rinigus

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

huggymann avatar Sep 07 '22 06:09 huggymann

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

rinigus avatar Sep 07 '22 17:09 rinigus

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.

huggymann avatar Oct 10 '22 19:10 huggymann

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.

rinigus avatar Oct 11 '22 16:10 rinigus