Place Question

Add a field to pick a location and potentially get distance between entered place and origin location.

Options

  • Title: Provide a title or question to the place question, setting title type and toggle “Title is visible?” to change the visibility on the calculator.
  • Add tooltip: Toggle this option if you want to add a tooltip to the question.
  • Description: Can add a description under the title or question. Allow using markdown markups to format.
  • Placeholder: Set an example or a description on the answer field to help users.
  • Restrict to countries: Toggle to select up to five countries on which you want to restrict the result.
  • Use origin place: Toggle to add an origin location to calculate the distance between a selected place and the user’s input.
  • Is this question required?: Toggle if you want to make this place question mandatory required to answer.
  • Show/Hide Logic: Toggle this if you want to control if this question is shown or hidden under certain circumstances.
    • Visibility formula: If the result of the formula is TRUE or a number above 0. The question is visible. If the result is FALSE or 0, it’s hidden.

Usage in calculations

  • If an origin place is added, it question will return a distance or driving duration between those two places (origin and customer answer address).
  • You can change to the imperial or metric system in settings. Let's say you want to add display the number of miles between two points. All you have to do is QX * 0.000189393939. It's also easy for kilometers: QX / 1000.
  • If you want to return the driving duration, you can do that too: QX{duration}. The return value is seconds, so if you charge 80 USD per hour, the formula would be something like this: QX{duration} / 60 / 60 * 80.

See place question in action

The template below demonstrates the use of our distance functions.

How to retrieve place details

The place element is packed with data that you can extract separately. Here are the formulas you can use (assuming QA is the reference of your place question):

  • QA_route will return the street
  • QA_street_number will return the street number
  • QA_locality will return the city
  • QA_sublocality will return the additional information associated with the location, typically defined at the city or town level (such as district or neighborhood)
  • QA_postal_code will return the postal or zip code
  • QA_province will return the region
  • QA_country will return the country
  • QA_lat or QA_latitude will return the latitude
  • QA_lng or QA_longitude will return the longitude
ConvertCalculator Icon

The and