Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsGoogleDirections.Params Class Reference

Request parameters. More...

Public Member Functions

 Params (object origin, object destination)
 Constructor.
 

Public Attributes

object origin
 The address (string), coordinates (Vector2, OnlineMapsVector2d), or place ID (string prefixed with place_id:) from which you wish to calculate directions.
 
object destination
 The address (string), coordinates (Vector2, OnlineMapsVector2d), or place ID (string prefixed with place_id:) to which you wish to calculate directions.
 
Modemode
 Specifies the mode of transport to use when calculating directions. Default: driving.
 
IEnumerable waypoints
 Specifies an IEnumerate of waypoints. Waypoints alter a route by routing it through the specified location(s).
The maximum number of waypoints is 8.
Each waypoint can be specified as a coordinates (Vector2, OnlineMapsVector2d), an encoded polyline (string prefixed with enc:), a place ID (string prefixed with place_id:), or an address which will be geocoded.
 
bool alternatives
 If set to true, specifies that the Directions service may provide more than one route alternative in the response.
Note that providing route alternatives may increase the response time from the server.
 
Avoidavoid
 Indicates that the calculated route(s) should avoid the indicated features.
 
Unitsunits
 Specifies the unit system to use when displaying results.
 
string region
 Specifies the region code, specified as a ccTLD ("top-level domain") two-character value.
 
long? arrival_time
 Specifies the desired time of arrival for transit directions, in seconds since midnight, January 1, 1970 UTC.
You can specify either departure_time or arrival_time, but not both.
 
string language
 Specifies the language in which to return results.
 
string key
 Your application's API key. This key identifies your application for purposes of quota management.
 
TrafficModeltraffic_model
 Specifies the assumptions to use when calculating time in traffic.
 
TransitModetransit_mode
 Specifies one or more preferred modes of transit. This parameter may only be specified for transit directions.
 
TransitRoutingPreferencetransit_routing_preference
 Specifies preferences for transit routes. Using this parameter, you can bias the options returned, rather than accepting the default best route chosen by the API.
This parameter may only be specified for transit directions.
 

Properties

object departure_time [get, set]
 Specifies the desired time of departure. You can specify the time as an integer in seconds since midnight, January 1, 1970 UTC.
Alternatively, you can specify a value of now, which sets the departure time to the current time.
 

Detailed Description

Request parameters.

Constructor & Destructor Documentation

◆ Params()

OnlineMapsGoogleDirections.Params.Params ( object origin,
object destination )

Constructor.

Parameters
originThe address (string), coordinates (Vector2, OnlineMapsVector2d), or place ID (string prefixed with place_id:) from which you wish to calculate directions.
destinationThe address (string), coordinates (Vector2, OnlineMapsVector2d), or place ID (string prefixed with place_id:) to which you wish to calculate directions.