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
  1. Tools
  2. API
  3. API Reference

distance/route/maritime

Calculate maritime sea route distances between points

Previousdistance/route/detailedNextdistance/point

Last updated 1 month ago

Units

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.

  • POSTMaritime route and airline distance
  • Units

Maritime route and airline distance

post

Get maritime route distances. Points will be matched to the nearest sea route vertex.

Authorizations
Body
Responses
200
Valid request and found waypoints
400
Bad Request - Invalid request
404
Not Found - Valid request but not all waypoints were found
post
POST /api/v2/distance/route/maritime HTTP/1.1
Host: api.distance.tools
X-Billing-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 44

{
  "route": [
    {
      "name": "text",
      "country": "text"
    }
  ]
}

No content