Connecting task data to routing
When a task is created (on the web app, in the field app, by import or by API), routing does not know which field is the address, the open time or the weight. The Route mapping of the task type tells it: it links each routing field to a component on the task type’s Initial page. Once mapped, every new task of that task type appears on the Visit page with its routing fields filled in, so you do not type the visit data before each optimization.Required permission:
- View flow
- Edit flow
- Open Workflow › Task Type and open the task type you use for routing.
- Open the Configuration tab and go to Route.
- For each routing field, pick the matching component. Only components on the Initial page can be picked.
- Click Save.
Fields you can map
A field you do not map is simply empty for tasks of that task type. You can still fill it in on the Visit page before optimizing, but those values are temporary and are not saved to the task.
Use cases
1. Planning by zone with visit and vehicle tags
When some vehicles may only serve some areas, for example a fleet split into north and south, combine three things:- Geotagging: draw an area on the map for each zone. Visits inside get the zone’s tag automatically. See Geotagging.
- Visit tag: the tag on the visit, typed by hand or added by geotagging.
- Vehicle tag: the tags on each vehicle, saying which zones it may serve.
- A visit with tags is only served by a vehicle that has all of those tags.
- A visit without tags can be served by any vehicle.

- In Planning › Routing › Configuration › Geotagging, click +, name the zone (for example
south) and draw its area on the map. - In Vehicles, give the same tag to every vehicle of that zone.
- Optimize. Visits and vehicles are matched by their tags.
2. Prioritizing visits
Some visits must come first: a visit with a narrow window, or one that must happen before another. There are two ways: Time window: when the visit can be served. If a customer can only be served from 06:00 to 08:00, set the visit’s Open Time to 06:00 – 08:00. The time window is a hard rule: the visit is never planned outside it. Priority: which visit comes first. A time window only says when a visit can happen, not which comes first. For a real order, for example “serve this before the other visits in its group”, use Priority:- Priority is a whole number from 0 to 100.
- A lower number goes first.
- Visits without a value count as 0.

- Set the visit’s Open Time if it must fall in a window, for example 06:00 – 08:00.
- Give the visits that must go first a low Priority.
- Put related visits in the same Grouped Visit so the priority applies inside that group. See Visit Group.
3. Pickup and delivery
When an order means picking goods up in one place and dropping them in another, both stops must be served by the same vehicle, pickup first. Use Grouped Visit, Priority and capacity values with a sign:
Setup:
- Give both visits the same Grouped Visit, for example
clothing-order-42. - Set Priority
1on the pickup and2on the delivery. The pickup is planned first because a lower number goes first. - Set the capacity to a positive value on the pickup and the same negative value on the delivery. The load on board goes up at the pickup and back down at the delivery. On the result map and Gantt, a down arrow marks negative capacity.
Case study: mixed pickup and delivery
A logistics company runs a vehicle that leaves the warehouse with 5 parcels for morning deliveries. Mid-morning, the dispatcher gets 2 pickups from a vendor that must come back to the warehouse the same day. Without modeling pickups and deliveries together, the dispatcher would have to decide by hand which driver collects the pickups, guess whether the vehicle still has room, and hope the driver does the pickup before the related delivery. With the pattern above (same group, priority1/2, +/- weight), routing handles it:
The dispatcher enters the data once, and gets one mixed route that respects order, capacity and vehicle.
4. Adding a task without changing routes on the road
After you optimize and dispatch a result, every planned visit shows a truck icon on the Visit page (hover it to see the vehicle). It means the visit is already on a route that a driver is driving. When a new task comes in later in the day, you don’t need to plan everything again. Visits with a truck icon keep their vehicle when you optimize again; only the new visits are placed. See Dynamic routing.- Create the new task, with its data complete: name, address, coordinate, open time, and tags if needed.
- On the Visit page, check the visits: those with a truck icon are already on a route; the new one has no icon yet.
- Click Optimize again. Dispatched visits stay on their vehicles and the new visit goes where it fits best.
- Check the result and dispatch it.
5. Cold chain: temperature-controlled delivery
Cold chain deliveries (frozen and chilled food, fresh produce, medicines) add two hard requirements to a normal route: the goods must travel on a refrigerated vehicle, and they must arrive within a tight time window before they warm up. You model both with what you have already seen:Cold chain routing needs no special feature: it combines tag matching, a capacity constraint and time windows. Map these fields in the task type’s Route mapping so every cold chain task is ready to optimize.
data object of the record, for example "data": { "temperature": 4, "engine": "on", "status": "safe" }). Use whatever keys fit your operation, and send a new record on each interval so the values stay current. Routing plans and orders the route; the readings come from the device, not from the task type.
Case study: frozen food distributor
A distributor delivers frozen goods across the city from one cold-storage warehouse. It has three needs a normal route cannot express:- Only 2 of its 5 vehicles are refrigerated, so frozen orders must never go on a dry truck.
- Each refrigerated vehicle has a limited chilled compartment.
- Every customer has a morning delivery window.
frozen tag on the visits and the refrigerated vehicles, a chilled_volume capacity constraint and delivery windows, routing handles all three:
The dispatcher plans one set of routes that respects vehicle type, capacity and delivery windows.
Frequently asked questions
Do I have to map every field in Route? No. Map only the fields you want filled in automatically. You can fill in the others on the Visit page before optimizing. What if a visit has a tag that no vehicle has? The visit is not given to any vehicle and appears in the dropped visits. See Dropped Visit. Can two visits of the same group go on different vehicles? No. All visits of a group go on the same vehicle. Does Priority work without a visit group? Priority matters most inside a group. Without a group, the visit is planned according to its time window and the overall route cost. For a strict order, use a group together with Priority. Will optimizing again after dispatch change routes already on the road? No. Visits with a truck icon keep their vehicle; only new visits are placed. How do I make sure frozen orders only go on refrigerated vehicles? Give the same tag (for examplefrozen) to the cold chain visits and only to the refrigerated vehicles. Add a capacity constraint for the chilled compartment and a time window for the delivery. See Cold chain.