MatchableGeometry

class MatchableGeometry(val roadObjectId: String, val 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

Link copied to clipboard
fun MatchableGeometry(roadObjectId: String, coordinates: List<Point>)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.

Properties

Link copied to clipboard
val coordinates: List<Point>
Link copied to clipboard
val roadObjectId: String