-
Notifications
You must be signed in to change notification settings - Fork 126
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
car routing then direct line #387
Comments
No, in BRouter-(Web), Waypoints are always matched to the routable-network. There's a hidden feature for some sort of "beeline-routing", by putting a nogo-circle over 2 Waypoints ( see here for details: https://www.marcusjaschen.de/blog/2021/brouter-direkte-verbindung-zwischen-zwei-wegpunkten/ ) that's good if you need a connection within your route where there's no mapped way. But it doesn't help you for off-road start- or detination-points. |
Thank you, I was hoping to find this solution for applications that depend on BRouter, like Orux, Locus and others, Regards |
It is not that if Brouter would add support for direct lines, Apps like Orux, Locus and OsmAnd would directly support direct lines, these Apps have to communicate their desires to BRouter and such new functionality will need code changes in these Apps. In the link @abrensch posted you can see BRouter has already a way to do this using No-Go-Area's the problem is on the App side to support this. Note that Apps might also support this but just calling Brouter multiple times, only for the pieces so the route where the user wants routing. Adding this functionality to the Apps, see also Allow straight lines #68 seems to be the hard problem, especially the user interface. So if you want this, you better check these Apps, see if there is already a "direct line" request and if not add one. |
Thank you very much for explaining that, regards |
Related discussion: |
@afischerdev @abrensch Does the current state of development allow for the development of something for this proposal? This is a video to understand the intended proposal: Thank you for your attention to this matter. |
Do you ask BRouter to automatically generate straight lines when waypoints are far from the road? All of these seem more suitable for implementation in applications than on the router. I know I said to implement it in Cruiser. 🙂 |
@devemux86 Thank you so much for explaining that! I understand it makes more sense to handle the "straight line" feature on the app side, given what you've said about complexity and user experience. My knowledge of the development side is limited, so I really appreciate you shedding light on this approach. I'll keep an eye out for updates in Cruiser! |
How does it work, is it optional? Does it generate straight line instructions at start / end? |
Yes, the plan is a switch for the profiles, something like
Yes, when distance between waypoint and crosspoint greater then x then a beeline is created. |
Thanks, it already looks good! Will it also be available in other export formats, such as geojson? |
@devemux86 |
I am absolutely thrilled to see this progress! Thank you both so much for your hard work and dedication to this feature. It's incredibly encouraging to see it coming to life. Knowing that it will be optional and available in multiple export formats is fantastic. This functionality will be a game-changer for users in areas with limited road networks, like where I live. Your efforts are truly appreciated and will make a significant difference. Thank you again for considering this proposal and for all the progress you've made. I'm eagerly looking forward to seeing the final implementation! Best regards, Abdullah Abdulrahman |
@afischerdev Thanks for this implementation! I started testing the API and the received routes from BRouter (GeoJSON format). The voice hints seem to be missing at the start of beelines? |
@devemux86 Route 1: I can follow this and get same result - no voicehints in json. But I have two in Locus export (gpx, timode02) Route 2: looks alright for me. First point has a beeline voicehint, a second voicehint at junction. The last point does not meet the generate beeline rule - it is less then 250m away from street. Please see this |
I think I found the reason: |
@afischerdev Thanks, now it seems to work ok. 👍 I included it into the latest Cruiser for more user testing: |
@afischerdev @devemux86 Could you please try this on roads with the same tag (highway=track) to verify the issue? I hope there is a solution to improve performance in this case. Thank you very much. |
@abdullahO2 Can you provide a route example as BRouter website link? Also please mention what profile you use and what routing options. |
I used this profile: Maybe there was a mistake in my editing of the profile that caused this problem, or maybe there was a problem with the map data. |
|
@afischerdev This profile is the car-fast with
|
This route does not seem to work even with the default car-fast profile and |
With the car profile I got the same error message. With the trekking profile I got a route. |
As I said the trekking profile delivers a route.
You will get a route. |
@afischerdev The mentioned profile above contains the |
@devemux86 |
@afischerdev Do these changes also affect the There was a report that it no longer works, unfortunately without more details or a route example: |
@devemux86 |
@devemux86 Note: this only works in the library. The web client collects data segment by segment. |
@afischerdev Thanks very much for checking this! 👍
I forgot this part. 🙂 |
Can you check if alternative routes work with the latest code? While alternatives exist and I can get them with the 1.7.7 code. We had a report here: |
@devemux86 |
@afischerdev The problem seems to be from commit 504f819. |
@devemux86 |
@devemux86 |
@afischerdev Thanks, now it seems to work properly. 👍 |
Thank you for your efforts in this software, and I tried it and found it useful and wonderful, but in my country (Saudi Arabia) there are large desert areas without roads and sometimes we need to go to a place inside that desert, and BRouter does not support routing for places where there are no roads, so I have a suggestion to put a profile that supports A route to the nearest nearby road and then puts a direct line to the specified waypoint, and this solution is found in many applications such as Navitel and Osmand (example):
If this solution is possible, please guide me on how to do it, thank you
The text was updated successfully, but these errors were encountered: