AI-generated Key Takeaways
-
The Routes API offers route matrix calculations for various vehicle types, defaulting to driving if unspecified.
-
Supported vehicle types include driving, two-wheeled vehicles, transit, and walking, with bicycling excluded for route matrixes.
-
Two-wheeled, walking, and bicycling routes are in beta and require a user-displayed warning due to potential path inaccuracies.
-
Transit route matrixes leverage available public transportation like buses, subways, and trains within the specified region.
You can get a route matrix for different types of vehicles. If you don't specify a vehicle type, the Routes API uses the default of DRIVE.
Vehicle type | Description |
---|---|
Travel mode | Set the mode of travel. You can choose driving, two-wheeled vehicles, transit, or walking. Bicycling is not supported for route matrixes. |
Two-wheeled vehicle | You specify a route matrix for a two-wheeled motorized vehicle the
same way you specify it for a route, using the Travel_mode
parameter. |
Transit | Get a transit route matrix that uses the public transportation options available in the region. Transit options may include buses, subways, and trains, among others. |