For details, see the Google Developers Site Policies. Migrate your existing apps to use these new features.Įxcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. Routes API migration guide for information on how to Migrate them to use the new Compute Routes andĬompute Route Matrix features of the Routes API. You can request distance data for different travel modes and estimate travelįor more information, see Compute a route matrix. Use Compute Route Matrix toĬalculate the duration and distance for each origin/destination pair in the Compute Route MatrixĬompute Route Matrix provides travel distance and time for a Such as distance, number of turns and many more when deciding which route is theįor more information, see Compute a route. Travel time is the primary factor optimized, butĬompute Routes may also take into account other factors Latitude/longitude coordinates for locations where Place IDs are notĬompute Routes returns the most efficient routes whenĬalculating directions. Specify origins, destinations, and waypoints as place IDs or as.Return multipart directions using a series of waypoints.Search for directions for several modes of transportation, includingĭriving, two-wheel vehicles, walking, or cycling.The route can contain a single source andĭestination, intermediate stops, and route modifiers for more accurate ETAs. Use Compute Routes to calculate directionsīetween a source and a destination. Increased the limit of elements (number of origins × number of destinations) Streaming elements of the response before the entire matrix has been Requesting toll information in the response, along Smart waypoints to specify pass through vs terminal locations Information for waypoints to increase ETA accuracy. Letting you make quality vs latency trade off decisions. Setting fine-grained options for traffic calculation, Unnecessary data, which helps to avoid unnecessary processing time and Field masking ensures that you do not request Two-wheel travel mode differs from the bicycle travel mode,Ĭonfigure eco-friendly routes to estimate the most fuel orĮnergy-efficient route based on your vehicle's engine type.Ĭustomizing the response details by specifying aįield mask. Two-wheel motorized vehicle support (for example, New features and enhancements over the current The Routes API includes performance-optimized APIs that provide many New features and enhancements of the Routes API Try the demo to see the Routes API in action. Support additional new capabilities, such as two-wheel routing. If you are currently using theĬompute Route Matrix are performance-optimized Compute Route Matrix: Calculate distance and travel timeįor a list of origin/destination pairs.The Routes API contains two main feature areas:īetween locations with comprehensive, global routing data and real-time Quality of this information and the timely delivery of it are essential to a Origin and destination locations, and returns distances and travel times. Routing calculates the ideal path between two locations or for a matrix of
0 Comments
Leave a Reply. |