Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsOpenRouteService.DirectionParams Class Reference

Parameters of the directions request. More...

Inheritance diagram for OnlineMapsOpenRouteService.DirectionParams:
OnlineMapsOpenRouteService.Params

Public Member Functions

 DirectionParams (string key, OnlineMapsVector2d[] coordinates)
 Constructor.
 

Public Attributes

Profile profile = Profile.drivingCar
 The route profile.
 
Preference? preference
 The route preference.
 
Units? units
 The distance unit.
 
string language
 Language for the route instructions.
 
bool? geometry
 Specifies whether to return geometry.
 
GeometryFormat? geometry_format
 Sets the format of the returned geometry.
 
bool? geometry_simplify
 Specifies whether to simplify the geometry. true will automatically be set to false if extra_info parameter is specified.
 
bool? instructions
 Specifies whether to return instructions.
 
InstructionsFormat? instructions_format
 Format of instructions. Select html for more verbose instructions.
 
bool? elevation
 Specifies whether to return elevation values for points.
 
string[] extra_info
 List of additional information.
 
string options
 For advanced options formatted as json object.
 
- Public Attributes inherited from OnlineMapsOpenRouteService.Params
string id
 Arbitrary identification string of the request reflected in the meta information.
 

Additional Inherited Members

- Protected Attributes inherited from OnlineMapsOpenRouteService.Params
string key
 Open Route Service API key.
 

Detailed Description

Parameters of the directions request.

Constructor & Destructor Documentation

◆ DirectionParams()

OnlineMapsOpenRouteService.DirectionParams.DirectionParams ( string key,
OnlineMapsVector2d[] coordinates )

Constructor.

Parameters
keyOpen Route Service API key
coordinatesList of coordinates visited in order.