---
title: "Calculate the distance between two places or points"
method: GET
path: "/distance"
---

# Calculate the distance between two places or points

`GET /distance`

## Request

- Base URL: `https://api.gadgethumans.com`
- URL: `https://api.gadgethumans.com/distance`
- Auth: none declared

Distance between two places - Compute the distance between two coordinates or places (?from=&to=) in km and miles, with the straight-line result and inputs echoed.

## Query parameters

- `from` string, required: Origin place (required)
- `to` string: Destination place (optional)

## Response `200`

Success

- object

## Other responses

- `402`: Payment Required: x402 exact scheme, USDC on Base

---

[API](https://skmtc.dev/gadgethumans/apis/gadgethumans-api-hub.md) · [All operations](https://skmtc.dev/gadgethumans/apis/gadgethumans-api-hub/llms.txt) · [OpenAPI document](https://skmtc.dev/gadgethumans/apis/gadgethumans-api-hub/revisions/7e0ce6386a0d?raw)
