SegmentData
public class SegmentData
extension SegmentData: NativeBase
extension SegmentData: Hashable
Contains the requested information for a segment
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.
-
The
OCMSegmentIdobject representing the segmentDeclaration
Swift
public var ocmSegmentId: OCMSegmentId { get } -
The
SegmentReferenceobject representing the segmentDeclaration
Swift
public var segmentReference: SegmentReference { get } -
The
GeoPolylineobject representing the polyline of this segment.Declaration
Swift
public private(set) lazy var polyline: GeoPolyline { get set } -
The length of this segment in meters. This information is based on map data. It can differ from the length of
SegmentData.polylinedue to approximations of the polyline.Declaration
Swift
public var lengthInMeters: Int32 { get } -
The list of
SegmentSpanDataof the given segment for the requested attributes Note: If no span attributes is requested, the list will be empty.Declaration
Swift
public var spans: [SegmentSpanData] { get } -
The list of
TrafficSignalof the given segment. Returns an empty list if no data is found. ReturnsnilifSegmentDataLoaderOptions.loadTrafficSignalsis set tofalse. TheTrafficSignalLocationindicates the location of a single traffic signal, which can be any combination of left, right and overhead. TheTrafficSignal.offsetInMetersis the location along the segment, while the traffic signal location have details on how the traffic signal is display/deploy in that specific location in the segment.Declaration
Swift
public var trafficSignals: [TrafficSignal]? { get } -
The list of
RoadSignof the given segment. ReturnsnilifSegmentDataLoaderOptions.loadRoadSignsis set tofalse.Declaration
Swift
public var roadSigns: [RoadSign]? { get } -
The list of
RailwayCrossingof the given segment. Returns an empty list if no data is found. ReturnsnilifSegmentDataLoaderOptions.loadRailwayCrossingsis set tofalse.Declaration
Swift
public var railwayCrossings: [RailwayCrossing]? { get } -
The list of
TollPointof the given segment. Returns an empty list if no data is found. ReturnsnilifSegmentDataLoaderOptions.loadTollPointsis set tofalseor theSegmentDatais not initialized usingSegmentDataLoader.loadDirectedSegmentData(...).Declaration
Swift
public var tollPoints: [TollPoint]? { get }