There's an alternatives=n option you can use to request up to n alternatives (if available).
Here are the constants for pruning alternative candidate paths: https://github.com/Project-OSRM/osrm-backend/blob/02712cd513bca1b49d867085e80c608a53b7bb03/src/engine/routing_algorithms/alternative_path_mld.cpp#L37-L52 you can tune them to trade off between quality and quantity. More insights here: - https://github.com/Project-OSRM/osrm-backend/issues/3905 - https://github.com/Project-OSRM/osrm-backend/pull/4047 HTH, Daniel J H On Sun, Jan 21, 2018 at 4:27 PM, Behizz <[email protected]> wrote: > Hello guys > > I'm using the latest OSRM version and I use the partition-customize chain > for building the model and getting more alternatives. But OSRM suggests > alternative routes a few times although there are so many good alternative > routes based on weights. > > Is there any way to force it to return more alternatives? > > Thanks > > _______________________________________________ > 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
