Digital price estimates are a great way to give instant gratification and encourage customers to use your service over your competition.
This guide covers setting up a price estimator based on distance. Our initial setup was for a Courier, but it could also be used to estimate the price for Taxi and Bus rides.
Please note, this guide requires use of a paid plugin.
1. Requirements
Before you get started, here are a list of things you’ll need for this project:
Wordpress Website
The plugin used only currently supports WordPress. If you don't have a WordPress website, we offer competitive packages, go check them out!
Google Cloud Platform Account
Alongside having a normal Google account, you'll need a Google Cloud Platform account with billing enabled. Click the link below if you don't already have this:
WP Cost Estimation Plugin
You’ll need to install this plugin onto your WordPress site. If you’re unsure how to do this, please consult this guide
Once you have all of the above, let’s get started!
2. Get your Google API Key
The Plugin uses Google APIs to determine the distance between the locations. The plugin will need access to several APIs to function properly.
If you are unsure how to use the Google Cloud Platform service, please consult this guide.
First you’ll need to create a project, if you have never done this before and have an active account, clicking here should prompt you to create one.
Although the plugin doesn’t have documentation on which APIs are needed, we’ve found that using the below APIs works fine. These APIs need to be enabled in the API Library for your project inside Google Cloud Platform.

Maps Javascript API

Places API

Directions API
Once this is done you will need to create Credentials for your project, which should then give you an API key. Make a note of this API key as you will need to input it into the Plugin. It’s recommended you also set up restrictions inside the API key to ensure only your website can make requests.
3. Set up the Plugin
Once here, press on ‘Add a new form’. This will then open the dashboard. Scroll down to the see the settings for the form.
We encourage you to run through the settings and configure it to suit your needs. Here are the settings we’ve changed but you may want it to work differently:
Have a poke around!
Don’t just trust us! Have a look through the settings tabs and tweak whatever you feel is necessary. Almost all of them are easy to understand and modify.
4. Create the form
Once the settings are done, we need to build the form. This blog only covers setting up a simple distance cost estimation, but the plugin does have a plethora of other useful features as detailed by their site.
4.4 Edit the component
Add a title and small description.
The Title is what will appear when the user hovers over the step and in the final summary. The small description appears beneath the field when the user is filling out the estimate.
I entered ‘From’ in both fields.
In the ‘Type of Information’ field, select ‘Address’. Select ‘Yes’ in the ‘Autocomplete’ Field.
Press ‘Save’ at the bottom.
Take a breather!
If you’ve done everything correctly, you should be left with a page that looks like this
At this step I like the users to move to another step before selecting their vehicle type, but if you want all of the questions to appear on the same page, you can skip the next step.
4.12 Adding Conditions (2)
Press ‘Add a condition’ and a drop-down will appear in the table beneath, select the ‘Element’ field and change it to another of your vehicles, then in the ‘condition’ field select ‘Is unselected’.
f you have more than two vehicles, repeat this for all of the other vehicles.
Congrats!
Your form is now done. All that is left to do is embed it on the WordPress page.
5. Embed the Form
The form is now live and is able to take estimates. You should be notified via email whenever a customer fills in the form. You can also add a step to collect more detailed contact information, or add notes regarding the booking, but the customer email will be collected by default so we’ve just left it as it is.