# Cab dispatch from a time matrix

> Dispatch asks which free driver reaches a rider first. /v1/sources-to-targets answers it, with drivers as sources and the rider as the target.

Status: Available in 10 cities: Bengaluru, Mumbai, Delhi, London, Berlin, Paris, New York, San Francisco Bay Area, Singapore and Tokyo. Planet coverage later. Every location of one request must be inside one city.

## Example: A 5 × 5 time matrix in Delhi

### Delhi · car

Precomputed answer from geolith routing, Delhi, 2026-11-18. Not a live call.

```bash
curl -X POST "https://api.geolith.app/v1/sources-to-targets" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sources": [
      {
        "lat": 28.6315,
        "lon": 77.2167
      },
      {
        "lat": 28.6129,
        "lon": 77.2295
      },
      {
        "lat": 28.6519,
        "lon": 77.1909
      },
      {
        "lat": 28.5677,
        "lon": 77.2433
      },
      {
        "lat": 28.6506,
        "lon": 77.2303
      }
    ],
    "targets": [
      {
        "lat": 28.6315,
        "lon": 77.2167
      },
      {
        "lat": 28.6129,
        "lon": 77.2295
      },
      {
        "lat": 28.6519,
        "lon": 77.1909
      },
      {
        "lat": 28.5677,
        "lon": 77.2433
      },
      {
        "lat": 28.6506,
        "lon": 77.2303
      }
    ],
    "costing": "auto",
    "units": "kilometers"
  }'
```

## Matrix (/v1/sources-to-targets) against Valhalla 3.9.1, per city

| City | Requests | Byte-identical |
| --- | --- | --- |
| Bengaluru | 60 | 60/60 |
| Mumbai | 60 | 60/60 |
| Delhi | 60 | 60/60 |
| London | 60 | 60/60 |
| Berlin | 60 | 60/60 |
| Paris | 60 | 60/60 |
| New York | 60 | 60/60 |
| San Francisco Bay Area | 60 | 60/60 |
| Singapore | 60 | 60/60 |
| Tokyo | 60 | 60/60 |

## Where routing fits

One matrix per dispatch decision.

- Dispatch: /v1/sources-to-targets from free drivers to the rider; 20 drivers and 1 rider use 20 routing units.
- Times use default speeds per road class and country.
- Live speeds from your own drivers are not offered on the hosted API yet. geolith does not collect, share or sell your pings.

## Sources

1. [Routing API](https://docs.geolith.app/routing/api), geolith docs (read 2026-11-17)
2. [Routing: speeds and traffic](https://docs.geolith.app/routing/traffic), geolith docs (read 2026-11-17)

Routing is available in 10 cities, planet coverage later. Get a free API key (10,000 routing units a month on the Free plan): https://console.geolith.app/signup. Read the routing docs: https://docs.geolith.app/routing
