Enum RoutesTravelMode
- Namespace
- GoogleMapsApi.Entities.Routes.Request
- Assembly
- GoogleMapsApi.dll
Mode of transportation for a RoutesRequest. Note that Routes API adds TwoWheeler over the legacy Directions API.
public enum RoutesTravelMode
Fields
[EnumMember(Value = "BICYCLE")] Bicycle = 2Travel by bicycle.
[EnumMember(Value = "DRIVE")] Drive = 1Travel by passenger car.
[EnumMember(Value = "TRANSIT")] Transit = 5Public transit travel; only available for selected regions.
[EnumMember(Value = "TWO_WHEELER")] TwoWheeler = 4Two-wheeled, motorized vehicle (e.g. motorcycle). Note this differs from Bicycle which is human-powered. Available only in a subset of regions.
[EnumMember(Value = "TRAVEL_MODE_UNSPECIFIED")] Unspecified = 0Travel mode unspecified. The API treats this as Drive.
[EnumMember(Value = "WALK")] Walk = 3Travel by walking.