RoadSurface

Surface type of the road. Check for details: https://wiki.openstreetmap.org/wiki/Key:surface

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.

Types

Link copied to clipboard
annotation class Type

Retention policy for the RoadSurface

Properties

Link copied to clipboard
const val COMPACTED: String

A stable surface, it's a mixture of larger (e.g., gravel) and smaller (e.g., sand) parts, compacted (e.g., with a roller).

Link copied to clipboard
const val DIRT: String

No special surface, the ground itself has marks of human or animal usage. It is prone to erosion and therefore often uneven.

Link copied to clipboard
const val GRAVEL: String

Used for cases ranging from huge gravel pieces like track ballast used as surface, through small pieces of gravel to compacted surface.

Link copied to clipboard
const val IMPASSABLE: String

Road with such surface type can't be used for any routing.

Link copied to clipboard
const val PATH: String

Grass or stepping stones surface. Used for pedestrian and bicycle routing only.

Link copied to clipboard
const val PAVED: String

A type that is predominantly paved, it is covered with paving stones, concrete or bitumen.

Link copied to clipboard
const val PAVED_ROUGH: String

Heavily damaged paved roads that need maintenance: many potholes, some of them quite deep.

Link copied to clipboard
const val PAVED_SMOOTH: String

Paved smooth surface. The vehicle can traverse the route without significant risk of damage (e.g., to vehicle undercarriage/drivetrain) or injury (e.g., by falling).