Mapbox Directions for Swift Docs Directions.swift Reference (2.14.0)

View on GitHub

Install in Dash

Mapbox Directions for Swift Reference MatrixResponse Structure Reference
  • Guides
    • Navigation SDK
  • Getting Directions
    • Directions
    • RouteOptions
    • Waypoint
  • Map Matching
    • MatchOptions
    • Tracepoint
    • Match
  • Results
    • Route
    • – RefreshParameters
    • RouteLeg
    • – CodingKeys
    • – Closure
    • – Attributes
    • RouteStep
  • Other Classes
    • DirectionsOptions
    • DirectionsResult
    • IsochroneOptions
    • – ContourFormat
    • – Contours
    • Isochrones
    • Matrix
    • MatrixOptions
    • SpokenInstruction
    • VisualInstruction
    • – Component
    • VisualInstructionBanner
  • Other Global Variables
    • MBDirectionsErrorDomain
  • Other Enumerations
    • CongestionLevel
    • CustomOptionComparisonPolicy
    • DirectionsCodingError
    • DirectionsError
    • DrivingSide
    • GeometryError
    • IsochroneError
    • ManeuverDirection
    • ManeuverType
    • MapboxStreetsRoadClass
    • MatrixError
    • MeasurementSystem
    • ResponseOptions
    • RouteShapeFormat
    • RouteShapeResolution
    • SignStandard
    • TransportType
    • Weight
  • Other Extensions
    • Array
    • BoundingBox
    • CodingUserInfoKey
    • Lane
    • PolyLineString
    • Road
    • SpeedLimitDescriptor
  • Other Protocols
    • CustomValueOptionSet
    • ForeignMemberContainerClass
    • OfflineDirectionsProtocol
    • RouteLegRefreshSource
    • RouteRefreshSource
  • Other Structures
    • AdministrativeRegion
    • AttributeOptions
    • BlockedLanes
    • Credentials
    • DirectionsPriority
    • GuidanceViewImageRepresentation
    • Incident
    • – Kind
    • – TrafficCodes
    • – Impact
    • Interchange
    • Intersection
    • Junction
    • LaneIndication
    • MapMatchingResponse
    • MatrixResponse
    • ProfileIdentifier
    • RefreshedRoute
    • RefreshedRouteLeg
    • RestStop
    • – StopType
    • RoadClassExclusionViolation
    • RoadClasses
    • RouteRefreshResponse
    • RouteResponse
    • SilentWaypoint
    • – CodingKeys
    • TollCollection
    • – CollectionType
  • Other Type Aliases
    • LocationAccuracy
    • LocationSpeed
    • NumericCongestionLevel
    • OfflineDownloaderCompletionHandler
    • OfflineDownloaderProgressHandler
    • OfflineVersion
    • OfflineVersionsHandler
    • Scale

MatrixResponse

  • DistanceMatrix
  • DurationMatrix
  • httpResponse
  • destinations
  • sources
  • distances

    Array of arrays that represent the distances matrix in row-major order.

    distances[i][j] gives the route distance from the i‘th source to the j'th destination. The distance between the same coordinate is always 0. Distance from i to j is not always the same as from j to i. If a route cannot be found, the result is null.

    Seealso

    distance(from:to:)
  • travelTimes

    Array of arrays that represent the travel times matrix in row-major order.

    travelTimes[i][j] gives the travel time from the i‘th source to the j'th destination. The duration between the same coordinate is always 0. Travel time from i to j is not always the same as from j to i. If a duration cannot be found, the result is null.

    Seealso

    travelTime(from:to:)
  • distance(from:to:)

    Returns route distance between specified source and destination.

  • travelTime(from:to:)

    Returns expected travel time between specified source and destination.

  • init(httpResponse:distances:travelTimes:destinations:sources:)
  • init(from:)
  • encode(to:)

© 2014–2024 Mapbox. See license for more details.

Generated by jazzy ♪♫ v0.14.2, a Realm project.