Direction

public enum Direction : Codable

The Direction represents the direction of the road lane.

Important

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

Public

  • Creates an instance of Direction from a given string.

    Declaration

    Swift

    public static func direction(from string: String) -> Direction

    Parameters

    string

    String to create Direction from.

    Return Value

    Direction object.

  • Provides a description of the Direction.

    Declaration

    Swift

    public func description() -> String

    Return Value

    Description string.