RoutePreferences constructor
RoutePreferences({ - bool accurateTrackMatch = true,
- PTAlgorithmType algorithmType = PTAlgorithmType.departure,
- bool allowOnlineCalculation = true,
- bool alternativeRoutesBalancedSorting = true,
- RouteAlternativesSchema alternativesSchema = RouteAlternativesSchema.defaultSchema,
- bool automaticTimestamp = true,
- double avoidBikingHillFactor = 0.5,
- bool avoidCarpoolLanes = false,
- bool avoidFerries = false,
- bool avoidMotorways = false,
- bool avoidTollRoads = false,
- TrafficAvoidance avoidTraffic = TrafficAvoidance.none,
- bool avoidTurnAroundInstruction = false,
- bool avoidUnpavedRoads = false,
- BikeProfileElectricBikeProfile? bikeProfile,
- bool buildConnections = false,
- BuildTerrainProfile buildTerrainProfile = const BuildTerrainProfile(),
- CarProfile? carProfile,
- DepartureHeading departureHeading = const DepartureHeading(),
- bool emergencyVehicleMode = false,
- EVProfile? evProfile,
- bool ignoreRestrictionsOverTrack = false,
- bool maximumDistanceConstraint = true,
- int maximumTransferTimeInMinutes = 300,
- int maximumWalkDistance = 5000,
- int minimumTransferTimeInMinutes = 1,
- RoutePathAlgorithm pathAlgorithm = RoutePathAlgorithm.ml,
- RoutePathAlgorithmFlavor pathAlgorithmFlavor = RoutePathAlgorithmFlavor.magicLane,
- PedestrianProfile pedestrianProfile = PedestrianProfile.walk,
- RouteResultDetails resultDetails = RouteResultDetails.full,
- List<int> routeGroupIdsEarlierLater = const <int>[],
- List<int> routeRanges = const <int>[],
- int routeRangesQuality = 100,
- RouteResultType routeResultType = RouteResultType.path,
- RouteType routeType = RouteType.fastest,
- Set<RouteTypePreferences> routeTypePreferences = const <RouteTypePreferences>{RouteTypePreferences.none},
- PTSortingStrategy sortingStrategy = PTSortingStrategy.bestTime,
- DateTime? timestamp,
- RouteTransportMode transportMode = RouteTransportMode.car,
- TruckProfile? truckProfile,
- bool useBikes = false,
- 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,
});