-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from cbalokanmeme/master
Update DistanceMatrix request
- Loading branch information
Showing
6 changed files
with
151 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
|
||
namespace Google.Maps | ||
{ | ||
/// <summary> | ||
/// Specifies the assumptions to use when calculating time in traffic. | ||
/// 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. | ||
/// 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. | ||
/// </summary> | ||
[Flags] | ||
public enum TrafficModels | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
best_guess = 0, | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
pessimistic = 1, | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
optimistic = 2, | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
|
||
namespace Google.Maps | ||
{ | ||
/// <summary> | ||
/// Specifies the assumptions to use when calculating time in traffic. | ||
/// 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. | ||
/// 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. | ||
/// </summary> | ||
[Flags] | ||
public enum TransitModes | ||
{ | ||
/// <summary> | ||
/// indicates that the calculated route should prefer travel by bus. | ||
/// </summary> | ||
bus = 0, | ||
/// <summary> | ||
/// indicates that the calculated route should prefer travel by subway. | ||
/// </summary> | ||
subway = 1, | ||
/// <summary> | ||
/// indicates that the calculated route should prefer travel by train. | ||
/// </summary> | ||
train = 2, | ||
/// <summary> | ||
/// indicates that the calculated route should prefer travel by tram and light rail. | ||
/// </summary> | ||
tram = 3, | ||
/// <summary> | ||
/// indicates that the calculated route should prefer travel by train, tram, light rail, and subway. This is equivalent to transit_mode = train | tram | subway. | ||
/// </summary> | ||
rail = 4 | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
|
||
namespace Google.Maps | ||
{ | ||
/// <summary> | ||
/// Specifies the assumptions to use when calculating time in traffic. | ||
/// 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. | ||
/// 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. | ||
/// </summary> | ||
[Flags] | ||
public enum TransitRoutingPreferences | ||
{ | ||
/// <summary> | ||
/// indicates that the calculated route should prefer limited amounts of walking. | ||
/// </summary> | ||
less_walking = 0, | ||
/// <summary> | ||
/// indicates that the calculated route should prefer a limited number of transfers. | ||
/// </summary> | ||
fewer_transfers = 1, | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters