Integrate Box Truck Sprinter routing intelligence into your applications.
API keys and OAuth 2.0
Create and optimize routes
JavaScript, Python, Ruby
Real-time event notifications
// Create an optimized route
const response = await fetch('https://api.boxtrucksprinter.com/v1/routes/optimize', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
stops: [
{ address: '350 5th Ave, New York, NY' },
{ address: '1 World Trade Center, New York, NY' },
{ address: '30 Rockefeller Plaza, New York, NY' }
],
vehicle_type: 'box_truck',
options: {
avoid_tolls: false,
return_to_start: true
}
})
});
const route = await response.json();
console.log(route.optimized_order);
console.log(route.total_distance_miles);
console.log(route.estimated_duration_minutes);| Plan | Requests/min | Routes/month |
|---|---|---|
| Starter | 60 | 1,000 |
| Professional | 300 | 10,000 |
| Enterprise | Unlimited | Unlimited |