How to calculate price based on the mileage returned by Driving Distance calculator?

  • fortworthcouriers
    Asked on December 22, 2014 at 2:02 AM

    What I'm trying to do with my mileage form, and I don't know if it's something I can do in this environment, is have the user enter two address and then the driving miles be returned. Then, I want to use the mileage to calculate a cab fee which will depend on user input conditionals and the mileage.

  • Welvin Support Team Lead
    Replied on December 22, 2014 at 8:15 AM

    Hi,

    I have just tried it and I don't think that is possible. A workaround would be to add an input field for the user to manually input the mileage generated by the widget then have the calculation based on this input field. This should be simple and easy to manage.

    Let us know if you need help with it.

    Thanks

  • fortworthcouriers
    Replied on December 22, 2014 at 4:17 PM

    Well. what is the basic syntax for passing the picking up and delivery address over to Google maps? Once it has those,. it would seem like it's just a matter of capturing the returned value.

  • Carina
    Replied on December 22, 2014 at 5:37 PM

    I will investigate further this situation and will get back to  you later.

    If you need further support or clarification please let us know as we are here to help.

  • Kom
    Replied on July 29, 2016 at 12:31 AM

    I need to do this too; get the data from the address fields. The widget is just about useless for cab fare applications if you can't get the addresses in an email.

  • Welvin Support Team Lead
    Replied on July 29, 2016 at 1:40 AM

    @kom: I see that you have created a thread for your inquiry. You will be answered there. 

    https://www.jotform.com/answers/893442-Access-address-data-with-mileage-calculator-