Skip to main content
All CollectionsIntegrations and EnrichmentsMapbox
Find Distance Between Two Locations with Mapbox
Find Distance Between Two Locations with Mapbox

Given two locations, get the distance and duration between them.

Updated over a week ago

Introduction

This integration leverages Mapbox's Directions API to calculate the distance and estimated travel duration between two specified locations. By utilizing Mapbox's mapping and navigation services, Clay users can efficiently obtain accurate route information. The integration supports various transportation modes and provides essential data for location-based decision-making and analysis within Clay's workflow.

Input

Name

Is Optional

Description

Type

Starting Location

text

Ending Location

text

Mode of Transport

true

The mode of transportation to use when calculating the distance and duration between the two locations. Defaults to driving.

text

Output

Name

Type

Starting Point

object

Ending Point

object

Mode Of Transport

text

Distance In Meters

number

Distance In Miles

number

Duration In Seconds

number

Duration Formatted

text

Did this answer your question?