Other Classes
The following classes are available globally.
-
Options for calculating results from the Mapbox Directions service.
You do not create instances of this class directly. Instead, create instances of
See moreMatchOptionsorRouteOptions.Declaration
Swift
open class DirectionsOptions : Codableextension DirectionsOptions: Equatable -
A
DirectionsResultrepresents a result returned from either the Mapbox Directions service.You do not create instances of this class directly. Instead, you receive
See moreRouteorMatchobjects when you request directions using theDirections.calculate(_:completionHandler:)orDirections.calculateRoutes(matching:completionHandler:)method.Declaration
Swift
open class DirectionsResult : Codable, ForeignMemberContainerClassextension DirectionsResult: CustomStringConvertible -
Options for calculating contours from the Mapbox Isochrone service.
See moreDeclaration
Swift
public class IsochroneOptions -
Computes areas that are reachable within a specified amount of time or distance from a location, and returns the reachable regions as contours of polygons or lines that you can display on a map.
See moreDeclaration
Swift
open class Isochrones -
Computes distances and durations between origin-destination pairs, and returns the resulting distances in meters and durations in seconds.
See moreDeclaration
Swift
open class Matrix -
Options for calculating matrices from the Mapbox Matrix service.
See moreDeclaration
Swift
public class MatrixOptions : Codableextension MatrixOptions: Equatable -
An instruction about an upcoming
RouteStep’s maneuver, optimized for speech synthesis.The instruction is provided in two formats: plain text and text marked up according to the Speech Synthesis Markup Language (SSML). Use a speech synthesizer such as
AVSpeechSynthesizeror Amazon Polly to read aloud the instruction.The
See moredistanceAlongStepproperty is measured from the beginning of the step associated with this object. By contrast, thetextandssmlTextproperties refer to the details in the following step. It is also possible for the instruction to refer to two following steps simultaneously when needed for safe navigation.Declaration
Swift
open class SpokenInstruction : Codable, ForeignMemberContainerClassextension SpokenInstruction: Equatable -
The contents of a banner that should be displayed as added visual guidance for a route. The banner instructions are children of the steps during which they should be displayed, but they refer to the maneuver in the following step.
See moreDeclaration
Swift
open class VisualInstruction : Codable, ForeignMemberContainerClassextension VisualInstruction: Equatable -
A visual instruction banner contains all the information necessary for creating a visual cue about a given
See moreRouteStep.Declaration
Swift
open class VisualInstructionBanner : Codable, ForeignMemberContainerClassextension VisualInstructionBanner: Equatable
Install in Dash
Other Classes Reference