Ascora Booking Forms

Set the Geosearch and Georoute rules on an Ascora booking form

9 min read Ascora booking form

Geosearch offers a customer only the times near visits that are already booked on the Ascora Scheduler. Dynamic travel times add the real drive between visits. This page, headed "Geosearch for Ascora Bookings", sets how a single form uses them.

Before you start

  • Geosearch is turned on for the account first, on the Geosearch page. Until then this page says "Geosearch not turned on" with a Turn on Geosearch link.
  • Without a subscription the page says "Subscription required". On a subscription without the add-on, Turn on Geosearch? is greyed out and reads "Geosearch functions available with the Geosearch plan".
  • Allow dynamic travel times? needs the Georoute plan, and reads "Dynamic travel times available with the Georoute plan" without it. The Geosearch form rules and Georoute rules sections show their fields only once their plan is there.
  • If the form uses distances in miles, set that under Distance units on the form's properties. This page then asks for miles.

Step by step

  1. Open your form from Forms. On the Settings tab, open Geosearch under Bookings setup.
  2. Switch on Turn on Geosearch. Usage charges apply.
  3. Under Home location, search for an address. This is the point empty days and the first drive of the day are measured from.
  4. Set the Maximum allowable searchable distance radius and the Maximum allowable searchable time in minutes.
  5. Choose what happens on Empty visit days.
  6. Optionally switch on Allow dynamic travel times and set the Georoute rules.
  7. Click Save. The page says "Geosearch settings updated."

Beside Save, the page says why it is off: "this form is archived.", "enter a search distance.", "enter a searchable time.", "enter a maximum travel time.", "the minimum travel time cannot be more than the maximum.", "choose a home location, which empty days and travel times are measured from. Or let customers book on days with no visits, and turn dynamic travel times off." or "Ascora has no Activity Type called ... Add it in Ascora, or enter one that exists."

The home location is only asked for when the form needs it: with dynamic travel times on, with travel at both ends on, or with empty days blocked.

What Geosearch counts as a visit

Geosearch reads each staff member's Ascora Scheduler for the days the form can offer. A booking on a job or a quote is a visit, and its site is where it is. Ascora sends each booking with its job's address and coordinates, and a job Ascora has not placed is looked up (see Turn on Geosearch for your Ascora account).

An Activity booking, such as Lunch or Training, has no job and no location, so it is never somewhere to measure from. It still takes up that person's time. The drives Formpiece puts on the Scheduler are Activity bookings too, and are never counted as visits.

A visit whose location cannot be found is ignored when the rules measure distances, so a busy day with unplaced jobs can look emptier than it is.

Team members' bookings count as well as the person who takes the visit.

Geosearch form rules

Home location shows the saved address with a Clear button, and Update home location replaces it. The home location does not apply to time groups, unless dynamic travel times is on. With it on, each staff member's first booking of the day includes the drive from here, and cannot start before their start time plus that drive.

Maximum allowable searchable distance radius is in kilometres, or miles if the form is set to miles. It starts at 50. A time is only offered when an existing visit is within that distance. Distances are measured as the crow flies, so allow extra for the real route.

Maximum allowable searchable time in minutes starts at 120 and is in multiples of the form's time interval. The field rounds up to the next multiple when you leave it. A time is offered when an existing visit is within that many minutes before or after it. Once both are filled in, a sentence under them says exactly what the form will offer.

Empty visit days

When a customer looks at a future date with no visits, choose one:

  • Allow customers to book any time when there is an empty day.
  • Block out all available times that are not near the home location. Bookings will be manually created in Ascora to create availability. Only the first and last times of the day are offered, and only when the home location is within the distance radius.

Treat free stretches like empty days applies the same choice to a time with no visit within the searchable time before or after it, instead of blocking it. A gap of exactly the searchable time counts as enough.

An address that is only served because it is near a region (see Choose which services each region gets) is never offered the "any time" choice. Empty days stay blocked for it.

Non-work events

Empty visit days can ignore events that are not work, such as a lunch break or toolbox meeting. Type the title of an Ascora Activity booking in Activity booking title and click Add title. Titles are not case sensitive, are held to 60 characters, and a form takes up to 30. Enter adds a title without saving the form. With none added, every Activity booking counts as work. Job and quote bookings always count as work.

Dynamic travel times and Georoute rules

Turning on Allow dynamic travel times calculates the travel time between sites when the booking is scheduled. A route request is made for every visit the form checks, even when the customer does not book, so charges rise. See the Usage tab.

  • Add travel at both ends of a booking. Counts the drive after the visit as well as the drive before it. Each end uses the route from or to the nearby job on that side, or the home location when there is none. A time is offered only when both drives fit inside the staff member's hours. Needs a home location.
  • Regions lets you limit travel times to the regions ticked. Addresses elsewhere are booked without them. Leave every region unticked to calculate them for every address. It appears when the form searches by region and has regions.
  • Maximum allowable travel time in minutes is required once dynamic travel times is on, and starts at 60. Only times within it are shown. Travel times are an estimate, and can run longer than the searchable time at peak hours.
  • Minimum travel time allowance in minutes sets a floor. If the calculated drive is shorter, the visit allows this long. It cannot be more than the maximum.
  • Book the drives on the Ascora schedule puts the drive before the visit, and the one after it when both ends are on, on the Ascora Scheduler as Activity bookings titled "Travel to ..." and "Travel from ...", followed by the job's name. They belong to no job and keep the time free, for the same staff member and team as the visit. No extra route usage is charged for them. If the visit is moved from an auth link, its drives are taken off the Scheduler. Dynamic travel times has to be on.
  • Ascora Activity Type for the drives names the Activity Type in Ascora the drives are booked as. Leave it empty to use Travel. Ascora does not make an Activity Type when a booking names one, so it has to exist in Ascora first.

Turning dynamic travel times off also turns off travel at both ends and the Scheduler drives.

A drive Google could not work out, or that the form had no route calls left for, leaves that visit out of the times offered. A drive Google found no road for leaves that visit to the distance rules alone.

The Activity Type check

The page asks Ascora for its Activity Types and checks the name you typed. It says "Ascora has this Activity Type." when it is there. When it is not, it lists the ones Ascora has: "Ascora has no Activity Type with this name, so the drives could not be booked. It has: ..." If Ascora could not be asked, it says "The Activity Types could not be read from Ascora, so this name is not checked." and saves anyway. With Book the drives on the Ascora schedule on, a name Ascora does not have stops Save. The name is saved as Ascora spells it.

How it maps to Ascora

What Formpiece does Ascora call
Reads each person's visits for the days offered GET /Bookings/Bookings, with the job's address and coordinates on each booking
Finds a job's site customer coordinates GET /Customers/Customer/{id} (streetLatitude, streetLongitude)
Checks the Activity Type name GET /Bookings/ActivityTypes
Puts a drive on the Scheduler POST /Bookings/Booking with an activity (the Activity Type, the title and a description of the route), the staff, the start time and the minutes. The notes carry "Made by the Formpiece Ascora booking form" and the form's id, so Formpiece can tell its own drives from an Activity someone titled "Travel ..." by hand.
Takes drives off when a visit is moved POST /Bookings/ArchiveBooking

Times are the company's local time, which is the form's time zone. The Ascora key needs the Schedule read and write scopes the form already uses.

When it goes wrong

A day offers nothing

Use Search Diagnostics to try the form on an address and read the reason for each time.

A visit that looks close is not counted

The radius is a straight line between the addresses. A visit that is a short way across the map can be a long drive, and one that is a long way in a straight line is never counted. Set the radius wider than the drive you will accept. With dynamic travel times on, the maximum travel time rules out long drives. A visit whose job has no address and no coordinates in Ascora is not counted either.

The booking was made but the drives are not on the Scheduler

The booking is still made. The drive is a later step, and a failure is recorded against the booking on its page. The usual cause is the Activity Type: the booking says Ascora has no single Activity Type with that name. Add it in Ascora, or choose another name on this page, then send the booking again. A drive that Ascora booked for only some of the staff is recorded too, and you add it for the others in Ascora.

My change did not reach the form

Saving publishes the form. If the page says the form could not be published, the change is saved, and Publish again on the form sends it.