How to Add and Set Up Driving Distance Widget on Your Form

April 9, 2026

Jotform helps you quickly calculate driving distance between two locations with the Driving Distance widget, which lets you set a starting city and allows users to enter a destination to automatically display the distance. This makes it easier to handle travel, delivery, or service-related calculations without manual work.

Here are a few ways to use it:

  • Calculate driving distance between two cities.
  • Plan trips or travel routes.
  • Estimate fares for taxi or delivery services.
  • Collect location-based data more efficiently.

Whether you’re starting fresh or updating a form, adding and setting up the Driving Distance widget takes only a few steps. Here’s a quick how-to:

  1. In Form Builder, click on Add Element on the left side of the page.
Form Builder showing Add Element button on the left side in Jotform
  1. Now, in the Form Elements menu, under the Widgets tab, search for Driving Distance and click on it. Or, just drag and drop it to where you want it to be on your form.
Form Elements Widgets tab showing Driving Distance widget search and selection in Jotform
  1. Next, in the Widget Settings menu that opens on the right side of the page, under the General tab, you’ll see this list of settings you can configure:
    • Originating Location — Set the starting point for distance calculations.
    • Default Distance Units — Choose whether to display distances in kilometers or miles.
    • Auto Calculate (Optional) — Automatically calculate the distance once the destination is entered.
    • Hide Units Settings — Show or hide the unit selection (kilometers or miles) on the form.
    • Label for (From) field — Customize the label for the starting location field.
Widget Settings General tab showing Originating Location and distance settings in Jotform
  1. Then, scroll down to the bottom and continue to set up these settings:
    • Label for (To) field Customize the label for the destination field.
    • Label for (Distance) — Set the label for the calculated distance.
    • Label for (Duration) — Set the label for the estimated travel time.
    • Places API Key — Enter your Google Maps API key for location autocomplete. Make sure it is enabled for the Places API and Maps JavaScript API.
    • Distance Matrix Key — Enter your Google Maps API key for distance calculation. Make sure it is enabled for the Distance Matrix API and Routes API.
  2. Once everything’s set, click on Update.
Widget Settings General tab showing label fields API keys and Update button in Jotform

That’s it. Now you’ve added and set up the GeoComplete widget on your form.

Form Builder showing GeoComplete widget added to the form in Jotform

Note

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Podo Comment Be the first to comment.
Still have unanswered questions?

We’re here for you 24/7, anytime you need us day or night. Have a question or need a hand with something? Our team is always ready to help out.