MatchableGeometry

data class MatchableGeometry(roadObjectId: String, coordinates: List<Point>)

The record represents the raw data which could be matched to the road graph. Might be used to match:

  • gantries, with exactly two coordinates

  • lines, with two or more coordinates

  • polygons, with three or more coordinates

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.

Parameters

roadObjectId

unique id of the object

coordinates

list of points representing the geometry

Constructors

MatchableGeometry
Link copied to clipboard
fun MatchableGeometry(roadObjectId: String, coordinates: List<Point>)
unique id of the object

Functions

component1
Link copied to clipboard
operator fun component1(): String
component2
Link copied to clipboard
operator fun component2(): List<Point>
copy
Link copied to clipboard
fun copy(roadObjectId: String, coordinates: List<Point>): MatchableGeometry
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

coordinates
Link copied to clipboard
val coordinates: List<Point>
list of points representing the geometry
roadObjectId
Link copied to clipboard
val roadObjectId: String
unique id of the object