![A Google maps that displays several routes and stops.](https://developers.google.com/static/maps/documentation/mobility/images/routeOptimizationOverview.png)

The [Route Optimization API](https://developers.google.com/maps/documentation/route-optimization) computes the optimal sequence of stops for one
or more vehicles based on configurable optimization objectives and constraints.
The Route Optimization API offers enterprise-level features to solve the problem
of finding the optimal order for drivers to complete their tasks. If you are a
Mobility Optimize and Accelerate customer, you have
[Route Optimization API, Single Vehicle Routing](https://developers.google.com/maps/documentation/route-optimization) included in your
[list of available services](https://developers.google.com/maps/documentation/transportation-logistics-terms/mobility/services).

All Mobility customers also have access to the following APIs that support basic
stop order optimization:

- [Routes API, Compute Routes](https://developers.google.com/maps/documentation/routes)
- [Routes Preferred API, Compute Routes](https://developers.google.com/maps/documentation/routes_preferred.md.txt)
- [Directions API (Legacy)](https://developers.google.com/maps/documentation/directions)

If you've developed your own route optimizer, you can use the
[Routes Preferred ComputeRouteMatrix](https://developers.google.com/maps/documentation/routes_preferred/compute_route_matrix.md.txt) or the
[Routes API ComputeRouteMatrix](https://developers.google.com/maps/documentation/routes/compute_route_matrix.md.txt) methods to estimate the distance and duration
of a route for multiple origins and destinations. `ComputeRouteMatrix` lets you
use the same traffic and routing algorithms used by other Google Maps Platform
products.

> [!NOTE]
> **Note:** Routes API is the next generation of the Directions API (Legacy) and the Distance Matrix API (Legacy).

The [Fleet Routing capability of the Route Optimization API](https://developers.google.com/maps/documentation/route-optimization) operates on
whole fleets of vehicles, solving both stop order optimization and assignment
simultaneously. Fleet Routing is not included in the [list of services](https://developers.google.com/maps/documentation/transportation-logistics-terms/mobility/services)
available to Mobility customers, but can be used on a charge-per-consumption
basis. For details, see the
[Route Optimization API Usage and Billing](https://developers.google.com/maps/documentation/route-optimization/usage-and-billing.md.txt)
guide.

> [!NOTE]
> **Note:** To protect you from inadvertent Fleet Routing consumption charges, Cloud projects enrolled in Mobility are prevented from making Fleet Routing requests. If you want to use Fleet Routing in your Mobility-enrolled Cloud projects, [create a Maps support case](https://console.cloud.google.com/google/maps-apis/support/createcase) requesting access.

## Why use the Route Optimization API?

The Route Optimization API helps your drivers drive the
most efficient route possible---making stops and completing tasks in the optimal
order so your customers' orders arrive as quickly and as inexpensively as
possible. Route Optimization simplifies the effort needed to meet the following
goals:

- **Improve driver task productivity:** Ensure that your drivers get efficient routes, including real-time traffic updates to avoid delays due to congestion.
- **Improve consumer experience:** Ensure stops are scheduled within specified time windows so you can provide your consumers with more precise expected delivery times.

## Next Steps

### Visualize routes with the Maps SDK

Some fleet operators want their drivers or their fleet manager to see
routes directly within a user interface. Use the Maps SDK to display the route
from the Routes API. For more information on customizing routes in your map, see
[Maps SDK for Javascript](https://developers.google.com/maps/documentation/javascript), [Maps SDK for Android](https://developers.google.com/maps/documentation/android-sdk), and
[Maps SDK for iOS](https://developers.google.com/maps/documentation/ios-sdk).

### Track routes with Fleet Engine

Once routes have been optimized, Mobility Accelerate customers can use Fleet
Engine to track routes' execution. For more information, see the
[Fleet Engine](https://developers.google.com/maps/documentation/mobility/fleet-engine) documentation.