The Matrix Routing API provides an operation called getRouteId, which takes a list of locations (such as stops on a journey) and a vehicle profile, and returns a route ID.
This route ID can then be used with the Routing API to fetch details results such as polyline, events and emissions.
Benefits
- Interoperability: Seamlessly integrate with the Routing API to obtain extended results using exactly the same route as it is calculated in a distance matrix.
- Efficiency: Quickly retrieve the routes corresponding to distance matrix relations.
For detailed information about how to retrieve additional results with the routeID and the Routing API consider the corresponding concept page of the Routing API.
Try it in the Get RouteId code sample.