RoadGraph
public final class RoadGraph
RoadGraph
provides methods to get edge shape (e.g. ElectronicHorizon.Edge
) and metadata.
You do not create a RoadGraph
object manually. Instead, observe the Notification.Name.electronicHorizonDidUpdatePosition
notification to obtain edge identifiers and get more details about the edges using the RouteController.roadGraph
or PassiveLocationDataSource.roadGraph
property.
-
Returns metadata about the edge with the given edge identifier.
Declaration
Swift
public func edgeMetadata(edgeIdentifier: ElectronicHorizon.Edge.Identifier) -> ElectronicHorizon.Edge.Metadata?
Return Value
Metadata about the edge with the given edge identifier, or
nil
if the edge is inaccessible. -
Returns a line string geometry corresponding to the given edge identifier.
Declaration
Swift
public func edgeShape(edgeIdentifier: ElectronicHorizon.Edge.Identifier) -> LineString?
Return Value
A line string corresponding to the given edge identifier, or
nil
if the edge is inaccessible. -
A position along a linear object in the road graph.
See moreDeclaration
Swift
public struct Path
-
The position of a point object in the road graph.
See moreDeclaration
Swift
public struct Position