access=no seems ignored

28 views
Skip to first unread message

Jakob Mühldorfer

unread,
Oct 21, 2016, 5:50:49 PM10/21/16
to OSM Android bikerouting

Jakob Mühldorfer

unread,
Oct 21, 2016, 5:57:05 PM10/21/16
to OSM Android bikerouting
For some reason it thinks bikeaccess is true

assign bikeaccess =
       if nodeaccessgranted then true
       else if bicycle= then
       (
         if vehicle= then defaultaccess
         else not vehicle=private|no
       )
       else not bicycle=private|no|dismount  
Message has been deleted

Poutnik

unread,
Oct 21, 2016, 6:17:20 PM10/21/16
to osm-android...@googlegroups.com
in absence of bicycle=* tag,
bicycle=private|no|dismount is always false
and
not bicycle=private|no|dismount is always true


Dne 22/10/2016 v 00:01 Jakob Mühldorfer napsal(a):
> Somethign does not add up here
> when a way has no bicycle= tag, the " else not
> bicycle=private|no|dismount" part can never be true?
> it should go to defaultaccess in this case?
>


--
Poutnik ( The Wanderer )

My Brouter profiles
https://github.com/poutnikl/Brouter-profiles/wiki

Poutnik

unread,
Oct 21, 2016, 6:20:06 PM10/21/16
to osm-android...@googlegroups.com
Correction,
if no bicycle tag there,
the branch else not bicycle=private|no|dismount is not evaluated.
but evaluated is
(
if vehicle= then defaultaccess
else not vehicle=private|no
)



Jakob Mühldorfer

unread,
Oct 21, 2016, 6:26:06 PM10/21/16
to OSM Android bikerouting
Ok I added "vehicle=destination" and now it works

Poutnik

unread,
Oct 21, 2016, 6:30:34 PM10/21/16
to osm-android...@googlegroups.com
There is no access=no tag

WayTags
highway=residential
highway=service access=private foot=private vehicle=destination
highway=service access=private foot=private vehicle=destination
reversedirection=yes highway=unclassified
reversedirection=yes highway=unclassified
highway=service
highway=footway

default access is false
But is is used only if there is no vehicle nor bicycle tag
vehicle tag is destination, so neither default access nor explicit no access is used

assign defaultaccess =
       if access= then not motorroad=yes
       else if access=private|no then false
       else true

#
# calculate logical bike access
#
assign bikeaccess =
       if any_cycleroute then true

       else if bicycle= then
       (
         if vehicle= then defaultaccess
         else not vehicle=private|no
       )
       else not bicycle=private|no|dismount

Dne 21/10/2016 v 23:50 Jakob Mühldorfer napsal(a):

Poutnik

unread,
Oct 21, 2016, 6:40:51 PM10/21/16
to osm-android...@googlegroups.com
IMHO the profile is OK.
Perhaps destination access
should have penalty to be used if the only option.

Dne 22/10/2016 v 00:26 Jakob Mühldorfer napsal(a):
> Ok I added "vehicle=destination" and now it works


Jakob Mühldorfer

unread,
Oct 21, 2016, 9:27:45 PM10/21/16
to OSM Android bikerouting
Unfortunately in this case "destination" you can go to is the middle of the train station, where you absolutely may not go

Poutnik

unread,
Oct 22, 2016, 2:18:58 AM10/22/16
to Jakob Mühldorfer, OSM Android bikerouting
As if vehicle=destination then all vehicles including bicycle ( as there is no explicit bicycle tag )
have allowed access to reach the place, but are not allowed to go through.
If the access is forbidden, vehicle=destination is wrong value.

With given tagging, bikeaccess=true is perfectly valid,
but should be managed by high costfactor
for driving through to be avoided, but still available as destination.

That is for exact law view.
For practical view, breaking no driving through
is less critical for bicycles than for motor vehicles.

Dne 22/10/2016 v 06:48 poutnik napsal(a):
Then it is not tagged properly and should be edited in OSM.

22. října 2016 3:27:45 CEST, "Jakob Mühldorfer" <jmuehl...@gmail.com> napsal:
Unfortunately in this case "destination" you can go to is the middle of the train station, where you absolutely may not go

Arndt Brenschede

unread,
Oct 22, 2016, 11:12:16 AM10/22/16
to OSM Android bikerouting
I would say the tagging is wrong.

If foot-access is private, vehicle-access should be private as well. It's true that brouter cannot handle a "destination" value as designed, in the sense of using it only for immediate access to your destination. But I think that's not the issue here.

Access tags have a hirachy, so already the foot=private is redundant in this example, because it is implied by access=private. So it should be tagged only with "access=private" and then all access is private.
Reply all
Reply to author
Forward
0 new messages