What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Yes, this is possible and you will achieve it by using the Driving distance widget, you will find it on this link: http://widgets.jotform.com/widget/driving_distance.
This guide will help you to add the widget to your form: https://www.jotform.com/help/252-How-to-Add-a-Widget-to-your-Form.
Once you have added the widget to your form you will get the settings window, the you need to scroll down and search the option Default Distance Units and set miles as the units, if you want the widget to auto-calculate the distance you will need o mark the option right below the units, if you do not do your users will need to click on the button to calculate the distance.
The result of the distance will be a number that could be used on calculations, in your case to get a total price, to do it you will need to use the Form Calculation widget and you will get this window as soon as you add the widget to your form.
There you will be able to calculate the total to pay based on your price per mile, here is a guide that will help you with calculations as well: https://www.jotform.com/help/259-How-to-Perform-Calculation-in-the-Form.
If you have more questions, let us know and we will be glad to help you.