Documentation

Everything you need to integrate and use Virtus Transport

Get up and running fast

Documentation categories

Simple to integrate

Create an optimized delivery route with just a few lines of code.

create-route.js
// Create an optimized delivery route
const virtus = require('@virtus/transport');

const client = new virtus.Client({
  apiKey: process.env.VIRTUS_API_KEY
});

const route = await client.routes.create({
  depot: { lat: 51.5074, lng: -0.1278 },
  stops: [
    { address: "14 King Street, London", time_window: "09:00-12:00" },
    { address: "82 Queen Road, London", time_window: "10:00-14:00" },
    { address: "5 Park Lane, London", time_window: "13:00-17:00" }
  ],
  optimize: true
});

console.log(route.id);          // "rt_a1b2c3d4"
console.log(route.estimated_time); // "2h 14m"
console.log(route.distance_km);    // 18.7

Popular guides

Step-by-step tutorials to help you get the most out of Virtus Transport.

Need help? Our support team is here for you.

Can't find what you're looking for? Reach out and we'll get you sorted.

Contact support Visit Help Centre