[OSRM-talk] OSRM does not use date restrictions in conditional access?

Daniel Patterson daniel at mapbox.com
Tue Oct 13 14:27:07 UTC 2020


Michael,

  You can pass the `--parse-conditionals-from-now` option to
`osrm-contract`, and it will enable/disable access to `access:conditional`
ways according to the timestamp you type in.  Not so useful for time-of-day
restrictions, but for longer time spanning restrictions, it should do the
trick.

daniel

On Tue, Oct 13, 2020 at 12:39 AM michael spreng <mailinglists at m.spreng.ch>
wrote:

> Hi Maarten
>
> It currently does not. There is an update cycle of about 4 days. I think
> such date ranges would make sense to use at the time of generation
> (however day time ranges would still be ignored). But that is not yet
> implemented as far as I know. It could be implemented in the lua
> profile, so probably no deeper knowledge of osrm is necessary to
> implement this.
>
> Michael
>
> On 13.10.20 08:20, Maarten Deen wrote:
> > Conditional access rules for time and date restrictions follow the same
> > syntax as opening hours rules, see
> > https://wiki.openstreetmap.org/wiki/Conditional_restrictions#Condition
> >
> > I have way https://www.openstreetmap.org/way/96440420 with
> > highway=cycleway+access:conditional=no @ (2019 Okt 07-2021 Apr 29)
> > This cycleway is inaccessible from october 7th 2019 until april 29th
> > 2021, so currently it should not be routed over.
> > But OSRM cycle routing does use this road:
> >
> https://www.openstreetmap.org/directions?engine=fossgis_osrm_bike&route=51.9792%2C4.2676%3B51.9835%2C4.2554#map=17/51.98019/4.26387
> >
> >
> > Does OSRM not use conditional restrictions?
> >
> > Regards,
> > Maarten
> >
> > _______________________________________________
> > 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/20201013/eb49827e/attachment.htm>


More information about the OSRM-talk mailing list