Delivery zone and territory editing for logistics

Divide a city into courier zones, assign districts to depots and rebalance territories by moving one shared line, without opening a gap between two zones.

Depot WestDepot Eastshared edge

At a glance

vectorstream is a geometry editor for web maps that stores the border between neighbouring zones once. Logistics and delivery teams use it to maintain delivery areas, courier and last-mile zones, depot catchments and service territories that must tile without gaps or overlaps: moving the line between two zones gives one zone more streets and the other fewer in the same edit. Zones import with a geometry check and export as GeoJSON to routing, dispatch or order systems.

Editing model
Topology: shared borders are stored once
Map libraries
Leaflet, OpenLayers, MapLibre GL
Data
GeoJSON import with geometry check, GeoJSON export
Status
Pre-release, no package published yet

Use cases

Territory work for delivery networks

01

Courier and last-mile zones

A city is divided into zones so that each courier or each route has a defined patch of streets. When order volumes shift, one zone grows too big and its neighbour too small, and the fix is to move the line between them.

  • Move a zone border to rebalance two neighbours
  • Split a busy zone in two between two of its corners
  • Merge two quiet zones with union
  • Trace a new zone along existing zone borders
  • Snap to existing corners, or hold Alt to place a point freely
02

Depot catchments and service territories

Each depot, hub or store serves a catchment, and the catchments together cover the whole service region. Opening a new depot means carving its catchment out of the ones around it while the region stays covered without gaps.

  • Split pieces off neighbouring catchments, then merge them
  • Keep catchments, zones and depots in a layer tree
  • Mark depots and hubs with markers
  • Label each territory with its code
  • Lasso-select several catchments at once
03

Delivery area edges and exclusions

The outer edge of a delivery area often follows a ring road or a river, and some ground along that edge is not served, such as an industrial estate or a closed campus on the river bank. That ground is taken off with the difference tool, and a strip along the edge is cut off when the service boundary is pulled in.

  • Take unserved ground off the edge with difference
  • Cut a strip off the edge of the delivery area
  • Simplify an over-detailed service boundary
  • Undo each change back to the exact previous state

Why topology

Why delivery territories need topology

Coverage without slivers

Zones drawn as separate polygons leave thin gaps where nobody delivers and thin overlaps where two couriers do. vectorstream stores each zone border once, so adjoining zones always meet on the same line.

Rebalance, compare, go back

Rebalancing is trial and error. Exact undo restores every zone an edit touched, so a planner can try a new split before the busy season and step back to the previous layout without redrawing it.

Plain data for routing and dispatch

Routing, dispatch and order systems each keep their own copy of the territories. vectorstream reads GeoJSON with a geometry check and writes GeoJSON, so the same polygons reach all of them.

How it works

How a network planning team uses it

  1. Step 01

    Load the territories

    Import zones, catchments and depot locations as GeoJSON. The geometry check reports broken polygons.

  2. Step 02

    Rebalance the zones

    Move shared borders, split overloaded zones and merge quiet ones.

  3. Step 03

    Plan the new depot

    Split pieces off the neighbouring catchments, merge them into one catchment and place the depot marker.

  4. Step 04

    Send zones to the systems

    Export the territories as GeoJSON for routing, dispatch and order management.

FAQ

Delivery and logistics questions

Can vectorstream keep delivery zones free of gaps and overlaps?
Yes. Neighbouring delivery zones in vectorstream share one stored border, so moving that border changes both zones and no gap or overlap appears between them.
How is a new depot catchment carved out of existing ones?
vectorstream's split tool divides an existing catchment along a straight line between two of its corners, and the union tool merges the pieces split off neighbouring catchments into one. The new catchment shares its borders with the zones around it.
Can areas that are not served be removed from a delivery zone?
Yes, at the edge of the service region. The difference tool in vectorstream removes a drawn area, such as an industrial estate on the outer boundary, from the selected delivery zones. A piece in the middle of a zone is rejected, because vectorstream only cuts from the outer edge.
Does vectorstream plan delivery routes?
No. vectorstream edits zone geometry. Route planning and dispatch stay in the logistics software, which reads the zones from vectorstream as GeoJSON.
Which map libraries can a logistics dashboard use with vectorstream?
Logistics dashboards built on Leaflet, OpenLayers or MapLibre GL can embed vectorstream, and its editing core is the same behind each adapter.

More questions

Rebalance delivery zones by moving one line.