We think a field service team with its routes in Databricks usually needs a dashboard, not an app. Comparing routes changes no data, and only saving an assignment does. So the first thing we'd check is one recent work order. If it already tells the next shift which depot is taking the call, keep the assignment there and give the team the dashboard for route review. An app earns its cost when the dispatcher has to record which depot takes the call on the same screen where they compared the routes, and that comes with app compute to pay for and a decision about who can change a saved assignment.
We built a Databricks dashboard to compare depot choices at eight Phoenix-area stops and three depots, and an app that reads the same route data. At two of the stops, ranking by modeled drive time picked a different depot than ranking by distance: at Tempe Town Lake, West Mesa's drive was 18.3 seconds shorter than South Tempe's, even though its road route was longer. The dashboard shows that difference. The app saves the assigned depot in a separate table. We haven't tried it with live traffic, because the drive times are modeled.
The longer road had the shorter modeled drive
We used public locations around Phoenix for three depots and eight service stops. For each of the 24 pairs, OSRM modeled a passenger-car trip that gave us the path, the distance along that path and how long the drive might take. The dashboard and the app both read the saved routes. Databricks SQL recomputed direct distance with st_distancesphere and ranked the depots by distance and by modeled duration.
At two stops, the rankings picked different depots. At Tempe Town Lake, South Tempe was 4.284 km away by direct distance and 5.267 km by road. West Mesa's road route was longer at 5.805 km, but OSRM estimated 478.9 seconds for it versus 497.2 for South Tempe.

Route estimates from OSRM/FOSSGIS use road data © OpenStreetMap contributors (Fix the map).
That's enough to change the order in a list. I'd want more evidence before asking a crew to drive from a different depot over a gap that small. The reported times use a fixed driving profile without live traffic. In an actual assignment, the dispatcher still has to consider which crew is free and whether it can make the service window.
What the dispatch dashboard needs
We kept one row per stop and candidate depot, with the direct distance, road distance, modeled time and route geometry. We used one dataset for the dashboard's stop selector, map and comparison table so that a reviewer can see the same depot candidates in both views. A reviewer looking at Tempe Town Lake needs to see both South Tempe and West Mesa, even if the operations team ultimately chooses one of them.
A Databricks AI/BI path map can draw a line from a stored geometry column. We stored the OSRM paths as lines and converted them to geometry for the dashboard. We imported the private dashboard and ran its dataset query in Databricks SQL. It returned a geometry for each of the 24 candidates.

What changes when someone assigns a depot
I'd keep the chosen depot in its own record so the next shift can see the assignment and still review the routes. We built a dashboard to compare the routes and an app that used the same data with an assignment form below the map. The Streamlit app on Databricks reads from the same OSRM route table as the dashboard's AI/BI path map. The assignment record holds the stop, depot, who assigned it and when.
A startup check inside the deployed app saved a West Mesa assignment for Tempe Town Lake. We checked the assignment again through a separate Databricks SQL connection and found the saved row.
Before giving a dispatch team access, I'd use a viewer account and a dispatcher account to check the Save control, then reopen the stop in a fresh session to check the displayed assignment.
Databricks Apps authorization gives the app its own service identity for shared operations. That identity needs access to the route and assignment tables. I'd check the dispatcher's permission when the app receives a save request, since a reader who can open the map may have no reason to change the assignment.
Which interface should the team build
| What the team needs to do | Where I'd put it |
|---|---|
| See where route rankings disagree and review the underlying candidates | AI/BI dashboard |
| Review a route before assigning a crew in an existing work order system | Dashboard for the comparison, existing system for the assignment |
| Choose a depot in the same screen and leave a record the next shift can open | Databricks App with a durable assignment store |
An app brings application code, an authorization policy, deployment and another runtime to own. Databricks bills app compute while it runs based on provisioned capacity. If the app queries a warehouse, track that usage separately when comparing the two options. TechFabric's Databricks Apps field guide explains the runtime, authorization and cost choices in more detail.
Start with a disputed recommendation. Put the route and both rankings on a dashboard and ask the reviewer what they'd do with them. If the answer includes recording an assignment, agree on who can save it and what the next shift should see before building the form.
Frequently asked questions
Can Databricks calculate road travel times?
Databricks SQL can calculate the distance between geographic points. For this comparison, OSRM supplied routes and durations from a road network. The Databricks Routing Accelerator shows how to run OSRM alongside a Databricks workload.
Can a Databricks dashboard show GPS tracks?
A path map can connect ordered longitude and latitude points. If a dataset contains several vehicles or trips, make sure each sequence stays grouped with its own trip and use the timestamp or sequence number for the order.
Does a Databricks App need Lakebase for writeback?
The Databricks Streamlit tutorial shows how an app can update a Unity Catalog table through a SQL warehouse. For a workflow with many concurrent edits to the same work order, I'd evaluate a transactional store separately and decide how to handle conflicting assignments. TechFabric's Lakebase app article walks through keeping an app's own records separate from the analytics it reads.