SegmentSpanData
public class SegmentSpanData
extension SegmentSpanData: NativeBase
extension SegmentSpanData: Hashable
Contains attributes that are not necessarily constant on a full segment. A Span is a portion of a Segment where the requested attributes are constant.
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.
-
Start offset. The offset in meters from the beginning of the segment to the start of the span in positive direction or from the end of the segment to the start of the span in negative direction.
Declaration
Swift
public var startOffsetInMeters: Int32 { get } -
The length of this span in meters.
Declaration
Swift
public var spanLengthInMeters: Int32 { get } -
The
TravelDirectionobject representing the allowed travel directions. Gets theTravelDirectionobject for the portion of the segment. ReturnsnilifSegmentDataLoaderOptions.loadTravelDirectionis set tofalse.Declaration
Swift
public var travelDirection: TravelDirection? { get } -
The
AllowedTransportModesobject representing the allowed transport modes. ReturnsnilifSegmentDataLoaderOptions.loadTransportModesAccessis set tofalse.Declaration
Swift
public var allowedTransportModes: AllowedTransportModes? { get } -
The
FunctionalRoadClassobject representing the polyline of this segment. ReturnsnilifSegmentDataLoaderOptions.loadFunctionalRoadClassis set tofalse.Declaration
Swift
public var functionalRoadClass: FunctionalRoadClass? { get } -
The
SegmentSpeedLimitobject representing the speed limit of this segment span in the positive tavel direction. ReturnsnilifSegmentDataLoaderOptions.loadSpeedLimitsis set tofalse.Declaration
Swift
public var positiveDirectionSpeedLimit: SegmentSpeedLimit? { get } -
The
SegmentSpeedLimitobject representing the speed limit of this segment span in the negative travel direction. ReturnsnilifSegmentDataLoaderOptions.loadSpeedLimitsis set tofalse.Declaration
Swift
public var negativeDirectionSpeedLimit: SegmentSpeedLimit? { get } -
The
SegmentSpeedLimitobject representing the speed limit of this segment span. Will be loaded ifSegmentDataLoaderOptions.loadSpeedLimitsistrue.Declaration
Swift
public var speedLimit: SegmentSpeedLimit? { get } -
The average speed expected for this segment in positive direction with a car or a similar vehicle. Returns
nilifSegmentDataLoaderOptions.loadBaseSpeedsis set tofalse.Declaration
Swift
public var positiveDirectionBaseSpeedInMetersPerSecond: Double? { get } -
The average speed expected for this segment in negative direction with a car or a similar vehicle. Returns
nilifSegmentDataLoaderOptions.loadBaseSpeedsis set tofalse.Declaration
Swift
public var negativeDirectionBaseSpeedInMetersPerSecond: Double? { get } -
The average speed expected for this segment span with a car or a similar vehicle. Will be loaded if
SegmentDataLoaderOptions.loadBaseSpeedsistrue.Declaration
Swift
public var baseSpeedInMetersPerSecond: Double? { get } -
The local road characteristics of the segment: frontage, parking lot road, or POI access road. Returns
nilifSegmentDataLoaderOptions.loadLocalRoadCharacteristicsis set tofalse.Declaration
Swift
public var localRoadCharacteristics: [LocalRoadCharacteristic]? { get } -
The street names on the span. Returns
nilifSegmentDataLoaderOptions.loadStreetNamesAndRoadNumbersis set tofalse.Declaration
Swift
public var streetNames: LocalizedTexts? { get } -
The road numbers on the span enriched with information specific to route numbers of a road such as I-10, US-50, or A3. Returns
nilifSegmentDataLoaderOptions.loadStreetNamesAndRoadNumbersis set tofalse.Declaration
Swift
public var roadNumbers: LocalizedRoadNumbers? { get } -
The physical attributes of the segment. Returns
nilifSegmentDataLoaderOptions.loadRoadAttributesis set tofalse.Declaration
Swift
public var physicalAttributes: PhysicalAttributes? { get } -
The road usages of the segment. Returns
nilifSegmentDataLoaderOptions.loadRoadAttributesis set tofalse.Declaration
Swift
public var roadUsages: RoadUsages? { get } -
The
AdministrativeRulesfor the segment, containing information about country code, state code, unit system, tolls, pre-trip planning and other administrative information. ReturnsnilifSegmentDataLoaderOptions.loadAdministrativeRulesis set tofalse.Declaration
Swift
public var administrativeRules: AdministrativeRules? { get } -
The urban attribute of the segment. Returns
nilifSegmentDataLoaderOptions.loadUrbanis set tofalse.Declaration
Swift
public var isUrban: Bool? { get } -
The special speed situations of the segment. Will be loaded if
SegmentDataLoaderOptions.loadSpecialSpeedSituationsistrue. Note: To get timezone offset and daylight saving time values for TimeRule, [sdk.mapdata.SegmentDataLoaderOptions.load_administrative_rules] must also be set totrue.Declaration
Swift
public var specialSpeedSituations: [SegmentSpecialSpeedSituation]? { get }