Namespace GoogleMapsApi.Entities.Routes.Request
Classes
- LatLng
Latitude/longitude pair in WGS84 (Google's
google.type.LatLng).
- RouteModifiers
Optional set of conditions that influence route generation — avoidances, vehicle info (for emissions-aware routing), and toll passes.
- RoutesRequest
Request for the Google Routes API (
POST https://routes.googleapis.com/directions/v2:computeRoutes). Modern replacement for the legacy Directions API: real-time traffic, eco-routing, toll calculation, two-wheeled vehicle support, and route alternatives.
- TransitPreferences
Transit-specific preferences. Used only when TravelMode is Transit.
- VehicleInfo
Vehicle attributes used for emissions-aware routing.
- Waypoint
Origin, destination, or intermediate stop on a route. Set exactly one of Location, PlaceId, or Address.
- WaypointLocation
Geographic location of a Waypoint.
Enums
- ExtraComputation
Optional extra computations the Routes API can perform alongside the route. Each entry incurs additional billing — request only what you need.
- PolylineEncoding
Wire format of the polyline returned for each route.
- PolylineQuality
Trade-off between polyline detail and response size.
- ReferenceRoute
Reference route to compute alongside the default one.
- RoutesTravelMode
Mode of transportation for a RoutesRequest. Note that Routes API adds TwoWheeler over the legacy Directions API.
- RoutingPreference
How the Routes API should factor live and historical traffic into route computation. Only applicable when TravelMode is Drive or TwoWheeler.
- TrafficModel
Traffic model used when RoutingPreference is TrafficAware or TrafficAwareOptimal.
- TransitRoutingPreference
Optimization preference for transit routing.
- TransitTravelMode
Transit travel modes.
- Units
Display units for distance values in the response.
- VehicleEmissionType
Vehicle emission/engine type.