Skip to main content

What this tool does

The Distance Calculator computes the distance between two locations for each record in your Airtable table. It writes the distance (and optionally travel time) back to Airtable fields. Use it for route optimization, territory analysis, delivery cost estimation, or filtering records by proximity.

Settings reference

Source

SettingDescription
Source tableThe table with records to calculate distances for.
Calculation methodStraight-line (Haversine), Driving, Walking, Bicycling, or Transit. Google Maps methods also provide travel time.

Location input

SettingDescription
Input modeText addresses or Lat/Lng coordinates.
Origin address fieldA text or Formula field with the origin address. (Address mode)
Origin latitude / longitudeNumber fields with origin coordinates. (Coordinate mode)
Destination address fieldA text or Formula field with the destination address. (Address mode)
Destination latitude / longitudeNumber fields with destination coordinates. (Coordinate mode)

Output

SettingDescription
Distance output fieldA Number field for the calculated distance.
Distance unitKilometers or Miles.
Duration output fieldA Number field for travel time in minutes. Only available for Google Maps methods.

API configuration

SettingDescription
Use your own Google Maps API keyWithout your own key, limited to 100 API calls per run. Hidden if using Haversine with coordinates.
Google Maps API keyYour API key. Only shown when using your own key.

Calculation methods

MethodWhat it calculatesTravel timeAPI key needed
Straight-line (Haversine)Straight-line distance between two pointsNoNo (coordinates mode)
DrivingRoad distance and driving timeYesYes (or 100-record limit)
WalkingWalking distance and timeYesYes (or 100-record limit)
BicyclingCycling distance and timeYesYes (or 100-record limit)
TransitPublic transit distance and timeYesYes (or 100-record limit)

Using the preview

The Distance Calculator has a preview panel that shows a sample of records with the computed distances. Use it to verify your configuration before running on the full table.

Common questions

Use Haversine when you only need straight-line distance and don’t need travel time. It is fast, accurate for geographic distance, and doesn’t require an API key when using coordinates. Use Google Maps methods when you need real road-based distances or travel durations.
Yes. When Input mode is set to Text addresses and you choose a Google Maps method, the tool geocodes the addresses internally as part of the distance calculation. You don’t need to run the Geocoder first.
Travel time is stored in minutes as a number. Use an Airtable formula field to convert to hours or display in a friendlier format.