[OSRM-talk] Allowing trunk roads for foot and bicycle directions in the British Isles.

Nikhil VJ nikhil.js at gmail.com
Tue Apr 27 00:44:28 UTC 2021


Hello Ika-chan,

I was able to allow pedestrians onto more types of roads by adding those
tags under " speeds = Sequence { .. }" list in foot.lua:

    speeds = Sequence {
      highway = {
        primary         = walking_speed,
        primary_link    = walking_speed,
        secondary       = walking_speed,
        secondary_link  = walking_speed,
        tertiary        = walking_speed,
        tertiary_link   = walking_speed,
        unclassified    = walking_speed,
        residential     = walking_speed,
        road            = walking_speed,
        living_street   = walking_speed,
        service         = walking_speed,
        track           = walking_speed,
        path            = walking_speed,
        steps           = walking_speed,
        pedestrian      = walking_speed,
        footway         = walking_speed,
        pier            = walking_speed,
        -- adding trunk .. YES IT WORKED
        trunk           = walking_speed,
        trunk_link      = walking_speed,
        motorway        = walking_speed,
      },

comment is optional ;)
I had to add motorway also in my case.

I'm guessing in bicycle.lua also you can add additional tags
under bicycle_speeds or so. I haven't tried that yet, this foot.lua
intervention I've tried and confirmed that it works. I can understand why
it may not be suitable worldwide, but in my limited use case I had to allow
access.

--
Cheers,
Nikhil VJ
https://nikhilvj.co.in


On Sun, Apr 25, 2021 at 12:18 PM Daniel Patterson via OSRM-talk <
osrm-talk at openstreetmap.org> wrote:

> The missing piece is OSRM following the guidelines outlined here:
> https://wiki.openstreetmap.org/wiki/OSM_tags_for_routing/Access_restrictions
>
> Practically, here's what needs to happen:
>
>   1. Someone needs to make a GeoJSON file with these country boundaries,
> and set properties on them that describe the access defaults.
>   2. Use the `--location-dependent-data` flag to `osrm-extract` so the
> properties are available to the Lua scripts setting access rules
>   3. Update the Lua scripts to know what to do when the location-dependent
> properties are present.
>
> I have enough time to write this down as a guideline for someone, but not
> enough spare time to actually go ahead and do it :-/
>
> daniel
>
> On Sat, Apr 24, 2021 at 1:15 PM ika-chan! <mapper+dev at minoa.li> wrote:
>
>> Hello,
>>
>> Last week, VictorIE and I came into conflict about the use of
>> "access=yes" on trunk roads ("highway=trunk" and "highway=trunk_link")
>> in the Republic of Ireland
>> (https://www.openstreetmap.org/changeset/93624048).
>>
>> In the Republic of Ireland, Greece, and the United Kingdom, trunk roads
>> are all-purpose roads that all users can legally use, unless
>> specifically prohibited (with the use of the tags "motorroad=yes" or
>> "foot=no", etc.): in Greece, "highway=trunk" means an all-purpose
>> National Road on an E-Road network
>> (https://wiki.openstreetmap.org/wiki/Greece#Highways_in_Greece).
>>
>> VictorIE believes that it is currently necessary to use "access=yes" on
>> trunk roads, because your router does not allow pedestrian and bicycle
>> journeys to use trunk roads, even though it is legal to do so
>> (
>> https://www.openstreetmap.org/directions?engine=fossgis_osrm_foot&route=51.98803%2C-7.74369%3B51.98943%2C-7.74110).
>>
>> My belief is that using "access=yes" on trunk roads in IE, GR and GB is
>> redundant, and my belief appears to be backed by Osmose
>> (
>> http://osmose.openstreetmap.fr/en/map/#zoom=12&lat=53.2952&lon=-6.4592&item=3220&level=1%2C2%2C3).
>>
>>
>>
>> Therefore, I have to write to ask you if you can find a way to update
>> the router so that pedestrian and bicycle journeys can use trunk roads
>> in Republic of Ireland, Greece and the United Kingdom. If OSRM can
>> already recognise left- and right-hand traffic, I do not think that the
>> updates will be too hard.
>>
>> Best,
>>
>> -- ika-chan!
>>
>> _______________________________________________
>> OSRM-talk mailing list
>> OSRM-talk at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
>>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20210427/e9b38b08/attachment.htm>


More information about the OSRM-talk mailing list