Gravity Directions

Routes, Distance & Travel Time for Gravity Forms

Build distance calculators, estimate travel time, display routes on interactive maps, and provide turn-by-turn directions using native Gravity Forms fields.

Gravity Geolocation Full Directions System

What Can You Build with Gravity Directions?

Create smart travel calculators and dynamic pricing systems — fully integrated into Gravity Forms

How It Works

From address input to live route calculation — everything happens automatically inside your form, in real time

1. User Enters Addresses
Customers enter pickup and destination addresses using the included Address Fields with autocomplete.
Accurate address selection
Optional current-location icon inside the Address Field
Multi-location support
2. Routes API Calculates Distance & Duration
The system automatically calculates:
Travel distance
Estimated travel duration
Road-based distance and travel time are calculated using Google’s Routes API. Straight-line mode uses a Haversine calculation without making a routing request.
3. Dynamic Fields Update Instantly
Using Dynamic Location Data, distance and duration values can:
Populate hidden fields
Update pricing or calculation fields
Trigger conditional logic
Display results live to users
Results update instantly — no page reload required.
4. Display Route on a Live Map
Show:
Turn-by-turn directions panel
Visual route line
Travel mode selection (driving, walking, etc.)
Optional waypoints
All directly inside the form.

Everything Included in Gravity Directions

Fine-tune how routes are calculated, displayed, and optimized

Full Routing Control — Not Just a Distance Calculator

Fine-tune how routes are calculated, displayed, and optimized

Smart Traffic & Time-Aware Routing

Calculate routes based on departure or arrival time using live traffic data

Show Complete Turn-by-Turn Directions

Give users clear, step-by-step routing without sending them away from your site

Automatic Distance & Duration Calculation

Accurate results the moment addresses are entered

Turn Distance Into Instant Pricing

Send distance or duration values to Gravity Forms Number fields, then use native calculations to create delivery fees, travel costs, or service charges without custom code

Native Gravity Forms Integration

Distance & Duration, Directions, and Directions Panel are native Gravity Forms fields — not shortcodes, widgets, or external embeds

Choose Your Calculation Method

Select the routing engine that fits your workflow

Built for Performance & Reliability

Designed to handle real-time route calculations efficiently — without slowing down your forms

Real-Time, Optimized Requests

Routes are calculated only when needed — no unnecessary API calls.

Controlled Trigger Logic

Choose manual or automatic triggers to control when calculations run.

Smart API Usage

Uses Google’s Routes API efficiently, with support for straight-line fallback when needed.

Flexible Distance-Only Workflows

Use the Distance & Duration field when you need calculated values without displaying a directions panel or route map.

Fully Server & Front-End Compatible

Works with AJAX submissions, conditional logic, and dynamic fields.

Clean Integration with Gravity Forms

No external widgets or embedded iframes — everything runs natively inside your form.

Frequently Asked Questions

What is Gravity Directions?

Gravity Directions calculates driving distance, travel time, and routes between locations directly inside your Gravity Forms using Google Maps.

Can I calculate pricing based on distance?

Yes. Distance and travel duration can automatically populate Gravity Forms fields, making it easy to build delivery fees, travel costs, service charges, and other distance-based pricing workflows.

Can I display turn-by-turn directions?

Yes. Display complete turn-by-turn directions and interactive routes directly inside your Gravity Form using the built-in Directions Panel.

Can I calculate distance without displaying directions?

Yes. You can calculate distance and travel time without displaying the route, making it ideal for pricing calculators and automated workflows.

Does it support live traffic?

Yes. Travel times can be calculated using live traffic conditions, including departure and arrival times, when supported by Google’s Routes API.

Can I customize routing options?

Yes. Configure travel mode, traffic preferences, route options, measurement units, and other routing settings to match your workflow.

Does Gravity Directions include all Gravity Location fields?

Gravity Directions is a focused sibling package rather than an upgrade from Gravity Location. It includes the Address, Geocoder, and Map fields required for route workflows, but not the Coordinates field, standalone Locator Button, or Reset Location Button. Gravity Geolocation Toolkit includes both packages.

Are standalone entry maps included?

Route maps inside the Directions workflow are included. Single Entry Map and Mashup Map for displaying saved Gravity Forms entries require Gravity Geolocation Toolkit or All Access.

Does it work with Gravity Forms calculations and conditional logic?

Yes. Use Dynamic Location Data to populate standard Gravity Forms fields with distance and duration values. Those fields can then be used in calculations, conditional logic, notifications, confirmations, merge tags, and custom workflows.

Do I need a Google Maps API key?

Yes. A Google Maps Platform API key is required to calculate routes, travel distance, and estimated travel time using Google’s routing services.

See It in Action - Try the Demo Now

Launch Demo 🚀

Choose a Gravity Geolocation Plan

Build location-aware forms, route workflows, maps, and searchable directories with Gravity Forms.
Every plan includes one year of updates and support, plus a 14-day money-back guarantee. Upgrade anytime.
Recommended for this solution

Start with Gravity Directions

Everything you need for distance, travel-time, and route workflows, with a clear upgrade path when you need more.

Most popular

Geolocation Toolkit

Complete tools for collecting locations, routing, validation, nearby locations, drawing tools, and maps.

Regular price $119/year
$79for the first year
Use on up to 1 site.
  • Everything in Gravity Location
  • Distance, Duration & Directions
  • Address Validation & Nearby Locations
  • Drawing Tools & Standalone Maps

Best for advanced geolocation workflows.

Everything included

All Access

Includes everything in Geolocation Toolkit plus Gravity Search, delivered together as one plugin.

Regular price $159/year
$119for the first year
Use on up to 1 site.
  • Everything in Geolocation Toolkit
  • Everything in Gravity Search
  • All fields, routes, maps, and search features
  • One plugin and one license

Best for complete geolocation and search projects.