Meet API v2.0 with UK support 🇬🇧 Try it out
Distance calculations illustration

Calculate Driving Distance and Time at Scale

Calculate driving distance and travel time between thousands of addresses—without
pre-geocoding or complex orchestration.

Geocodio's Distance APIs

Geocodio's suite of Distance APIs let you calculate straight-line (Haversine) and driving distance between addresses or coordinates, whether you need instant results or tens of thousands of calculations processed in the background.

Unlike most distance APIs, you can:

  • Permanently store the results. Build historical datasets and reuse calculations without repeated API calls or attribution requirements.
  • Submit raw addresses directly. No pre-geocoding required. Pass in street addresses and Geocodio geocodes them automatically.

Driving Distance and Time Calculations
Built for Real-World Scale

From one lookup to 50,000 calculations, without orchestration. Geocodio offers three purpose-built endpoints, so you always use the right tool for the job.

/distance

Calculate distance and driving time between one origin and one or many destinations in real time.

Best for: single calculations, interactive applications, and on-demand distance lookups, such as providing ETAs or showing proximity to a place of business

/distance-matrix

Process up to 10,000 distance calculations in a single synchronous request. Get immediate results for moderate-volume distance analysis without managing async workflows.

Best for: mid-volume batch processing with quick turnarounds, such as reporting workflows

/distance-jobs

Submit up to 50,000 calculations in a single request and receive complete results via webhook when processing finishes. No request splitting or result stitching required.

Best for: large-scale analytics and bulk distance analysis, such as compliance reporting and marketing analysis

Distance Radius Made Easy

Every Distance API endpoint supports powerful filtering, sorting, and limiting options.

Only want results within a 30-minute drive? A five-kilometer radius? No problem.

Filter

by maximum or minimum distance

Sort

by distance or duration

Filter

by maximum or minimum drive time

Limit

results to the closest locations

API Requests with CSV Files

Geocodio is built for high-volume distance calculations.

Submit addresses or coordinates directly via API

Process CSVs of origins and destinations via API

Run large async Distance Jobs using CSVs

Download complete results when processing finishes

Considerations When Choosing a Distance API

Geocodio's Distance API was built for distance analytics and large-scale distance calculations. When evaluating distance APIs, consider the following.

Can you store the results?

Many distance APIs prohibit you from permanently storing results.

Geocodio's permissive terms let you store and reuse the results, which can lead to significant savings and less hassle.

Do you have to pre-geocode the addresses?

Some distance APIs require pre-geocoded coordinates.

Geocodio accepts raw addresses directly, removing an entire processing step.

How large of a matrix can you run?

Many distance APIs require complex orchestration to process large batches and limit matrices to 25x25 or less.

Geocodio's Distance Jobs endpoint handles up to 50,000 calculations (223x223) in a single request with automatic webhook notifications.

Is it optimized for analytics or real-time navigation?

Navigation-focused APIs are optimized for real-time traffic and turn-by-turn directions, but prohibit storage of results. This adds cost and complexity for analytics.

Geocodio focuses on distance intelligence for analytics, compliance, and planning, with typical driving times and distances. For analytics, storing results is critical.

How complicated is the pricing?

Distance API pricing varies significantly, with storage prohibitions adding further costs.

Geocodio uses simple credit-based pricing with volume discounts. See the pricing calculator to get estimates based on your usage. Being able to store the results means only having to pay for the data once.

Compare Geocodio to Other Distance APIs

See what Geocodio and other providers charge per distance calculation plus matrix size limits, storage rules, and which distance API services let you keep the results.

Get Started in Minutes

  1. Enable Distance APIs

    Log into your Geocodio dashboard and enable Distance and Distance Jobs for your API key. (They use the same API key as Geocodio's other services.)

  2. Choose your endpoint

    Distance for single or few calculations / Distance Matrix for up to 10,000 calculations / Distance Jobs for up to 50,000 calculations

  3. Make your first request

    Submit addresses or coordinates directly, with no pre-geocoding required. Geocodio handles address standardization and geocoding automatically.

  4. Configure filtering and sorting

    Use built-in parameters to filter by distance and time, sort results, and limit to the closest locations.

Pay only for what you calculate with simple, transparent credits.

See pricing

See the Distance APIs in Action

Frequently Asked Questions

Geocodio offers three endpoints with different scale capabilities: the Distance endpoint for real-time one-to-many calculations, Distance Matrix for up to 10,000 synchronous calculations, and Distance Jobs for up to 50,000 asynchronous calculations per job.

No. Unlike most distance APIs, Geocodio accepts raw addresses directly, with no pre-geocoding required. You can submit street addresses, and Geocodio handles geocoding automatically as part of the distance calculation.

Haversine distance measures the straight-line distance between two points on Earth's surface. Driving distance calculates the actual distance traveled along roads. Geocodio supports both calculation types.

Yes. All Distance API endpoints support filtering by maximum and minimum distance or drive time, sorting by distance or duration, and limiting results to the closest locations, with no post-processing.

Geocodio focuses on distance intelligence for analytics rather than real-time navigation. The API provides predictable, average driving times suited to compliance reporting, logistics planning, and analytical workflows, with permissive terms that let you store and reuse results.

2,500 free credits every day. No credit card required.

Related

Calculate Distance API Costs

Estimate costs for your distance calculation volume.

Learn more

Data Enrichment

Enrich location data with census data, legislative districts, time zones, and more, in the same API call.

Go to Docs

Try Batch Geocoding

Process thousands or millions of addresses via spreadsheet upload or API.

Learn more

A delightfully boring cookie banner

1 optional cookie from us
2 embeds blocked by default
0 ad tracking / data brokers

Geocodio would like to set one first-party cookie to remember how you found this site. Accepting also unblocks embedded videos and calendars, which set their own cookies.

Read the privacy policy