Due to site maintenance, Forum interaction has been disabled until August 13. For support, please search existing forum posts or check the support page.
Additional filter for route search
Quote from Toku75 on June 9, 2020, 17:46The routes database is a really great feature, but I find it hard to define a filter to get only 50 routes in the area of interest. Is it possible to implement a filter that selects all routes, that lead through the rectangle? It‘s important, that the routes don‘t have to be fully inside of the rectangle. With this filter you can define only a small part of the map to be inside of the rectangle without cutting away many interesting and long routes.
As an alternative, a filter that selects all routes with a selectable maximum distance from a special position would give the same benefit. The distance should be measured between the special position to the nearest point of the route.
Best Regards,
Tobias
The routes database is a really great feature, but I find it hard to define a filter to get only 50 routes in the area of interest. Is it possible to implement a filter that selects all routes, that lead through the rectangle? It‘s important, that the routes don‘t have to be fully inside of the rectangle. With this filter you can define only a small part of the map to be inside of the rectangle without cutting away many interesting and long routes.
As an alternative, a filter that selects all routes with a selectable maximum distance from a special position would give the same benefit. The distance should be measured between the special position to the nearest point of the route.
Best Regards,
Tobias
Quote from Guido on June 10, 2020, 04:25Hi Tobias,
I had this with Scenic 1, but as the database of public routes kept growing these requests started to slow down the server, almost to a complete stop on busy days.
Such a request is inherently more resource (cpu and/or memory) consuming. With current way server only needs to check if bounding box of a route fits completely in selected area (in other words if north-west and south-east coordinates of min square map area containing the route, are both inside the selected map area).
For a request such as yours you have to see if each route bounding box overlaps with selected area (I.e. at least one of 4 bounding box corners needs to be inside selected area) and then check for each route where there is an overlap, if it actually passes through selected area (by checking if key coordinates along the route are in selected area) because overlapping bounding box does not necessarily mean that route itself goes through selected area.
Let me give this another try to see if I can make it more efficient. Open to suggestions.
cheers,
guido
Hi Tobias,
I had this with Scenic 1, but as the database of public routes kept growing these requests started to slow down the server, almost to a complete stop on busy days.
Such a request is inherently more resource (cpu and/or memory) consuming. With current way server only needs to check if bounding box of a route fits completely in selected area (in other words if north-west and south-east coordinates of min square map area containing the route, are both inside the selected map area).
For a request such as yours you have to see if each route bounding box overlaps with selected area (I.e. at least one of 4 bounding box corners needs to be inside selected area) and then check for each route where there is an overlap, if it actually passes through selected area (by checking if key coordinates along the route are in selected area) because overlapping bounding box does not necessarily mean that route itself goes through selected area.
Let me give this another try to see if I can make it more efficient. Open to suggestions.
cheers,
guido
Quote from Toku75 on June 10, 2020, 14:24Hi Guido,
Okay. This sounds like a time consuming algorithm. I wouldn‘t have thought, that you have to do it like this.
Would it be more efficient to calculate the minimum distance from some location to the nearest point of each route? I fear this is not very efficient also.
I‘m just looking for something to get a better overview of possible routes without missing just the best one because I have to select a small area. Maybe I‘ll have further ideas in the future.
Best regards,
Tobias
Hi Guido,
Okay. This sounds like a time consuming algorithm. I wouldn‘t have thought, that you have to do it like this.
Would it be more efficient to calculate the minimum distance from some location to the nearest point of each route? I fear this is not very efficient also.
I‘m just looking for something to get a better overview of possible routes without missing just the best one because I have to select a small area. Maybe I‘ll have further ideas in the future.
Best regards,
Tobias
Quote from Aososki on September 15, 2020, 02:18This exact thing. I want to find all the great routes that start within say 15 miles of my house. I’m happy to ride 150 miles or so, but if I make the bounding box big enough to give that length of ride, a) I have to keep adding filters to get it below 50 results so I’m missing out on too many, b) most of them start 50 or more miles away so no use to me.
I want to be able to tap in to routes that intersect near enough for me to join them easily.Thanks @guidomm for a fantastic app! I show it every biker I ride with.
This exact thing. I want to find all the great routes that start within say 15 miles of my house. I’m happy to ride 150 miles or so, but if I make the bounding box big enough to give that length of ride, a) I have to keep adding filters to get it below 50 results so I’m missing out on too many, b) most of them start 50 or more miles away so no use to me.
I want to be able to tap in to routes that intersect near enough for me to join them easily.
Thanks @guidomm for a fantastic app! I show it every biker I ride with.
Quote from Guido on September 15, 2020, 02:25I'm going to change this behaviour a bit for Scenic 3 (next motorcycle season), offering you more ways to find public routes.
I'm going to change this behaviour a bit for Scenic 3 (next motorcycle season), offering you more ways to find public routes.
Quote from Aososki on September 15, 2020, 02:47That’s great news! Thank you for being so responsive!!
That’s great news! Thank you for being so responsive!!
