PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Auto generating milage cost based on zip cde

  1. I'd like to be able to calculate milage costs by having a zip code or address field in my form. I have two basic areas (New Orleans and Northwest Mississippi) where I would not like to charge a travel rate, but then all other travel I would want to generate a charge based on how far away the location is from my Mississippi address. Is this possible?

    Posted 7 years ago on Saturday January 12, 2013 | Permalink
  2. Sure, it's possible. What sort of database or service are you using to determine the distance between zip codes? You will need to lookup the distance between the zip code entered and your zip code, then perform a calculation and figure the charge based on that mileage.

    Posted 7 years ago on Sunday January 13, 2013 | Permalink
  3. I have no idea how to even get started on this. I guess i would use google maps or something. I have no idea what my options are.

    Posted 7 years ago on Sunday January 13, 2013 | Permalink
  4. Please do a little more research on how you are going to calculate the difference between the two zip codes. Once you have that information, we can help you with the Gravity Forms portion of it. We don't have enough information yet to be able to help you.

    Here is one web page which will provide the information.

    You will need something like that, but it will need to be a service you can query or a database you can lookup the values in.

    Posted 7 years ago on Sunday January 13, 2013 | Permalink
  5. Thank you. This is helpful. i honestly have no idea where to start, so I'll dig in at the link you suggested.

    Posted 7 years ago on Monday January 14, 2013 | Permalink
  6. If you can determine how to get the information regarding the distance between two zip codes, we can probably help you with the rest.

    Posted 7 years ago on Tuesday January 15, 2013 | Permalink
  7. Chris, I have a similar request from a client (provide a quote based on the entry of two zip codes). Here's the service I thought of using:

    The existing form doesn't have this functionality, but this is the company:

    Was thinking of probably splitting the whole thing into two forms; the first would collect basic information and allow us to collect user info, and then the second would display the quote (passed via GET, I'd think) and allow the user to accept it.

    If you have a way to help me through the ZIP code portion of this, I'd be happy to write the whole thing up for future reference (I found a few related questions on here).

    Posted 7 years ago on Tuesday July 9, 2013 | Permalink
  8. Richard Vav

    If you still require assistance with this please open a new support ticket or a priority support ticket if you are a developer license holder. Thank you.

    Posted 7 years ago on Thursday July 25, 2013 | Permalink

This topic has been resolved and has been closed to new replies.