Road

public struct Road
extension Road: Equatable

Road information at a given point on a Route.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Creates the instance with the specified properties.

    Throws

    If all properties are empty, the error RoadInformationError.missingRoadInfo thrown.

    Declaration

    Swift

    public init(
        name: TextWithPhonetics?,
        numbers: [TextWithPhonetics],
        shields: [RoadShield],
        types: Set<RoadType> = []
    ) throws

    Parameters

    name

    The name of the road.

    numbers

    The road numbers.

    shields

    The road shields.

    types

    Indicates a road types.

Public

Road.InitializationError

  • An error that occurs during the creation of the instance.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public enum InitializationError : Error