Closed TomSenden closed 1 year ago
Is there a possibility to change the profile that the nearest waterway route to the starting point is taken?
You are almost there. Adding assign waypointCatchingRange = 1000
worked for me. Note the capital C
, and make sure to insert this after ---context:global
.
extracts distances from the brouter website
Why not simply use Python to access BRouter (preferably your own local installation) directly via its GeoJSON API and extract data from there? In the end, that's how BRouter-Web is getting its routing results too.
Thanks for your help, I will try again! Do you maybe have an example of your second suggestion?
Do you maybe have an example of your second suggestion?
Open your browser console's network tab to see which requests BRouter-Web is sending to BRouter and what response is sent back.
As for poking HTTP API endpoints via Python and parsing JSON: https://requests.readthedocs.io/en/latest/user/quickstart/#json-response-content
If your question has been answered, feel free to close this issue.
Hello,
I am writing a python script for my thesis that extracts distances from the brouter website. It uses origin and destination coordinates to set the routing waypoints. The profile 'river' is used due to the subject of the research being inland shipping lanes. However, these coordinates are often not on the waterways resulting in a error 'starting point to far from a route' (see image below). Is there a possibility to change the profile that the nearest waterway route to the starting point is taken? I tried the solution using 'assign waypointcatchingRange = 1000' but it didn't work.