Travel Time Matrix API — Documentation & Integration

NextBillion.ai's Travel Time Matrix API computes travel times, distances, and ETAs between massive sets of origins and destinations — at a scale and price point that legacy APIs can't match. Supporting matrices up to 5,000×5,000, truck-aware routing, and custom road attributes, it's the routing intelligence backbone for logistics, delivery, and mobility platforms that can't afford to compromise on accuracy or cost.

Developer integrating a travel time matrix API on a logistics platform dashboard

Our Travel Time Matrix API Services

Explore the full suite of matrix, routing, and geospatial APIs that power accurate ETA and distance calculations at any scale.

Distance Matrix API

Calculate real-time and historical travel times, distances, and ETAs between up to 5,000×5,000 origin-destination pairs in a single API call — purpose-built for high-throughput logistics and dispatch operations.

Directions API

Compute precise, truck-compliant, single-vehicle routes with multi-stop support, toll and highway avoidance, and vehicle-specific constraint handling for low-latency, high-scale routing.

Isochrone API

Generate road-network-accurate travel-time and travel-distance polygons to map reachable service areas, evaluate depot locations, and design driver territories based on real-world routing constraints.

Route Optimization API

Generate dispatch-ready multi-stop routes with 50+ hard and soft constraints in seconds, supporting large-scale logistics operations with predictable fixed-fee pricing.

Navigation API

Deliver real-time, vehicle-specific turn-by-turn navigation with live traffic intelligence, HGV-compliant routing, and departure-time-based ETA calculations for commercial fleets.

Road Editor App

Inject custom road attributes — closures, turn restrictions, speed overrides, no-parking zones — directly into every matrix and route calculation without developer intervention.

No Matrix Size Limits

Large-Scale Travel Time Intelligence Built for Logistics

Most travel time matrix APIs cap you at a 25×25 grid and charge per call — a pricing model that breaks down the moment your fleet or order volume scales. NextBillion.ai's Travel Time Matrix API eliminates both constraints: it processes up to 25 million origin-destination pairs per request and offers per-vehicle or per-order pricing, so re-optimization cycles and seasonal demand spikes don't trigger budget overruns. With truck-aware routing, custom road attribute integration, and 99.9% uptime SLA, it delivers the routing intelligence that drives everything from dispatch to ETA feeds.

Travel time matrix API computing ETAs across a large logistics network map
Trusted By 150+ Businesses

Customer Success Stories

See how logistics, delivery, and mobility platforms use NextBillion.ai to cut costs and scale smarter.

"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

"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

"Support very good and friendly. Nextbillion provide the maps distance calculation with the low price but high value service to us. Nextbilions has help us reduce the cost and provide the same service as google!"

Chi Hwe Teo

"Rich in features, light in the pocket. NextBillion.ai is solving the complex processes of the best route for the right vehicle."

Micko Jel Dela Rosa
Micko Jel Dela Rosa

"We were unhappy with the pricing from big players in this space and needed a scalable alternative that offered customizability. NextBillion.ai's Maptiles API was exactly what we were looking for. For companies in the ferry and nautical map domain, we'd highly recommend NextBillion.ai."

"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

"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

"Support very good and friendly. Nextbillion provide the maps distance calculation with the low price but high value service to us. Nextbilions has help us reduce the cost and provide the same service as google!"

Chi Hwe Teo

"Rich in features, light in the pocket. NextBillion.ai is solving the complex processes of the best route for the right vehicle."

Micko Jel Dela Rosa
Micko Jel Dela Rosa

"We were unhappy with the pricing from big players in this space and needed a scalable alternative that offered customizability. NextBillion.ai's Maptiles API was exactly what we were looking for. For companies in the ferry and nautical map domain, we'd highly recommend NextBillion.ai."

"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

"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

"Support very good and friendly. Nextbillion provide the maps distance calculation with the low price but high value service to us. Nextbilions has help us reduce the cost and provide the same service as google!"

Chi Hwe Teo

"Rich in features, light in the pocket. NextBillion.ai is solving the complex processes of the best route for the right vehicle."

Micko Jel Dela Rosa
Micko Jel Dela Rosa

"We were unhappy with the pricing from big players in this space and needed a scalable alternative that offered customizability. NextBillion.ai's Maptiles API was exactly what we were looking for. For companies in the ferry and nautical map domain, we'd highly recommend NextBillion.ai."

The NextBillion.ai Difference

Why Choose NextBillion.ai?

NextBillion.ai delivers enterprise-grade travel time intelligence with the flexibility, scale, and cost structure that mission-critical logistics operations demand.

Unlimited Scale

Process matrices up to 5,000×5,000 — 25 million ETA pairs per call — eliminating costly batching and calculation inconsistencies at any fleet size.

Predictable Pricing

Per-vehicle and per-order pricing models mean demand spikes and re-optimization cycles never translate into unpredictable API bill overruns.

Truck-Aware Routing

Vehicle-dimension and regulatory-compliant ETAs for HGVs — no car-routing assumptions that collapse when a truck hits a weight-restricted bridge.

24/7 Expert Support

Dedicated solutions engineering support from day one, with live production integration typically completed within a week of onboarding.

Meet the NextBillion.ai Founders

Built by operators who solved location intelligence at global scale.

Ajay Bulusu, Co-Founder of NextBillion.ai

Ajay Bulusu

Co-Founder

Ajay Bulusu is a co-founder of NextBillion.ai, bringing deep expertise in geospatial technology and large-scale location platform engineering. His journey began in 2017 as part of Grab's pioneering Geo team, where he helped build the location infrastructure underpinning one of Southeast Asia's largest mobility and logistics platforms. That experience revealed how critical — and how underserved — accurate, flexible location technology was for real-world operations. Driven by a mission to democratize sophisticated location intelligence, Ajay co-launched NextBillion.ai in 2020. Under his technical leadership, the platform has scaled to serve 150+ businesses globally, optimize over 10.9 million deliveries and field tasks, and deliver more than $11 million in documented cost savings to customers.

Gaurav Bubna, Co-Founder of NextBillion.ai

Gaurav Bubna

Co-Founder

Gaurav Bubna drives product innovation at NextBillion.ai, bringing a proven track record of building successful products from scratch across ride-hailing, food delivery, and logistics. Before co-founding NextBillion.ai, Gaurav held product leadership roles at Grab, Ola, and Morgan Stanley — organizations where location technology and operational efficiency are existential. His time on Grab's Geo team alongside Ajay and Shaolin crystallized the vision: logistics and field service businesses needed enterprise-grade location intelligence without prohibitive per-call pricing. Since launching NextBillion.ai in 2020, Gaurav has led the product evolution that has helped the platform navigate over 557 million miles and raise $34.25M in venture capital from investors including Lightspeed and Microsoft's M12.

Shaolin Zheng, Co-Founder of NextBillion.ai

Shaolin Zheng

Co-Founder

Shaolin Zheng is a co-founder of NextBillion.ai, contributing deep technical expertise in geospatial systems and scalable mapping infrastructure. Like his co-founders, Shaolin's formative experience building location technology for Grab's Geo team gave him firsthand insight into the operational gaps that generic mapping solutions leave unaddressed — particularly for field service and logistics businesses operating at scale. His engineering perspective shapes NextBillion.ai's core philosophy: location technology must be customizable, cost-predictable, and production-reliable. The platform he helped build now powers GPS tracking, route optimization, and field service intelligence for over 150 businesses worldwide, with on-premise deployment options and SOC 2 Type II and ISO/IEC 27001:2013 certifications ensuring enterprise-grade security.

Frequently Asked Questions

What is the API for travel time?

A travel time API calculates how long it takes to travel between two or more points on a real road network, factoring in speed limits, traffic conditions, vehicle type, and road restrictions. NextBillion.ai's Travel Time Matrix API extends this to compute ETAs for up to 5,000 origins and 5,000 destinations — 25 million pairs — in a single request, with truck-specific routing and custom road attribute support.

What matrix sizes does the NextBillion.ai Distance Matrix API support?

What is the difference between the Distance Matrix Fast API and the Distance Matrix Flexible API?

Does the API support truck-specific routing and vehicle dimension constraints?

Can I incorporate custom road attributes — like closures or speed limit overrides — into matrix calculations?

How is NextBillion.ai's pricing structured compared to per-API-call models?

What deployment options are available for the Travel Time Matrix API?

What are the primary use cases for the Distance Matrix API?

Still Have Questions About the API?

Talk to a solutions engineer for a technical walkthrough and free integration consultation.

Certified & Trusted

Awards and Recognition

NextBillion.ai 4.6+ star rating badge across top review platforms

4.6+ Star Rating

Rated 4.6+ across top software review platforms

NextBillion.ai venture capital funding badge from top-tier investors

$34.25M Venture Backed

Funded by Lightspeed, Microsoft M12, and Alpha Wave Global

NextBillion.ai 99.9% uptime SLA badge for enterprise API reliability

Enterprise-Grade Uptime

99.9% uptime SLA backed by contract for production APIs

Start Integrating the Travel Time Matrix API Today

Fill out the form below and a NextBillion.ai solutions engineer will reach out to discuss your use case, walk you through the documentation, and get you set up with a trial environment — typically within one business day.

Contact Us Today

To help us assist you faster, please include the reason for your message so the relevant team can reach out as soon as possible.