RoadName

public struct RoadName : Equatable

Road information, like Route number, street name, shield information, etc.

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.
  • The name of the road.

    If you display a name to the user, you may need to abbreviate common words like “East” or “Boulevard” to ensure that it fits in the allotted space.

    Declaration

    Swift

    public let text: String
  • 2 letters language code or “Unspecified” or empty string

    Declaration

    Swift

    public let language: String
  • Shield information of the road

    Declaration

    Swift

    public let shield: RoadShield?
  • Creates a new RoadName instance.

    Declaration

    Swift

    public init(text: String, language: String, shield: RoadShield? = nil)

    Parameters

    text

    The name of the road.

    language

    2 letters language code or “Unspecified” or empty string

    shield

    Shield information of the road