---
title: "Lookup Bulk Distances for lanes, in miles."
method: POST
path: "/lookup/batch-distance"
tags: ["Lookup"]
---

# Lookup Bulk Distances for lanes, in miles.

`POST /lookup/batch-distance`

This returns the lane_id, origin,destination, and mileage for a batch of lane requests.

## Headers

- `x-api-version` string

## Request body

- MileageBatchRequest
  - `lanes` MileageLaneInput[]
    - `lane_id` string
    - `origin` string
    - `destination` string
    - `origin_country_code` string
    - `destination_country_code` string

## Response `200`

Returns a list of successful lane mileage responses, as well as a list of errors, as a JSON object.

- MileageBatchResponse
  - `lanes` MileageLaneOutput[]
    - `lane_id` string
    - `origin` string
    - `destination` string
    - `mileage` number, double
  - `errors` MileageLaneError[]
    - `lane_id` string
    - `origin` string
    - `destination` string
    - `error` string

## Other responses

- `401` — Unauthorized Request
- `500` — Internal Server error

---

[API](https://skmtc.net/freightwaves/apis/sonar-api.md) · [All operations](https://skmtc.net/freightwaves/apis/sonar-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/freightwaves/sonar-api/revisions/3a995f316cda/schema)
