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

Implementation

RoutePreferences({
  this.accurateTrackMatch = true,
  this.algorithmType = PTAlgorithmType.departure,
  this.allowOnlineCalculation = true,
  this.alternativeRoutesBalancedSorting = true,
  this.alternativesSchema = RouteAlternativesSchema.defaultSchema,
  this.automaticTimestamp = true,
  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,
});