Directions Response
@Serializable
This is the root Mapbox Directions API response. Inside this class are several nested classes chained together to make up a similar structure to the original APIs JSON response.
Since
1.0.0
See also
Constructors
Link copied to clipboard
constructor(code: String, routes: List<DirectionsRoute>, message: String? = null, waypoints: List<DirectionsWaypoint>? = null, uuid: String? = null)
Types
Properties
Link copied to clipboard
List containing all the different route options. It's ordered by descending recommendation rank. In other words, object 0 in the List is the highest recommended route. if you don't setAlternatives to true (default is false) in your builder this should always be a List of size 1. At most this will return 2 DirectionsRoute objects.
Link copied to clipboard
List of DirectionsWaypoint objects. Each waypoint is an input coordinate snapped to the road and path network. The waypoint appear in the list in the order of the input coordinates.