Last-mile delivery

Routing API for last-mile delivery

Decide what you can deliver, who should deliver it and how they get there — with delivery zones based on drive time instead of circles on a map.

The problem

  • Radius-based delivery zones ignore rivers, highways and one-way streets.
  • Assigning orders by straight-line distance sends drivers the long way.
  • Per-request map costs eat into thin delivery margins.

How teams solve it with Wayline

  • Drive-time delivery zones

    Check a new address against stores with a 1 × N matrix.

    Distance Matrix API
  • Driver routes

    Full geometry and turn-by-turn steps for the driver app.

    Routing API
  • Clean drop-off pins

    Snap customer pins to the street before dispatch.

    Snap to Roads API

A typical workflow

  1. 1

    At checkout, request store × customer drive times and only offer delivery under your threshold.

  2. 2

    When orders are ready, match them to drivers with a drivers × orders matrix.

  3. 3

    Send the chosen route to the driver app; show © OpenStreetMap contributors on the map.

Frequently asked questions

Can I call the API from my driver mobile app?

Call it from your backend, not from the app. API keys embedded in mobile apps can be extracted. Your backend can cache and rate-limit calls per user.

Start building in minutes

Create an account, grab a test key and make your first request in under five minutes.