SegmentDataLoaderOptions
public struct SegmentDataLoaderOptions : Hashable
Specifies which data should be loaded by the SegmentDataLoader.loadData(...) or SegmentDataLoader.loadDirectedSegmentData(...) function.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
If it is true, the
SegmentSpanData.travelDirectionwill be loaded whenSegmentDataLoader.loadData(...)orSegmentDataLoader.loadDirectedSegmentData(...)is called.Declaration
Swift
public var loadTravelDirection: Bool -
If it is true, the
SegmentSpanData.functionalRoadClasswill be loaded whenSegmentDataLoader.loadData(...)orSegmentDataLoader.loadDirectedSegmentData(...)is called.Declaration
Swift
public var loadFunctionalRoadClass: Bool -
If it is true,
SegmentSpanData.allowedTransportModeswill be loaded whenSegmentDataLoader.loadData(...)orSegmentDataLoader.loadDirectedSegmentData(...)is called.Declaration
Swift
public var loadTransportModesAccess: Bool -
If it is true,
SegmentSpanData.positiveDirectionSpeedLimit,SegmentSpanData.negativeDirectionSpeedLimitandSegmentSpanData.speedLimitwill be loaded whenSegmentDataLoader.loadData(...)orSegmentDataLoader.loadDirectedSegmentData(...)is called.Declaration
Swift
public var loadSpeedLimits: Bool -
If it is true,
SegmentSpanData.positiveDirectionBaseSpeedInMetersPerSecond,SegmentSpanData.negativeDirectionBaseSpeedInMetersPerSecondandSegmentSpanData.baseSpeedInMetersPerSecondwill be loaded whenSegmentDataLoader.loadData(...)orSegmentDataLoader.loadDirectedSegmentData(...)is called.Declaration
Swift
public var loadBaseSpeeds: Bool -
If it is true,
SegmentSpanData.localRoadCharacteristicswill be loaded whenSegmentDataLoader.loadData(...)orSegmentDataLoader.loadDirectedSegmentData(...)is called.Declaration
Swift
public var loadLocalRoadCharacteristics: Bool -
If it is true,
SegmentSpanData.streetNamesandSegmentSpanData.roadNumbersand will be loaded whenSegmentDataLoader.loadData(...)orSegmentDataLoader.loadDirectedSegmentData(...)is called.Declaration
Swift
public var loadStreetNamesAndRoadNumbers: Bool -
If it is true,
SegmentSpanData.physicalAttributesandSegmentSpanData.roadUsageswill be loaded whenSegmentDataLoader.loadData(...)orSegmentDataLoader.loadDirectedSegmentData(...)is called.Declaration
Swift
public var loadRoadAttributes: Bool -
If it is true,
SegmentData.trafficSignalswill be loaded whenSegmentDataLoader.loadData(...)orSegmentDataLoader.loadDirectedSegmentData(...)is called. Defaults tofalse.Declaration
Swift
public var loadTrafficSignals: Bool -
If it is true,
SegmentData.roadSignswill be loaded whenSegmentDataLoader.loadData(...)orSegmentDataLoader.loadDirectedSegmentData(...)is called. Defaults tofalse.Declaration
Swift
public var loadRoadSigns: Bool -
If it is true,
SegmentSpanData.administrativeRuleswill be loaded whenSegmentDataLoader.loadData(...)orSegmentDataLoader.loadDirectedSegmentData(...)is called. Defaults tofalse.Declaration
Swift
public var loadAdministrativeRules: Bool -
If it is true,
SegmentData.railwayCrossingswill be loaded whenSegmentDataLoader.loadData(...)orSegmentDataLoader.loadDirectedSegmentData(...)is called. Defaults tofalse.Declaration
Swift
public var loadRailwayCrossings: Bool -
If it is true,
SegmentSpanData.isUrbanwill be loaded whenSegmentDataLoader.loadData(...)is called. Defaults tofalse.Declaration
Swift
public var loadUrban: Bool -
If it is true,
SegmentSpanData.specialSpeedSituationswill be loaded whenSegmentDataLoader.loadData(...)is called. Note: To get timezone offset and daylight saving time values for TimeRule, [sdk.mapdata.SegmentDataLoaderOptions.load_administrative_rules] must also be set totrue. Defaults tofalse.Declaration
Swift
public var loadSpecialSpeedSituations: Bool -
If it is true,
SegmentData.tollPointswill be loaded whenSegmentDataLoader.loadDirectedSegmentData(...)is called. Defaults tofalse.Declaration
Swift
public var loadTollPoints: Bool -
init(loadTravelDirection:loadFunctionalRoadClass: loadTransportModesAccess: loadSpeedLimits: loadBaseSpeeds: loadLocalRoadCharacteristics: loadStreetNamesAndRoadNumbers: loadRoadAttributes: loadTrafficSignals: loadRoadSigns: loadAdministrativeRules: loadRailwayCrossings: loadUrban: loadSpecialSpeedSituations: loadTollPoints: ) Creates a new instance.
Declaration
Swift
public init(loadTravelDirection: Bool = false, loadFunctionalRoadClass: Bool = false, loadTransportModesAccess: Bool = false, loadSpeedLimits: Bool = false, loadBaseSpeeds: Bool = false, loadLocalRoadCharacteristics: Bool = false, loadStreetNamesAndRoadNumbers: Bool = false, loadRoadAttributes: Bool = false, loadTrafficSignals: Bool = false, loadRoadSigns: Bool = false, loadAdministrativeRules: Bool = false, loadRailwayCrossings: Bool = false, loadUrban: Bool = false, loadSpecialSpeedSituations: Bool = false, loadTollPoints: Bool = false)