Warp

Plan a technician's day from the overdue customers on a map, in Filament

4 min read

A maintenance company services air conditioning and boilers for about 1,500 customers in London. Each contract says how often: every 30 days for some, every 90 for others. The dispatcher's question every Friday is the same: who is overdue, and who can go there on Monday? The customer table can be sorted by "last visit", but a sorted table does not show that six of the overdue customers are on the same three streets in Marylebone.

This article answers that question with Warp Map: the customers on a map, coloured by when their next visit is due, a selection drawn around one neighbourhood, a route for a technician's Monday, and the best order worked out with the arrival time at each stop. All pictures are from the live demo.

The scene: only the overdue customers

The map page shows every customer and lead. Under Visits due, the dispatcher keeps only Overdue: 233 customers turn red, and the rest disappear.

The Warp Map page: on the left a search box, the counts of customers and leads, and Visits due with Overdue 233, Due soon, Not due yet and No visit cycle; on the right a map of Marylebone with only the overdue customers as red dots
The overdue customers around Marylebone. "Due soon" (amber) and "Not due yet" (green) are one click away.

Step 1: put your model on the map

The customers are an ordinary Eloquent model with latitude and longitude columns. HasLocation and a mapLocation() tell Warp Map how to show them. This is the demo's customer, slightly shortened:

use Qalainau\FilamentWarpMap\Concerns\HasLocation;
use Qalainau\FilamentWarpMap\MapLocation;

class Customer extends Model
{
    use HasLocation;

    public static function mapLocation(): MapLocation
    {
        return MapLocation::make()
            ->latitude('lat')
            ->longitude('lng')
            ->address(fn (Customer $record) => "{$record->street}, {$record->city} {$record->postcode}", ['street', 'city', 'postcode'])
            ->title('name')
            // How long a service visit takes, and when the place is open
            ->visitMinutes(fn (Customer $record) => $record->service_minutes)
            ->visitWindow(fn (Customer $record) => $record->opens_at ? [$record->opens_at, $record->closes_at] : null)
            // Serviced every 30 or 90 days: "due soon" starts 7 days before
            ->visitEvery('visit_every_days', soon: 7);
    }
}

The plugin is registered with the models to show and the people who visit them:

FilamentWarpMapPlugin::make()
    ->locations([Customer::class, Lead::class])
    ->people(Technician::class, title: 'name', home: fn (Technician $t) => [$t->home_lat, $t->home_lng, $t->home_address], color: 'color')

The last visit comes from the routes themselves: when a technician marks a visit Done on their phone, the customer turns green. No column to keep up to date.

Step 2: draw around a neighbourhood

The dispatcher searches for one customer by name, Quay Care Home, then presses Select an area and draws around the streets near it. Ten overdue customers are selected and listed on the left.

10 selected customers listed on the left, including Chapel Workshop, Crown Café, Abbey Gym, Ivy Nursery, York Restaurant and Quay Care Home, with buttons Add to a route, Share between people, Put in a territory, Download CSV and Clear; on the map the ten red dots are ringed
Ten overdue customers, a few streets apart.

Step 3: add them to Monday's route

Add to a route asks for the day and the person. Maya Patel has nothing on Monday yet.

The window Add 10 places to a route, with the date Nov 30, 2026 and the person Maya Patel
Ten places, Monday the 30th, Maya Patel.
Draw, choose the day and the person, add.

The Routes page opens on Maya's Monday. The visits are in the order they were added, and the line crosses itself: 10 visits, 22 miles, back at 16:40.

The Routes page on 11/30/2026: Maya Patel has 10 visits, 22 mi, back 16:40; on the map her route zigzags across Marylebone with crossing lines
Added as selected: the order makes no sense yet.

Step 4: best order

Best order works out the order with the least driving that still reaches every customer within their opening hours. Being on time beats driving less: an order that is late somewhere never wins over one that is not.

After Best order: the same 10 visits numbered 1 to 10 in a clean loop through Marylebone; Maya Patel 10 visits, 20 mi, back 16:36
The same ten visits in a sensible loop: 20 miles, back at 16:36.

Under the map, each visit has its arrival time, the time there and the opening hours, with a badge when Maya would have to wait for a place to open or would arrive too late.

The list of Maya's visits: leaves at 08:00, then the first six visits with their arrival times, time on site and opening hours
The day, stop by stop. Visits can still be dragged up or down; the times update at once.

The order is worked out in PHP, without an external service: about 50 visits take a second or two, and the same input always gives the same order. When Maya is happy with it, Confirm the route locks it, and she sees it on her phone in My route.

Other scenes

  • Several technicians: Share between people shares a selection between several people for a day, as a proposal you can adopt or discard.
  • Territories: draw or import the areas each technician covers, and try a new split in a plan before you use it.
  • Sales visits: leads on the same map, filtered by stage.
  • With Warp Scheduler: travel time between jobs on the schedule, and "order this day" from the calendar.

Limits worth knowing

  • Distances are straight-line estimates until you set a routing service: your own OSRM server or Google. (The demo uses its own OSRM.)
  • A place with an address but no position is not on the map until it is geocoded; the map says how many there are.
  • The best order is very good but not proven to be the best possible. You can always drag a visit.

Try it

Open the map demo, keep only Overdue, press Select an area and draw around a few red dots. Add them to someone's route and press Best order. No sign-up, and the data is reset every hour.

More from the blog

See who is free next week and book them, in Filament

An agency manager needs 40 hours for a project that starts Monday. The planner shows only the people who have the time, the booking is a drag, and the overbooked project manager gets a fix in two clicks.

Laravel Rust vs Laravel Go vs Laravel PHP: The Complete Real-World Benchmark Guide

We benchmarked Laravel Rust, Laravel Go v0.1.0, and Laravel PHP (FPM, FrankenPHP, Swoole, Workerman) across 8 real workloads on the exact same machine — from 1,000-user spikes and heavy ORM to 100k-row deep pagination. Continuously updated as new tests land.

Work through support tickets without leaving the list, in Filament

A support agent opens a ticket, assigns it, sets it to pending and moves on to the next one with the arrow key. The list stays on the left; the View and Edit pages you already have open on the right.

Filament + AI coding tips, by email

How to fit Warp plugins into your own app and pair them with Claude Code or Cursor: prompts that work, mistakes AI makes, real examples. Once or twice a month. Unsubscribe anytime.

Ask us anything about Warp

No email address or sign-up needed.

We read every question and answer here on the site, usually within a day. Others see your question after we have checked it.

What's stopping you from using Warp's plugins?

One question. We read every answer, and it decides what we build next. It is not shown on the site.

What's stopping you from using Warp's plugins?