Not able to route ways when access=private
mistertttt opened this issue ยท 20 comments
I might be wrong, but it seems that it is not possible to use the routing feature on ways that are marked in OSM with access=private
or possibly other values, but not access=yes
or access=permissive
I assume this behavior is a feature rather than a bug, but for my use case I would like to be able to create routes using such ways. Is there a way to do so with the current version ? If not, could this be considered it as a feature request ?
I don't think that's possible at the moment. I use brouter-web which allows you to modify the profile directly so that you accept access=private in the routing.
Thanks for the (very) fast answer. So I search and looked at a brouter online instance (https://brouter.damsy.net/).
There I found the editable user profile you mentionned. I looked at it and found this particular section :
#
# implicit access here just from the motorroad tag
# (implicit access rules from highway tag handled elsewhere)
#
assign defaultaccess =
if access= then not motorroad=yes
else if access=private|no then false
else true
I gave it a try and commented the line else if access=private|no then false
and it seems indeed that such modification of the profile leads to the expected* behavior (* at least by me). Is there a chance to be able to do so at gpx.studio ?
As far as I am concerned, I wouldn't need to be able to modify the profile by myself, I just need it to ignore that line...
It's a particular need, I'm not the developer but I'm thinking that it's either a profile that tells everyone that you're going to be entering private property. And I don't think that's right from my point of view as an OSM contributor. After that, if it's the fact that the router isn't good because it doesn't read the tags properly, that's another story and I may have misunderstood your concern.
And it's better to use a riding profile like the one on brouter-web and modify it for your needs than a bike profile, isn't it?
Walking-Hiking-Mountain/Alpine Hiking profile
And it's better to use a riding profile like the one on brouter-web and modify it for your needs than a bike profile, isn't it?
Walking-Hiking-Mountain/Alpine Hiking profile
Not sure what your mean. Is it possible to use a different profile with gpx.studio ? I haven't seen how.
It's a particular need, I'm not the developer but I'm thinking that it's either a profile that tells everyone that you're going to be entering private property. And I don't think that's right from my point of view as an OSM contributor.
To be more precise on my needs : I am tracing mtb tours, and yes I intend to enter private properties. But I have of course previously got authorizations and made sure that owners are totally ok. I just need tracks to be properly routed through those properties when I draw them.
I am an OSM contributor too, and i see no contradiction between the two approaches. As a matter of fact I try to be rather accurate when mapping accesses, and several - if not many - of the access=private
keys we're talking about, I added them myself ... And I certainly would not like to revert them, just to fit my needs for routing.
OK, I don't think it's a good idea for a tool like gpxStudio to allow people to access private properties. I think it's better for you to modify the brouter-web hiking profile so that it runs its router with your very particular configuration.
I'm talking about the hiking profile on the https://brouter.de/brouter-web/#map=5/50.986/9.822/cyclosm&profile=hiking-mountain site, on the right you can change its behaviour
Ok. To me there's a gap between virtually tracing tracks and actually and physically enter private properties. Like I explained, I feel quite legitimate since I got proper authorizations.
I'm talking about the hiking profile on the https://brouter.de/brouter-web/#map=5/50.986/9.822/cyclosm&profile=hiking-mountain site, on the right you can change its behaviour
Yeah that's what I did, and it worked. But from what I've seen, brouter.de doesn't provide exactly the same functionalities as gpx.studio. For instance I haven't figured out how to easily modify an existing gpx track. I definitely feel more comfortable with gpx.studio UI
OK, I'll let the developer answer, I've given you my technique.
It could be a checkbox option, like Allow routing via private properties
with a default set to No
and the ability for each user to set it to Yes
. I don't see the problem with providing this option: routing via private properties is not illegal, entering without authorization is. OSM data isn't 100% accurate on that topic, and ways that are not tagged as private could be in reality, ultimately it's the responsibility of the hiker/cyclist on the field to respect (or disrespect) the law.
Your request is very simple to realize : uncheck temporarely the "Routing (follow roads)" checkbox, shape your segment then recheck the checkbox
Your request is very simple to realize : uncheck temporarely the "Routing (follow roads)" checkbox, shape your segment then recheck the checkbox
Thanks for the tip, but you may have missed my request : I would like to be able to use the Routing (follow roads) feature while tracing my track through "private" ways. As far as I understand, unchecking the box disables such feature, either for "private" or "not private" ways.
I perfectly understood your request and my answer is the right one, everything is inside "temporarely". It will allow to shape anyway, you will have to follow roads yourself ;-)
It must be because of my poor English, but if you perfectly understood my request, then I don't understand your suggestion.
I don't want to "have to follow roads [my]self" (which I have been doing so far). I would rather have gpxstudio automatically follow roads for me. Even private roads. That's the point.
Try "Run/Hike" activity then
mapa4, I don't understand your suggestions, mistertttt wants to add a feature to gpxstudio, not an advice on how to get kind of the same result with less than optimal solutions.
ok ok, as I am not sure that the developer will take into account the development of such a feature, I wanted to help by a workaround.
no need to spam this thread
I have added a setting to allow routing on private roads.
Feedback for each activity type is welcome, since I am not an expert with the routing profiles.
I have adapted existing ones in the following commit if you want to check: gpxstudio/brouter@7229bc4.
Great, exactly what I asked for.
And it (seemingly) works !
Thx
@vcoppe Could you allow users to make their own profile as a grazer to avoid x routing request changing the UX all the time or something?
All the time? Are there many more parameters that you would like to change?
I don't, but it's possible that someone wants to provide a model that is more suitable for hiking relationships and therefore modify the routine file. a bit like scrambling where you can customise the router.