[OSRM-talk] OSRM does not use date restrictions in conditional access?
daniel at mapbox.com
Tue Oct 13 14:27:07 UTC 2020
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
On Tue, Oct 13, 2020 at 12:39 AM michael spreng <mailinglists at m.spreng.ch>
> 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.
> 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:
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OSRM-talk