Distance & Directions Calculator for Ninja Forms

Calculate travel distance, driving time, routes, and dynamic pricing directly inside your Ninja Forms using Google Maps.

Ninja Forms Geolocation Directions System

What Can You Build with Distance & Directions?

Build travel calculators, delivery estimators, booking forms, and distance-based pricing workflows directly in Ninja Forms.

How It Works

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

1. User Enters Addresses
Users enter origin and destination addresses using Ninja Geolocation address fields with Google Places autocomplete.
Accurate address selection
Optional locator button
Multi-location support
2. Routes API Calculates Distance & Duration
The system automatically calculates:
Driving distance
Travel distance
Route information
All powered by Google’s Routes API in real time.
3. Dynamic Fields Update Instantly
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.

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

Automatically calculate delivery fees, travel costs, or service charges — no custom code required

Built for Ninja Forms

Distance, Directions, and Directions Panel integrate directly into Ninja Forms without requiring shortcodes or embedded maps.

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.

Batch-Friendly Architecture

Distance-only calculations (Matrix mode) reduce load for pricing workflows.

Built for Front-End & Server Workflows

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

Native Ninja Forms Integration

No external widgets or embedded iframes — Everything runs directly inside your Ninja Form without external widgets or embedded pages.

Frequently Asked Questions

What is the Distance & Directions Calculator?

Calculate driving distance, travel time, and routes between addresses directly inside your Ninja Forms using Google Maps.

Can I calculate pricing based on distance?

Yes. Distance and travel duration can automatically populate fields used in calculations, allowing you to build delivery fees, travel costs, service charges, and similar pricing workflows.

Can I display turn-by-turn directions?

Yes. Display complete turn-by-turn directions and interactive routes directly within your Ninja Form.

Can I calculate distance without displaying directions?

Yes. Distance-only calculations are available using the Google Distance Matrix service, making them ideal for pricing and estimation workflows.

Does it support live traffic?

Yes. Travel times can be calculated using real-time traffic data, including departure and arrival times when supported by the Google Routes API.

Can I choose different routing options?

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

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.

Choose Your Plan to Unlock the Full Potential of Gravity Forms

Flexible options designed to suit your needs, with all the powerful geolocation tools included in every plan.

Personal

normally $59
$55
.00

/Year
Billed annually at normal price
  • 1 Site
  • Full Access to All Features
  • 1 Year Support & Updates
  • Risk-Free for 14 Days
Buy NowBuy Now
Best Deal

Business

normally $139
$99.00

/Year
Billed annually at normal price
  • 3 Sites
  • Full Access to All Features
  • 1 Year Support & Updates
  • Risk-Free for 14 Days
Buy NowBuy Now

Agency

normally $199
$149.00

/Year
Billed annually at normal price
  • 20 Sites
  • Full Access to All Features
  • 1 Year Support & Updates
  • Risk-Free for 14 Days
Buy NowBuy Now
All purchases are securely handled through GEO my WP, our parent platform, where you’ll manage your account, access support, and receive updates.
Upgrade or cancel your plan anytime. Introductory pricing applies for the first year, with renewals billed at standard rates. Every plan includes ongoing updates, and premium support—backed by our 14-day money-back guarantee.