RoutePreferences constructor

RoutePreferences({
  1. bool accurateTrackMatch = true,
  2. PTAlgorithmType algorithmType = PTAlgorithmType.departure,
  3. bool allowOnlineCalculation = true,
  4. bool alternativeRoutesBalancedSorting = true,
  5. RouteAlternativesSchema alternativesSchema = RouteAlternativesSchema.defaultSchema,
  6. double avoidBikingHillFactor = 0.5,
  7. bool avoidCarpoolLanes = false,
  8. bool avoidFerries = false,
  9. bool avoidMotorways = false,
  10. bool avoidTollRoads = false,
  11. TrafficAvoidance avoidTraffic = TrafficAvoidance.none,
  12. bool avoidTurnAroundInstruction = false,
  13. bool avoidUnpavedRoads = false,
  14. BikeProfileElectricBikeProfile? bikeProfile,
  15. bool buildConnections = false,
  16. BuildTerrainProfile buildTerrainProfile = const BuildTerrainProfile(),
  17. CarProfile? carProfile,
  18. DepartureHeading departureHeading = const DepartureHeading(),
  19. int emergencyVehicleExtraFreedomLevels = 0,
  20. bool emergencyVehicleMode = false,
  21. EVProfile? evProfile,
  22. bool ignoreRestrictionsOverTrack = false,
  23. bool maximumDistanceConstraint = true,
  24. int maximumTransferTimeInMinutes = 300,
  25. int maximumWalkDistance = 5000,
  26. int minimumTransferTimeInMinutes = 1,
  27. RoutePathAlgorithm pathAlgorithm = RoutePathAlgorithm.ml,
  28. RoutePathAlgorithmFlavor pathAlgorithmFlavor = RoutePathAlgorithmFlavor.magicLane,
  29. PedestrianProfile pedestrianProfile = PedestrianProfile.walk,
  30. RouteResultDetails resultDetails = RouteResultDetails.full,
  31. List<int> routeGroupIdsEarlierLater = const <int>[],
  32. List<int> routeRanges = const <int>[],
  33. int routeRangesQuality = 100,
  34. RouteResultType routeResultType = RouteResultType.path,
  35. RouteType routeType = RouteType.fastest,
  36. Set<RouteTypePreferences> routeTypePreferences = const <RouteTypePreferences>{RouteTypePreferences.none},
  37. PTSortingStrategy sortingStrategy = PTSortingStrategy.bestTime,
  38. DateTime? timestamp,
  39. RouteTransportMode transportMode = RouteTransportMode.car,
  40. TruckProfile? truckProfile,
  41. bool useBikes = false,
  42. bool useWheelchair = false,
})

Implementation

RoutePreferences({
  this.accurateTrackMatch = true,
  this.algorithmType = PTAlgorithmType.departure,
  this.allowOnlineCalculation = true,
  this.alternativeRoutesBalancedSorting = true,
  this.alternativesSchema = RouteAlternativesSchema.defaultSchema,
  this.avoidBikingHillFactor = 0.5,
  this.avoidCarpoolLanes = false,
  this.avoidFerries = false,
  this.avoidMotorways = false,
  this.avoidTollRoads = false,
  this.avoidTraffic = TrafficAvoidance.none,
  this.avoidTurnAroundInstruction = false,
  this.avoidUnpavedRoads = false,
  this.bikeProfile,
  this.buildConnections = false,
  this.buildTerrainProfile = const BuildTerrainProfile(),
  this.carProfile,
  this.departureHeading = const DepartureHeading(),
  this.emergencyVehicleExtraFreedomLevels = 0,
  this.emergencyVehicleMode = false,
  this.evProfile,
  this.ignoreRestrictionsOverTrack = false,
  this.maximumDistanceConstraint = true,
  this.maximumTransferTimeInMinutes = 300,
  this.maximumWalkDistance = 5000,
  this.minimumTransferTimeInMinutes = 1,
  this.pathAlgorithm = RoutePathAlgorithm.ml,
  this.pathAlgorithmFlavor = RoutePathAlgorithmFlavor.magicLane,
  this.pedestrianProfile = PedestrianProfile.walk,
  this.resultDetails = RouteResultDetails.full,
  this.routeGroupIdsEarlierLater = const <int>[],
  this.routeRanges = const <int>[],
  this.routeRangesQuality = 100,
  this.routeResultType = RouteResultType.path,
  this.routeType = RouteType.fastest,
  this.routeTypePreferences = const <RouteTypePreferences>{
    RouteTypePreferences.none,
  },
  this.sortingStrategy = PTSortingStrategy.bestTime,
  this.timestamp,
  this.transportMode = RouteTransportMode.car,
  this.truckProfile,
  this.useBikes = false,
  this.useWheelchair = false,
});