
Route Planner API - optimize resources and time
Develop Route Optimization Solutions for various business cases
- Powerful and flexible to solve well-known route and schedule optimization problems
- Create a solution for youself or provide as a part of your platform to your customers
- We have a Freemium pricing model! Start for Free!
Learn more about opportunities and features on the Documentation page or try it now in the Playground!
Live demo - choose a VRP problem example and solve it!
The task is generated by using Places API, you can regenerate task for a map view:
Solving real-life Vehicle Routing Problems
Supporting constraints, time windows, and priorities
Types of tasks supported
Route Planner API lets develop solutions for the most well-known route optimization problems:
- Multiple vehicles routing problems
- Pickup-delivery routing optimization
- Schedules and routes for professional services
VRP with Constraints
Solve routing problems with constraints:
- Set vehicle/agent capacity constraints
- Add vehicle/agent capabilities: feature, tools, skills
- Add job requirements
VRP with Time Windows
Set Time Windows for vehicles/agents and jobs:
- Set service times
- Set working/opening hours
- Set lunch breaks
Next steps
Start quickly with API Documentation, Playground, and Code samples
1. Learn Route Planner API features, input and output parameters in the Playground
We've prepared examples of tasks that can be solved with Routing Planner API in the API Playground. Choose a task that similar to yours from a dropdown list, check the API request object and result structure.
2. API Specification, input and output parameters
The documentation page contains detailed information about the API Specification, billing details, and code samples.
3. Get Geoapify API key
You will require an API Key to use the API. Register on MyProject Geoapify and get an API key.
4. Generate HTTP Post request
Generate an HTTP Post request with input data and make the call. You can copy a request object from the Playground or generate one by yourself.
Here is an example of calling Route Planner API:
fetch('https://api.geoapify.com/v1/routeplanner?apiKey=YOUR_API_KEY', {
method: 'post',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(requestObject)
}).then(res=>res.json())
.then(result => console.log(result));
5. Process and visualize results
The API returns a FeatureCollection GeoJSON object as the result. As GeoJSON is natively supported by map client libraries the result can be easily visualized on the map. Find code samples of Route Planner API data processing and GeoJSON visualization on Geoapify APIDocs.
6. Have question? Contact us!
Do not hesitate to contact us in case of any questions!
FAQ
How much does the Route Planner API cost?
You can start developing your application for Free and then extend depending on your needs. We offer unmetered tariffs from 700€ / month. Check our Pricing Plans to learn more >>
Is the Route Planner API GDPR compliant?
We are a German company and provide GDPR-compliant services. Our default API endpoints always use European data centers only. Dedicated endpoints can utilize other server locations, even located in your intranet.
Which variants of VRP can be solved by Geoapify Route Planner API?
You can solve Travelling salesman problem (TSP), Capacitated Vehicle Optimization Problem (CVRP), Vehicle Routing Problem with Time Windows (VRPTW), Multi-Depot Vehicle Routing Problem (MDVRP), and Pickup and Delivery Problem with Time Windows (PDPTW) types of vehicle routing problems.
Can combine Constraints and Time Windows in one task?
Sure! You can solve any mix of the supported VRP variants.
We plan to integrate the Route Planner API into our ERP system and sell it to our customers. Can we do that?
Sure! You can develop your own Route Planner that uses the API and sell it.
We expect to have High Volumes of the API requests. Can we have custom conditions?
Yes! Contact us and we will find conditions beneficial for both sides!