You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// (optional) Specifies the assumptions to use when calculating time in traffic.
72
+
/// This setting affects the value returned in the duration_in_traffic field in the response, which contains the predicted time in traffic based on historical averages.
73
+
/// The traffic_model parameter may only be specified for requests where the travel mode is driving, and where the request includes a departure_time, and only if the request includes an API key or a Google Maps Platform Premium Plan client ID
/// (optional) Specifies preferences for transit requests. Using this parameter, you can bias the options returned, rather than accepting the default best route chosen by the API.
86
+
/// This parameter may only be specified for requests where the mode is transit.
/// Specifies the assumptions to use when calculating time in traffic.
7
+
/// This setting affects the value returned in the duration_in_traffic field in the response, which contains the predicted time in traffic based on historical averages.
8
+
/// The traffic_model parameter may only be specified for requests where the travel mode is driving, and where the request includes a departure_time, and only if the request includes an API key or a Google Maps Platform Premium Plan client ID.
/// Specifies the assumptions to use when calculating time in traffic.
7
+
/// This setting affects the value returned in the duration_in_traffic field in the response, which contains the predicted time in traffic based on historical averages.
8
+
/// The traffic_model parameter may only be specified for requests where the travel mode is driving, and where the request includes a departure_time, and only if the request includes an API key or a Google Maps Platform Premium Plan client ID.
9
+
/// </summary>
10
+
[Flags]
11
+
publicenumTransitModes
12
+
{
13
+
/// <summary>
14
+
/// indicates that the calculated route should prefer travel by bus.
15
+
/// </summary>
16
+
bus=0,
17
+
/// <summary>
18
+
/// indicates that the calculated route should prefer travel by subway.
19
+
/// </summary>
20
+
subway=1,
21
+
/// <summary>
22
+
/// indicates that the calculated route should prefer travel by train.
23
+
/// </summary>
24
+
train=2,
25
+
/// <summary>
26
+
/// indicates that the calculated route should prefer travel by tram and light rail.
27
+
/// </summary>
28
+
tram=3,
29
+
/// <summary>
30
+
/// indicates that the calculated route should prefer travel by train, tram, light rail, and subway. This is equivalent to transit_mode = train | tram | subway.
/// Specifies the assumptions to use when calculating time in traffic.
7
+
/// This setting affects the value returned in the duration_in_traffic field in the response, which contains the predicted time in traffic based on historical averages.
8
+
/// The traffic_model parameter may only be specified for requests where the travel mode is driving, and where the request includes a departure_time, and only if the request includes an API key or a Google Maps Platform Premium Plan client ID.
9
+
/// </summary>
10
+
[Flags]
11
+
publicenumTransitRoutingPreferences
12
+
{
13
+
/// <summary>
14
+
/// indicates that the calculated route should prefer limited amounts of walking.
15
+
/// </summary>
16
+
less_walking=0,
17
+
/// <summary>
18
+
/// indicates that the calculated route should prefer a limited number of transfers.
0 commit comments