Route Optimization API
Route Optimization API - Patherizer (a solution to vehicle routing problem) is a cross browsers REST API supporting now
a maximum of 100 stops per route or request including the start destination and the end destination. Beeing a multi stop route optimization software, Patherizer
may be used by multiple calls to calculate and optimize routes for multiple vehicles, each vehicle with its optimized route.
If you need a route optimization API for Electric Vehicles please click here. The route optimization algorythm is based per TSP (travel salesman problem) and it always calculate the shortest route betwween current stop and the next stop until it reaches the end destination.
The input addresses are geocoded, so the JSON response will include latitude and longitude of each stop. If the route optimization API cannot recognize one or more of the input addresses it
will not geocode these inputs and the API request will return a JSON Error as specified in the errors table.
The JSON response also includes distances between each stops along the optimized route (in miles or km) and most important, the durration (in seconds) and durration in real traffic conditions (in seconds) at the time you
make the request. A total distance of the optimized route is computed and also a total time.
Travel mode may be driving or bicycling or walking, so different kind of niches might be targeted by your app.
Allthough this Route Optimization API is intended for software development and therefore developers, we have also here an online application that may be used to get listed the optimized route from the input text
basically you input start address, end address and multi stop addresses (no matter the order) along the route separated by ";" Basically for Route Optimization API you send an authorized POST request in JSON format to the API endpoint and you get as JSON response a
representing the optimized route in segments as you need to go. You may use it for commercial purposes for paid packages.
Route Optimization APP or API is useful for a large number of domains like: driving route optimizer, delivery routing software, vehicle routing problem, fleet routing software etc.
For using our API and/or APP you must create an account (free of charge, no card required), activate it from your received email, login and then start your TRIAL package with no fees as you can see at our pricing packages.
After you have tested the Route Optimization API and/or APP and if you are satisfied, you may buy a paid package. You will always see at your Admin Console page the real resources
consumption in real time, your invoices, you may see/edit/delete your profile or export log consents as GDPR instructed, you may read our FAQs.
Parameter Name
Parameter Description
optimized_route
This is the RootObject (not a parameter) that includes an array field called segments and four other fields total_distance (in km or mi), total_time (in seconds), total_time_in_traffic (in seconds) and totals_summary (string). These fields will be detailed below.
segments
This is an array containing each segment of the optimized route. The segments are sorted from the first to the last in the order the optimized route must be passed. The array contains the following fields: origin, origin_latitude, origin_longitude, destination, destination_latitude, destination_longitude, distance, time, time_in_traffic, toll, each of the fields is explained below.
origin
This is the origin address [string] of the segment. Example:
2700 Wisconsin Avenue Northwest, Washington DC
destination
This is the destination address [string] of the segment. Example:
3511 Lowell Street Northwest, Washington
origin_latitude
This is the origin latitude of the segment as [real] number. It may be a negative number. Example: 40.243587
origin_longitude
This is the origin longitude of the segment as [real] number. It may be a negative number. Example: 20.293886
destination_latitude
This is the destination latitude of the segment as [real] number. It may be a negative number. Example: 41.549527
destination_longitude
This is the destination longitude of the segment as [real] number. It may be a negative number. Example: 21.847597
distance
This is the distance as [real] number between origin and destination of the segment as [meters]. Example: 5678
time
This is the average time in [seconds] as [integer] number necessary to go from origin to destination of the segment. Example: 1227
time_in_traffic
This is the real time in traffic conditions at the time the request has been made in [seconds] as [integer] number necessary to go from the origin to the destination of the segment. Example: 1325
toll
This is the toll cost for travelling the segment as [string] number. If not present it will be null. Example: 5.84 USD
total_distance
This is the total distance of the optimized route as [real] number in [meters]. Example: 5843
total_time
This is the total average time to travel the optimized route as [real] number in [seconds]. Example: 57643
total_time_in_traffic
This is the total time in real traffic conditions at the moment you make the request to travel the optimized route as [real] number in [seconds]. Example: 55893
totals_summary
This is a summarizing field [string] for total distance (in [km] or [mi]) depending of the value of the units parameter from request, total average time as [hh:mm] and total time in real traffic conditions [hh:mm] at the moment you make the request to travel the optimized route. Example: Total Distance [km]=5,078; Total time [hh:mm]=0:14; Total time in traffic [hh:mm]=0:12
Vehicle Routing Problem Video Presentation
Vehicle Routing Problem solved by Delivery Routing Software - Patherizer - is in the video presentation below. Our driving route optimizer or multi stop route optimizer is a very useful tool for any kind of activity that implies route optimization.
You can use it as a standalone route optimization app or, as a developer, you can access it from your own app or apps.
Please choose one of the below pricing packages for start using our Route Optimization API and online APP!
Yearly TIER
(15% Discount)
Notes:
VAT rate may be added or not, function to your country and/or if you are a taxable person or company.
* If you select different travel mode and calculate the route (even for the same input addresses) these addresses are counted also for each selected travel mode.
** Address - may be an exact address (recommended), a street address without number, a city, even a country.
*** Geocoding - if for one or more input addresses the API cannot geocode it, meaning the API cannot get the latitude and the longitude, then the optimized route will not be calculated and you will not be charged. If all the input addresses will be geocoded but calculating one or more segments of the optimized route cannot be done (for example there are no routes betwwen origin and destination) then the optimized route cannot be calculated and you will be charged.