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.

"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

"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."

"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

"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

"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."

"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

"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

"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."

"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

"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
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, which he launched in 2020 alongside Gaurav Bubna and Shaolin Zheng following their shared experience building geo and routing infrastructure at Grab. Ajay brings deep expertise in geospatial systems and the real-world demands of large-scale logistics and mobility operations. His work at Grab's Geo team gave him direct exposure to the limitations of existing mapping platforms — rigid, expensive, and poorly suited to the diverse operational needs of fast-growing transportation businesses. At NextBillion.ai, Ajay leads with a conviction that location intelligence should be accessible, customizable, and economically viable for businesses of every scale, from regional delivery fleets to global logistics platforms. Under his co-leadership, NextBillion.ai has raised $34.25M, served 150+ businesses globally, and joined Velocitor Solutions in 2025.

Gaurav Bubna, Co-Founder of NextBillion.ai

Gaurav Bubna

Co-Founder

Gaurav Bubna is a Co-Founder of NextBillion.ai and leads product innovation at the company. With a career spanning ride-hailing, food delivery, and logistics at organizations including Grab, Ola, and Morgan Stanley, Gaurav has built successful products from the ground up in some of the world's most demanding operational environments. His firsthand experience with the gaps in existing location technology platforms — particularly around cost, flexibility, and enterprise-grade scalability — was a driving force behind founding NextBillion.ai in 2020. Gaurav's product philosophy centers on building location intelligence tools that solve real operational problems: routing systems that handle truck-specific constraints, pricing models that scale with fleets rather than API calls, and integration paths that go live in days, not months. His work has helped deliver $11+ million in cost savings to NextBillion.ai's global customer base.

Shaolin Zheng, Co-Founder of NextBillion.ai

Shaolin Zheng

Co-Founder

Shaolin Zheng is a Co-Founder of NextBillion.ai, bringing deep technical expertise in geospatial systems and large-scale mapping infrastructure to the company's founding team. Like her co-founders, Shaolin was part of the Geo team at Grab, where she gained hands-on experience with the engineering complexity behind routing, ETA computation, and location intelligence at platform scale. That experience made clear the systemic shortcomings of existing mapping APIs — particularly their inability to handle the operational nuances of commercial logistics, trucking, and multi-modal transport. At NextBillion.ai, Shaolin's technical leadership has been instrumental in building a platform that supports matrix computations at 5,000×5,000 scale, sub-second routing response times, and on-premise deployment for enterprises with strict data residency requirements. Since its 2020 launch, NextBillion.ai has navigated 557+ million miles for its global customer base.

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.