Route Request
@Serializable
Payload for the directions v2/directions/{profile} endpoint.
All parameters map to the official ORS API; nullable properties are omitted from the serialized JSON when not provided.
Constructors
Link copied to clipboard
constructor(coordinates: List<List<Double>>, radiuses: List<Double>? = null, bearings: List<List<Double>>? = null, elevation: Boolean? = null, extraInfo: List<String>? = null, instructions: Boolean? = null, instructionsFormat: String? = null, language: String? = null, preference: String? = null, units: String? = null, geometry: Boolean? = null, geometrySimplify: Boolean? = null, roundaboutExits: Boolean? = null, attributes: List<String>? = null, maneuvers: Boolean? = null, continueStraight: Boolean? = null, options: RouteOptions? = null)
Properties
Link copied to clipboard
Additional attributes to include for each segment.
Link copied to clipboard
Force continue straight at waypoints?
Link copied to clipboard
List of [lon, lat] coordinate pairs in order of travel.
Link copied to clipboard
Simplify the returned geometry.
Link copied to clipboard
Whether to return turn-by-turn instructions.
Link copied to clipboard
Format of instructions such as html or text.
Link copied to clipboard
Optional advanced options.
Link copied to clipboard
Routing preference such as fastest or shortest.
Link copied to clipboard
Return exit indices for roundabouts.