# Managing transit profiles

URL: https://help.hubhus.com/kb/managing-transit-profiles-for-booking-forms
Category: Calendar and booking / Booking forms
Updated: 2026-11-11T10:54:04.186293+00:00

Summary: Access: Calendar settings → Transit profiles → + New transit profile . Set: name, operable postal codes (all / resource-specific), max driving from base (15 min-8 h), max driving between events, max driving before/after business hours, default event location. Apply to booking forms via the form's Location & transport button, or apply directly to calendar resources via the profile's + Apply button. Edit once → all linked forms and resources update automatically. Profiles in use cannot be deleted until unlinked from all booking forms and resources. Optional: a Transit profile placeholder (Location & transport → Transit profile per booking) picks the profile per booking, e.g. by postal code, and overrides the profiles set on resources and resource tags.

Transit profiles define driving criteria for booking - max travel time from base, between events, and outside business hours. A profile can be applied to booking forms and directly to calendar resources, and a booking form can choose the profile per booking with a placeholder. Create once, apply everywhere instead of duplicating settings.

## 5 settings to configure

1. **Postal codes and max driving from base**. **Bookable in postal codes:** "Resource's operable postal codes only" restricts resources to their configured service area; "Honor operable postal codes" allows wider booking. **Max. driving from base:** Maximum travel time from the resource's base address to the customer location (15 min to 8 h). Resources further away will not appear as available for that booking.
2. **Driving between events**. **Max. driving in between events:** Maximum travel time between two consecutive bookings. If a resource has a booking at 10:00 and this is set to 30 min, Hubhus only offers 11:00 availability if the next customer is within 30 min of the 10:00 appointment location. Set this realistically - too tight prevents useful bookings, too loose leads to late arrivals.
3. **Driving before and after business hours**. **Max. driving before business hours:** Limits how far away the first appointment of the day can be from the resource's base. **Max. driving after business hours:** Same for the last appointment. Example: resource works until 17:00, 60 min limit → last booking must be within 1 hour of their base. Prevents overrun of working hours due to travel.
4. **Applying and managing profiles**. Profiles can be applied in two ways: to a booking form via the form's **Location & transport** button (**Select transit profile**), or directly to calendar resources via **+ Apply** on the profile. The **Used by** column shows how many booking forms and calendar resources use each profile. Update a profile once to propagate changes everywhere it is applied (only affects future bookings - existing events unchanged). Profiles in use cannot be deleted; first unlink from all booking forms and resources.
5. **Choose the profile per booking (optional)**. On booking forms with full address input, click **Location & transport** and fill in **Transit profile placeholder** under **Transit profile per booking**. The placeholder must return the ID or name of one of your transit profiles, e.g. a zone based on the customer's postal code. That profile is then used for all calendar resources in the booking, also those with their own profile or a resource tag's profile. If the result is empty, `default` or not an existing profile, the usual profiles apply.

**Read more**

### Default event locations

The **Default event locations** setting controls how new events are positioned for transit calculation:

- **Use resource's base location** - Events are created at the resource's configured base address. Use this when customers come to your location (showroom, office), so the system uses the base as the event location for transit planning.
- **Don't take transit to those events into account** - Events are created without considering travel time from the previous appointment. Use this for remote meetings, phone calls, or any event where the resource does not physically travel.

### Transit profile per booking

The placeholder is evaluated once for each booking search, both in the booking form and in the Booking API's search endpoints. Use it when the driving limits depend on the customer, e.g. zones by postal code. The booking forms list shows when a form uses the placeholder.

**Postal code lookup** - postal code 2690 uses the profile "Zone 1". Other postal codes return nothing and keep the usual profiles:

```
<hh-data.get key="%booking_postal%">{"2690": "Zone 1"}</hh-data.get>
```

**Postal code range with @if** - postal codes 1000-2999 use "Zone 1", all others keep the usual profiles:

```
@if(%booking_postal% >= 1000 && %booking_postal% <= 2999){Zone 1}@else{default}@endif
```

**Which profile is used** (first match wins):

1. A transit profile sent with a Booking API request ( `booking_location_setting_id`).
2. The transit profile placeholder on the booking form.
3. The calendar resource's own profile or its resource tag's profile.
4. The transit profile selected on the booking form.

**The usual profiles are kept when the placeholder returns**

- nothing (empty)
- `default`
- a value that matches no profile
- a name that several profiles share - use the profile ID instead

**Use the booking address placeholders**. Base the placeholder on `%booking_postal%` or the other booking address placeholders. When the booking creates a new lead, lead field placeholders are still empty when the profile is chosen.

### Common use cases

**Reducing service area for all booking forms at once** If you need to reduce max driving time from 4 hours to 3 hours across all forms, edit the shared transit profile once instead of updating 10+ individual booking forms.

**Different coverage for different service types**

- "Standard installations" → "Standard coverage" profile (2 hours max)
- "Urgent repairs" → "Emergency service" profile (30 minutes max)
- "Specialized services" → "Extended coverage" profile (4+ hours max)

**Seasonal adjustments** During winter, update the transit profile to reduce max driving times (weather conditions). Revert when conditions improve - one edit propagates to all linked booking forms.

### Troubleshooting

**No available times showing**

- Transit criteria may be too restrictive - check if max driving limits are too short
- Verify resources have their base addresses configured (Calendar → Settings → Resources)
- If "Resource's operable postal codes only" is enabled, confirm operable postal codes are set up for each resource
- Try temporarily increasing max driving time to see if times appear

**Wrong resources are being suggested**

- Verify the correct transit profile is selected on the booking form (Location & transport → Select transit profile), and whether the form has a transit profile placeholder
- Check "Max. driving in between events" - if too generous, resources far from the previous appointment may appear
- Verify resource base addresses are accurate

**The booking ignores the transit profile placeholder**

- The result must match a profile ID or name exactly. A typo, or a profile that was renamed or deleted, falls back to the usual profiles without a warning.
- Hubhus does not check placeholders when you rename or delete a profile. Update the placeholder first.
- Two profiles with the same name: use the ID or give them unique names.
- The placeholder reads lead fields: they are empty when the booking creates a new lead. Use the booking address placeholders.
- A Booking API request with `booking_location_setting_id` overrides the placeholder.
- The profile name contains `<`: a value from a form field with `<` does not match it. Rename the profile or use the ID.

**Can't delete a transit profile**

- Check the "Used by" column - profile must be unlinked from all booking forms _and_ calendar resources before deletion
- For booking forms: edit each form's Location & transport settings and select a different profile (or disable transit criteria)
- For resources: click + Apply on the profile and deselect all linked resources

## Related articles

- https://help.hubhus.com/kb/booking-form-shows-no-available-time-slots
- https://help.hubhus.com/kb/calendar-optimization-route-planners
- https://help.hubhus.com/kb/using-route-optimization-to-reorder-calendar-events
- https://help.hubhus.com/kb/how-do-i-filter-resources-or-options-in-booking-forms
- https://help.hubhus.com/kb/dynamic-resource-selection-with-placeholders
- https://help.hubhus.com/kb/understanding-if-else-conditional-logic
- https://help.hubhus.com/kb/why-does-the-booking-form-show-these-times
