Optimize Routes & Schedules with Route Optimization API

Get optimized routes, dynamic schedules and highly accurate ETAs. Swiftly order and reorder complex task sequences.

banner

Product and tech leaders in high-performing logistics companies trust NextBillion.ai

Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap
Logo wrap

Key Features

Get dispatch-ready routes with 50+ constraints

Combine several hard and soft constraints to generate routes that don’t need editing.

generate-optimal-routes
generate-optimal-routes
generate-optimal-routes
generate-optimal-routes

Build logical routes with task sequencing

Include task prerequisites like tool pickups or refueling as stops within your larger routing problem.

Fulfill ad hoc orders with minimal re-optimization

Insert new orders or service requests into ongoing routes with minimal changes to the itinerary.

generate-optimal-routes
generate-optimal-routes

Nail your
request parameters
with hands-on support

Get help in writing an API request that captures all parts of your routing problem.

Free 24x7 support over email & chat

Use Cases

stable

Trucking

Get truck-specific routes tailored to the vehicle’s attributes.

quality

On-Demand Delivery

Simplify the complexities of multi-route and multi-stop planning across supply chain.

quality

Field Service

Improve resource utilization and simplify work order scheduling.

stable

Waste Collection

Optimize daily operations and achieve regulatory compliance at scale.

quality

Ride Hailing

Enhance driver dispatch, route planning and pick-ups/drop-off experience.

quality

Urban Mobility

Build EV routes around battery usage and charge patterns.

Built for Developers:
Go Live in Days, Not Weeks or Months

Easy Integration

Designed to make developers’ lives easier, our APIs and SDKs follow standard industry protocols, facilitating rapid integration into your applications.

Comprehensive Developer Resources

Dive into our platform's functionality with detailed documentation, code samples, step-by-step tutorials and use case notebooks.

Proactive Support

Receive assistance from our solution engineers and product support team throughout your evaluation, integration, and production phases — a rarity in the location tech landscape.


                        curl --location 'https://api.nextbillion.io/optimization/v2?key=' 
--header 'Content-Type: application/json' 
--data '{
  "options": { "routing": { "mode": "car" } },
  "vehicles": [
    {
      "id": 1,
      "start_index": 21,
      "end_index": 21,
      "capacity": [100],
      "time_window": [1702607400, 1702625400],
      "skills": [2, 5],
      "breaks": [],
      "max_tasks": 25,
      "costs": { "fixed": 100 }
    },
    {
      "id": 2,
      "start_index": 21,
      "end_index": 21,
      "capacity": [100],
      "time_window": [1702607400, 1702625400],
      "skills": [2, 5],
      "breaks": [],
      "max_tasks": 25,
      "costs": { "fixed": 1000 }
    },
    {
      "id": 3,
      "start_index": 21,
      "end_index": 21,
      "capacity": [100],
      "time_window": [1702607400, 1702625400],
      "skills": [1, 4],
      "breaks": [],
      "max_tasks": 25,
      "costs": { "fixed": 2000 }
    },
    {
      "id": 4,
      "start_index": 21,
      "end_index": 21,
      "capacity": [100],
      "time_window": [1702607400, 1702625400],
      "skills": [2, 5],
      "breaks": [],
      "max_tasks": 25,
      "costs": { "fixed": 3000 }
    },
    {
      "id": 5,
      "start_index": 21,
      "end_index": 21,
      "capacity": [100],
      "time_window": [1702607400, 1702625400],
      "skills": [3, 5],
      "breaks": [],
      "max_tasks": 25,
      "costs": { "fixed": 4000 }
    }
  ],
  "locations": {
    "id": 12,
    "description": "NB.AI SHIPMENTS DEMO",
    "location": [
      "40.6085191875,-73.9536178305",
      "40.7372425625,-73.9457455230",
      "40.5942814471,-73.9783025420",
      "40.7109609308,-73.9531622356",
      "40.6166491791,-73.9697126006",
      "40.7148610344,-73.9089981270",
      "40.6385350172,-73.9017287031",
      "40.7171951587,-73.8614628402",
      "40.6652580289,-73.8995238296",
      "40.7169478232,-73.8874888392",
      "40.6199821213,-74.0188033905",
      "40.7524615322,-73.8888712419",
      "40.5885341540,-73.9624776847",
      "40.7176884077,-73.8951881458",
      "40.6246397579,-73.9429799499",
      "40.7402823747,-73.8561772027",
      "40.6744393346,-73.9398219099",
      "40.7160849939,-73.9333128954",
      "40.6652089729,-73.9695243818",
      "40.7439268324,-73.9024963644",
      "40.7176025,-74.059828",
      "40.7176025,-74.059828"
    ]
  },
  "jobs": [],
  "shipments": [
    {
      "pickup": {
        "id": 1,
        "location_index": 0,
        "service": 120,
        "time_windows": [[1702618763, 1702625963]]
      },
      "delivery": {
        "id": 1,
        "location_index": 1,
        "service": 120,
        "time_windows": [[1702618763, 1702625963]]
      },
      "skills": [1],
      "priority": 1,
      "amount": [16]
    },
    {
      "pickup": {
        "id": 2,
        "location_index": 2,
        "service": 120,
        "time_windows": [[1702622209, 1702629409]]
      },
      "delivery": {
        "id": 2,
        "location_index": 3,
        "service": 120,
        "time_windows": [[1702622209, 1702629409]]
      },
      "skills": [3],
      "priority": 1,
      "amount": [67]
    },
    {
      "pickup": {
        "id": 3,
        "location_index": 4,
        "service": 120,
        "time_windows": [[1702625500, 1702632700]]
      },
      "delivery": {
        "id": 3,
        "location_index": 5,
        "service": 120,
        "time_windows": [[1702625500, 1702632700]]
      },
      "skills": [5],
      "priority": 1,
      "amount": [98]
    },
    {
      "pickup": {
        "id": 4,
        "location_index": 6,
        "service": 120,
        "time_windows": [[1702626638, 1702633838]]
      },
      "delivery": {
        "id": 4,
        "location_index": 7,
        "service": 120,
        "time_windows": [[1702626638, 1702633838]]
      },
      "skills": [1],
      "priority": 1,
      "amount": [27]
    },
    {
      "pickup": {
        "id": 5,
        "location_index": 8,
        "service": 120,
        "time_windows": [[1702629136, 1702636336]]
      },
      "delivery": {
        "id": 5,
        "location_index": 9,
        "service": 120,
        "time_windows": [[1702629136, 1702636336]]
      },
      "skills": [2],
      "priority": 1,
      "amount": [53]
    },
    {
      "pickup": {
        "id": 6,
        "location_index": 10,
        "service": 120,
        "time_windows": [[1702615839, 1702623039]]
      },
      "delivery": {
        "id": 6,
        "location_index": 11,
        "service": 120,
        "time_windows": [[1702615839, 1702623039]]
      },
      "skills": [2],
      "priority": 1,
      "amount": [39]
    },
    {
      "pickup": {
        "id": 7,
        "location_index": 12,
        "service": 120,
        "time_windows": [[1702631772, 1702638972]]
      },
      "delivery": {
        "id": 7,
        "location_index": 13,
        "service": 120,
        "time_windows": [[1702631772, 1702638972]]
      },
      "skills": [4],
      "priority": 1,
      "amount": [23]
    },
    {
      "pickup": {
        "id": 8,
        "location_index": 14,
        "service": 120,
        "time_windows": [[1702629552, 1702636752]]
      },
      "delivery": {
        "id": 8,
        "location_index": 15,
        "service": 120,
        "time_windows": [[1702629552, 1702636752]]
      },
      "skills": [3],
      "priority": 1,
      "amount": [50]
    },
    {
      "pickup": {
        "id": 9,
        "location_index": 16,
        "service": 120,
        "time_windows": [[1702612858, 1702620058]]
      },
      "delivery": {
        "id": 9,
        "location_index": 17,
        "service": 120,
        "time_windows": [[1702612858, 1702620058]]
      },
      "skills": [3],
      "priority": 1,
      "amount": [49]
    },
    {
      "pickup": {
        "id": 10,
        "location_index": 18,
        "service": 120,
        "time_windows": [[1702626254, 1702633454]]
      },
      "delivery": {
        "id": 10,
        "location_index": 19,
        "service": 120,
        "time_windows": [[1702626254, 1702633454]]
      },
      "skills": [4],
      "priority": 1,
      "amount": [90]
    }
  ]
}'
                        

                        curl --location 'https://api.nextbillion.io/optimization/v2?key={your_api_key}' 
--header 'Content-Type: application/json' 
--data '{
    "options": {
        "routing": {
            "mode": "truck",
            "truck_size":"200, 210, 600",
            "truck_weight": 5000,
            "traffic_timestamp": 1702607400
        }
    },
    "locations": {
        "id": 12,
        "description": "NB.AI TRUCK MODE",
        "location": [
            "40.6085191875,-73.9536178305",
            "40.7372425625,-73.9457455230",
            "40.5942814471,-73.9783025420",
            "40.7109609308,-73.9531622356",
            "40.6166491791,-73.9697126006",
            "40.7148610344,-73.9089981270",
            "40.6385350172,-73.9017287031",
        ]
    },
    "jobs": [],
    "shipments": [
        {
            "pickup": {
                "id": 1,
                "location_index": 0,
                "service": 120,
                "time_windows": [
                    [
                        1702618763,
                        1702625963
                    ]
                ]
            },
            "delivery": {
                "id": 1,
                "location_index": 1,
                "service": 120,
                "time_windows": [
                    [
                        1702618763,
                        1702625963
                    ]
                ]
            },
            "skills": [
                1
            ],
            "priority": 1,
            "amount": [
                16
            ]
        },
        {
            "pickup": {
                "id": 2,
                "location_index": 2,
                "service": 120,
                "time_windows": [
                    [
                        1702622209,
                        1702629409
                    ]
                ]
            },
            "delivery": {
                "id": 2,
                "location_index": 3,
                "service": 120,
                "time_windows": [
                    [
                        1702622209,
                        1702629409
                    ]
                ]
            },
            "skills": [
                3
            ],
            "priority": 1,
            "amount": [
                67
            ]
        },
        {
            "pickup": {
                "id": 3,
                "location_index": 4,
                "service": 120,
                "time_windows": [
                    [
                        1702625500,
                        1702632700
                    ]
                ]
            },
            "delivery": {
                "id": 3,
                "location_index": 5,
                "service": 120,
                "time_windows": [
                    [
                        1702625500,
                        1702632700
                    ]
                ]
            },
            "skills": [
                5
            ],
            "priority": 1,
            "amount": [
                98
            ]
        },
        {
            "pickup": {
                "id": 4,
                "location_index": 6,
                "service": 120,
                "time_windows": [
                    [
                        1702626638,
                        1702633838
                    ]
                ]
            },
            "delivery": {
                "id": 4,
                "location_index": 7,
                "service": 120,
                "time_windows": [
                    [
                        1702626638,
                        1702633838
                    ]
                ]
            },
            "skills": [
                1
            ],
            "priority": 1,
            "amount": [
                27
            ]
        }
    ],
    "vehicles": [
        {
            "id": 1,
            "start_index": 21,
            "end_index": 21,
            "capacity": [
                100
            ],
            "time_window": [
                1702607400,
                1702625400
            ],
            "skills": [
                2,
                5
            ],
            "breaks": [],
            "max_tasks": 25,
            "costs": {
                "fixed": 0
            }
        },
        {
            "id": 2,
            "start_index": 21,
            "end_index": 21,
            "capacity": [
                100
            ],
            "time_window": [
                1702607400,
                1702625400
            ],
            "skills": [
                2,
                5
            ],
            "breaks": [],
            "max_tasks": 25,
            "costs": {
                "fixed": 1000
            }
        },
    ]
}'
                            
product-support

Pricing that Works for Every Business

stable

Asset-based

Pricing based on the number of assets.

stable

Usage-based

Pricing based on actual usage of products and services.

stable

Customized

Tailored pricing to meet specific business needs.

Building Blocks for End-to-End Optimization

Explore a range of complementary APIs by NextBillion.ai that enable you to handle unique workflows.

Logistics product managers and developers
love NextBillion.ai APIs & SDKs

G2 Badge G2 Badge G2 Badge G2 Badge
G2 Badge G2 Badge G2 Badge G2 Badge

By substantially reducing the number of developer hours spent on scheduling, NextBillion.ai’s MVRP and large Distance Matrix API have helped us improve our operational efficiency and increase our cost savings significantly!

carson-stevens

Carson Stevens,
Data Engineer

I admire NextBillion.ai's fast response and friendly manners whenever we need professional support in geospatial data processing. They have delivered a valuable service and support to our company that we appreciate.

yantisa-akhadi

Yantisa Akhadi,
Strategy and Partnership Manager

NextBillion.ai solves the problem of providing a high-performance mapping platform at scale. We generate efficient delivery schedules in real time for hundreds of vehicles, so distance calculations need to be fast and reliable. NextBillion.ai’s Distance Matrix service meets and exceeds this demand.

james-nebeker

James Nebeker,
Machine Learning Engineer

Seamless Integrations With
Top Enterprise Clouds, ERPs and CRMs

Logo Logo Logo Logo Logo

Solve simple to complex routing, assignment and allocation problems with NextBillion.ai’s Route Optimization API

UNITED STATES

21 E State Street, Suite 200,
Columbus, OH 43215

SINGAPORE

#32-01, 80 Raffles Place,
UOB Plaza, Singapore 048624

© 2024 NextBillion.AI

Terms of use

Privacy Policy

All rights reserved