GraphAccessor

class GraphAccessor

MapboxNavigation.graphAccessor provides methods to get edge (e.g. EHorizonEdge) shape and metadata.

NOTE: The Mapbox Electronic Horizon feature of the Mapbox Navigation SDK is in public beta and is subject to changes, including its pricing. Use of the feature is subject to the beta product restrictions in the Mapbox Terms of Service. Mapbox reserves the right to eliminate any free tier or free evaluation offers at any time and require customers to place an order to purchase the Mapbox Electronic Horizon feature, regardless of the level of use of the feature.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getEdgeMetadata
Link copied to clipboard
fun getEdgeMetadata(edgeId: Long): EHorizonEdgeMetadata?
Returns Graph Edge meta-information for the given GraphId of the edge.
getEdgeShape
Link copied to clipboard
fun getEdgeShape(edgeId: Long): List<Point>?
Returns Graph Edge geometry for the given GraphId of the edge.
getGraphPositionCoordinate
Link copied to clipboard
fun getGraphPositionCoordinate(graphPosition: EHorizonGraphPosition): Point?
Returns geographical coordinate of given position on graph If position's edge is not accessible, returns null.
getPathShape
Link copied to clipboard
fun getPathShape(graphPath: EHorizonGraphPath): List<Point>?
Returns geometry of given path on graph.
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String