How to calculate distance and drive time to a contact in GoHighLevel

By Jake Marsh · Updated

To get the distance from your business to a contact in GoHighLevel, add Zonewell's Distance to contact action to a workflow. Choose Straight line or Driving, and the action returns miles, kilometers and, for driving, drive_minutes. Fill in Max miles and it also returns within_limit as yes or no, which an If/Else can branch on.

Where the distance starts

Distances start from Zonewell's starting address. It defaults to the sub-account's business address; change it in Zonewell under Settings. To measure from somewhere else for one workflow, such as a second branch or a warehouse, type that address in the action's Origin address field.

Set up the action

  1. Pick the trigger that runs once the contact has an address: a quote form, a booked appointment, a tag.
  2. Add Distance to contact (search "Zonewell" in the action list).
  3. Choose the Mode.
    • Straight line measures as the crow flies. It uses no extra lookup beyond placing the contact.
    • Driving measures the road route and the drive time. It uses 2 lookups.
  4. Optional: Max miles, for example 30.
  5. Optional: Address, if the job address is in a custom field instead of the contact's main address.

The action returns:

OutputExampleUse it for
miles17.6Messages, notes, quote amounts
kilometers28.3Same, for metric
drive_minutes26Arrival windows (driving only)
within_limityesAn If/Else on a hard limit
origin1500 Marilla St, Dallas, TX 75201Checking which starting point was used
statusokCatching missing or unmatched addresses

Three ways to use it

A travel fee past a set distance

Set Max miles to the distance your base price covers. In the If/Else, within_limit is yes gets the standard quote; no gets a quote template or message that adds your travel fee and mentions the miles.

Turn down jobs that are too far

Use Driving with Max miles at your crew's limit, and send the no branch a polite decline or a referral.

Tell the customer how long the drive is

Put drive_minutes in the confirmation text: "Your technician is about 26 minutes away from our shop." For live arrival texts from the technician's phone, see Wrenchwell.

Straight line or driving?

Straight line is enough for a rough cutoff and costs nothing extra once the contact is mapped. Driving is better where rivers, lakes or highways make the road distance much longer than the straight one, and when you need minutes rather than miles. If a route can't be found the action returns no_route.

What it costs

Zonewell is $49 a month or $490 a year per sub-account after a 14-day free trial. The plan includes 5,000 lookups a month; a driving distance uses 2. Details and the install link are on the Zonewell page.

Zonewell: Contact Map and Service Areas

See every contact and deal on a map, and route leads by service area. $49 a month or $490 a year per business account.


Questions

Can I measure between two addresses that aren't the business?

Yes. Fill in both Origin address and Address and the action measures between them.

Is the distance saved on the contact?

The action returns the values to the workflow. To keep them, use an Update Contact Field step with miles or drive_minutes, or run Check service area with Save to contact fields on to store Zonewell Miles to Area.

What if the contact has no address?

The action returns no_address. Branch on status first so those contacts go to a person instead of the "too far" path.


More Zonewell guides


More HighLevel guides