Skip to main content

Route Optimization API

Multi-Stop Route Planning at Scale

Solve the traveling salesman problem for your business. Calculate the most efficient route to visit multiple locations, reducing costs and improving efficiency.

Key Features

Smart optimization for complex routing

Multi-Stop Optimization

Find the most efficient order to visit multiple locations, minimizing time and distance

Time Windows

Support for delivery time constraints and service time requirements

Cost Reduction

Reduce fuel costs and travel time with optimized route sequencing

Vehicle Constraints

Consider vehicle capacity, load restrictions, and driver shift times

Priority Stops

Specify high-priority locations that must be visited first or within specific time frames

Multiple Vehicles

Optimize routes across fleet of vehicles with balanced workload distribution

Technical Specifications

Optimization

Algorithm
Advanced TSP/VRP solver
Max Stops
Up to 200 locations

Constraints

Time Windows
Delivery time constraints
Vehicle Capacity
Load balancing support

Performance

Response Time
Sub-second optimization
Multi-Vehicle
Fleet routing support

Pricing

Free Tier
100,000 optimizations/month
Rate Limits
Unlimited

Ready to Get Started?

Start building with MapAtlas today. Sign up for free and get instant access to all our mapping APIs with generous free tier limits.

Optimize Route API: common questions

Everything you need to know about multi-stop route optimization.

What is the difference between route optimization and turn-by-turn navigation?
Turn-by-turn navigation (the Directions API) calculates the fastest path between stops in the order you specify. Route optimization reorders those stops to find the sequence that minimizes total travel time or distance. Use the Optimize Route API first to get the best stop order, then pass that ordered list to the Directions API for detailed navigation instructions.
How many stops can the Optimize Route API handle?
The API supports up to 200 stops per optimization request. For most last-mile delivery and field service scenarios this is more than sufficient. Requests with fewer than 20 stops typically return in under 100 ms. Larger jobs with 100 to 200 stops complete within 1 to 2 seconds.
What are time windows and how do they work?
A time window is a delivery or service constraint specifying the earliest and latest time a stop must be visited. For example, a customer who is available 09:00 to 12:00. The optimizer respects all time windows while still minimizing total route distance. Stops that cannot be reached within their window are flagged in the response so you can reassign or reschedule them.
Does the API support multiple vehicles?
Yes. Pass a list of vehicles, each with its own start location, capacity, and shift hours. The optimizer distributes stops across the fleet, balancing workload while minimizing total fleet distance. You can mix vehicle types with different capacities in the same request.
Can I fix the start and end location of a route?
Yes. Specify a fixed depot or start location per vehicle. You can also set a fixed end location, or allow the optimizer to end at the last stop to minimize dead-mileage back to base. Round-trip routes that start and end at the same depot are also supported.
What algorithm does the Optimize Route API use?
The API uses a combination of construction heuristics and local search metaheuristics to solve the Vehicle Routing Problem (VRP), a generalization of the Travelling Salesman Problem. For practical fleet sizes the solution quality is within 1 to 3 percent of the theoretical optimum, returned in sub-second response times.