# Routing profiles & drive times

> Which vehicle profiles Wayline supports, how to request motorcycle routes, and how region-tuned drive times are estimated.

Source: https://www.wayline.cloud/docs/concepts/profiles

## Profiles

Pass `profile` on `/v1/distance`, `/v1/route`, `/v1/distance/batch`, `/v1/matrix` and `/v1/nearest`:

| Profile | Aliases | Notes |
|---|---|---|
| `car` (default) | `driving` | Every region. |
| `motorcycle` | `bike`, `motorbike`, `two_wheeler` | Where the region offers it. In South Asia "bike" means motorcycle. |
| `bicycle` | `cycling` | Not offered yet. |

Responses always return the canonical name (`"profile": "motorcycle"`). Each region lists the profiles it serves in [`GET /v1/coverage`](/docs/api). Requesting a profile a region does not offer returns `400 PROFILE_UNAVAILABLE`. You never silently get car routes instead.

```bash
curl "https://api.wayline.cloud/v1/distance?origin=23.7461,90.3742&destination=23.7808,90.4067&profile=motorcycle" \
  -H "Authorization: Bearer $WAYLINE_KEY"
```

On the Google-compatible endpoint use `mode=two_wheeler` (as in the Google Routes API).

Each profile is its own routing graph. A motorcycle profile:

- obeys `motorcycle=*` access tags in OpenStreetMap (roads, bridges and expressways closed to motorcycles are avoided when they are tagged that way),
- fits narrower roads and may use unpaved tracks,
- has its own speed tables and smaller turn costs.

## How drive times are estimated

Drive times are **typical daytime** estimates, not free-flow and not live traffic. For each region we tune:

- **Speed per road class** (motorway, trunk, primary, … residential), reflecting how fast traffic usually moves, not the posted limit.
- **City tiers**: slower speeds inside dense city cores and large cities. In Bangladesh there are three tiers: Dhaka city core, Greater Dhaka and other large cities, and everywhere else.
- **Driving side**: left-hand traffic where applicable (Bangladesh), which changes turn costs.
- Turn penalties, traffic signals, surface quality and posted speed limits.

What is **not** included: live traffic, incidents, weather, time of day and day of week. Expect real trips to vary, especially at rush hour. For dispatch, many teams multiply our estimate by a factor learned from their own completed trips.

The speed tables are recalibrated from measured trips (rider and field-staff trip logs and test rides, never third-party routing services). If you have trip logs with measured start and stop times and are willing to share them, [contact support](/docs/support). Better data makes ETAs better for everyone in the region.

## Choosing a profile

- Delivery riders, ride-hailing on two wheelers, field staff on motorcycles: `motorcycle`.
- Cars, vans and pickups: `car`.
- Distance-based pricing (fares, shipping): either works. Distances usually differ by under a few percent, because the motorcycle profile can use roads a car cannot.
