2024week25 release
This release brings the Automotive-specific features listed below from Experimental to Preview. This feature set offers capabilities that allow Automotive OEMs to build their own Maps-like navigation experience with access to some cutting-edge capabilities that aren't yet available in Maps itself.
Deprecated fields. The following fields are either deprecated or are not currently used by Routes, and as such are staying in Experimental:
VehicleInfo.totalAxleCount
(not ready for Preview)VehicleInfo.trailerInfo
(not ready for Preview)ExtraComputation.PREDICTED_SPEED_ON_POLYLINE_20KPH_BUCKETS
(deprecated in favor ofExtraComputation.PREDICTED_SPEED_ON_POLYLINE_10KPH_BUCKETS
)ComputeRoutes.routeToken
(deprecated in favor ofrouteTokenOptions
)
Avoid using these fields in your production code to avoid future breaking changes.
RouteTokenOptions
for directions across requests. You can specify a route token by specifyingRouteTokenOptions
to get consistent directions across requests, similar to the way trip updates occur in Google Maps navigation. Look forRouteTokenUpdateFidelity
in the response to understand how the generated route relates to the provided token.VehicleInfo
to get clearance. When attached to a trailer and using theDRIVE
travel mode, you can specify the overall dimensions of your vehicle usingVehicleInfo
to get routes with sufficient clearance. The response will contain information on road height restrictions when the restriction is close to the vehicle's height or prevents the vehicle's passage inPolylineDetails.restrictionInfo
. If a route without clearance doesn't exist, no routes will be returned.Tunnel
RouteModifiers
. You can choose to avoid tunnels where possible withRouteModifiers.avoidTunnels
. The response will contain information on tunnels we couldn't avoid inPolylineDetails.tunnelInfo
.Vignette
RouteModifiers
. You can choose to avoid vignette roads in specific countries, based on the passes the end user has paid for. To use this feature, specifyRouteModifiers.avoidVignettes
. The response will contain information on vignette roads we couldn't avoid inPolylineDetails.vignetteInfo
andRouteTravelAdvisory.vignetteInfo
.Vignette
RouteModifers
. You can choose to avoid vignette roads in specific countries, based on the passes the end user has paid for. To use this feature, specifyRouteModifiers.avoidVignettes
. The response will contain information on vignette roads we couldn't avoid inPolylineDetails.vignetteInfo
andRouteTravelAdvisory.vignetteInfo
.HOV roads
RouteModifiers
. You can choose to allow routing on HOV roads usingRouteModifiers.hovPreference
. Routes will use HOV lanes where possible, and the response will provide info on HOV segments along the route inPolylineDetails.hovInfo
.Finer-grained travel speed estimates. You can receive fine-grained travel speed estimates and incidents along the route by including
PolylineDetails.predictedSpeeds
andPolylineDetails.incidentInfo
in your field mask and settingExtraComputation.PREDICTED_SPEED_ON_POLYLINE_10KPH_BUCKETS
.Place ID information on polyline. You can request information on the
placeId
values that make up the route, for referencing against other Google APIs. To receive this information, includePolylineDetails.segmentInfo
in your field mask.Altitude along route. You can request information on the altitude along the route. To receive this information, include
PolylineDetails.altitudeInfo
in your field mask.Ferries/Highways/Tolls
RouteModifiers
information. When using the pre-existing options to avoid ferries/highways/tolls, you can request information on the ferries, highways, and tolls that couldn't be avoided along the returned routes. To receive this information, includePolylineDetails.ferryInfo
,PolylineDetails.highwayInfo
, andPolylineDetails.tollInfo
in your field mask.Specify session ID. You can specify
ComputeRoutes.navigationSessionId
in your requests.
Documentation updates
- In Generate client libraries with Bazel (Automotive) the Git method for merging repositories was removed in favor of the copy method. Additionally, an error with one of the copy directories was corrected in the commands.
2023week50 Release
Get dynamic traffic data for paths using annotatePaths
You can get dynamic traffic data for paths that you request using the
annotatePaths
method. By specifying the routes and traffic attributes
you want to include, annotatePaths
returns the input paths enriched with
predicted levels of service. The paths are segmented into smaller sections to
provide granular data for each segment. This traffic information can help
optimize routing, enhance safety, and more. To learn more, see the following:
- Use
annotatePaths
to get path annotations annotatePaths
(REST reference)
To authorize your requests to the annotatePaths
, you must use the OAuth
method described here: Use OAuth (Automotive).