Use DistanceBased for route type "shortest" and TimeBased for route type "fastest", for backward compatibility