Summer Sale: Save 20% on any WS Form edition CODE: SUMMER20 View Pricing
Google Directions
Built-In

Google Directions

Retrieve route distance, duration, and map display in your forms.

How to Add Google Directions to Forms in WordPress

Add route details and map output to your forms

Google Directions in WS Form lets you retrieve route information in forms in WordPress. Set a start and end location, and the Google Routing field can return route distance, duration, summary, and the latitude and longitude of the start and end locations.

Route information is requested when the start and end locations are completed or changed. You can show the route details in the Google Routing field itself, hide the field if it is not needed, or map routing components to other form fields.

The field can also show the route on a WS Form Google Map field. It works with Google Address fields for easier location selection and can be used with Conditional Logic, Calculated Fields, and E-Commerce Fields.

  • Route details

    Retrieve route distance, duration, summary, and start and end latitude and longitude.

  • Map display

    Show the calculated route on a WS Form Google Map field.

  • Flexible field mapping

    Map routing components to one or many fields on your form.

Real Customer Reviews

Trusted by thousands of WordPress professionals.

  • Highly recommend their products and the team. Keep up the good work guys!

    leesacabuconz
  • WS Forms pretty much has you covered for any situation you can think of while integrating with all the 3rd party services clients use.

    babeard1
  • Very functional and highly customizable, excellent support also.

    joekercom

Frequently Asked Questions

How do I integrate WordPress with Google Directions using WS Form?

Add a Google Routing field to your form, choose the fields to use for the start and end locations, and map any routing components you want to use. For setup details, see Google Routing Field.

What information can the Google Routing field return?

It can return route distance, route duration, a route summary, and the latitude and longitude of the start and end locations.

When is route information calculated?

Route information is requested each time the start and end locations are completed or changed.

Can I show the route on a map?

Yes. The route can be shown on a WS Form Google Map field.

Which fields can I use for the start and end locations?

You can use Google Address, Text, Text Area, Number, Select, Checkbox, Radio, or Hidden fields.

Can I map route data to other fields?

Yes. Each Google Routing component can be mapped to one or many fields on your form.

Get This Integration

View Editions →

Built into WS Form PRO and available with every PRO edition.