Distance Tools
StatusDevelopersupload Spreadsheet
  • Welcome
  • Getting Started
    • Quickstart
  • Tools
    • Spreadsheet
      • Getting started
      • Format & input
      • Upload & validation
      • Pricing & Payment
      • FAQ
    • Webapp
      • Scraping
      • Advertisers
    • API
      • Getting started
      • API Reference
        • distance/route
        • distance/route/detailed
        • distance/route/maritime
        • distance/point
        • routing/car
        • routing/maritime
      • Plans & Pricing
      • FAQ
        • Migration guide
    • AI Agent
  • Features
    • Input data
    • Routing
    • Calculation
    • Segmentation
  • Legal
    • Terms of Service
    • Privacy policy
    • Credits
Powered by GitBook
On this page
  • Authentication
  • Headers
  • OpenAPI definition
  • Status codes
  • Units
  1. Tools
  2. API

API Reference

How to make requests against Distance API v2 endpoints

PreviousGetting startedNextdistance/route

Last updated 1 month ago

Authentication

Follow the how to setup your and get your API credentials.

Headers

Name
Value

X-Billing-Token

<your API key>

OpenAPI definition

Status codes

Code
Description

200

Valid request and all locations or waypoints could be geocoded.

400

Invalid request with information about validation.

404

Valid request but not all locations or waypoints could be geocoded.

429

Load balancer rejected the request because too many request in parallel or your usage limits exceeded.

Units

All distances are given in kilometers. To convert distances into miles, they must be multiplied by 0.621371. Maritime distances are also given in nautical miles.

The travel duration for car routing is given in seconds. For maritime routes, which are given in hours duration is calculated with a speed of 20 knots. 20 knots = 20 NM / hour.

getting-started guide
developer account
https://raw.githubusercontent.com/StephanGeorg/distance.tools-public-docs/main/api/openapi.yaml