Yes, this behaviour is baked into the dataset during the "pre-processing" step - you can't currently modify it at query time on the demo server.
If you need this behaviour, you have two options: 1) Remove HOV lanes from the avoid list here: https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/car.lua#L119 and process your own dataset 2) With a bit of work, you could possibly make this query-time selectable by adding support for a new "hov-only" road class here: https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/lib/guidance.lua#L63, then adding an exclude capability for that class here: https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/car.lua#L107 Both of these options require you to generate your own datasets and run your own server. daniel On Thu, Sep 21, 2017 at 9:04 AM, Jason Dalton <[email protected]> wrote: > > the OSRM demos all avoid I66E during the HOV period. Is that how the > demo is specifically set up, and is there a config that allows HOV travel? > > https://www.mapbox.com/get-directions/#12.18/38.8522/-77. > 1488?coordinates=-77.26192144623029,38.86860868389613;-77.05189,38.848834 > > http://map.project-osrm.org/?z=15¢er=38.876150%2C-77. > 219124&loc=38.871690%2C-77.261438&loc=38.848625%2C-77.051612&hl=en&alt=0 > > > > _______________________________________________ > OSRM-talk mailing list > [email protected] > https://lists.openstreetmap.org/listinfo/osrm-talk > >
_______________________________________________ OSRM-talk mailing list [email protected] https://lists.openstreetmap.org/listinfo/osrm-talk
