InfraCityOpen editor

A parcel's journey · logistics

Not infrastructure: one online order from the web shop through the warehouse and the carrier's sorting hub to the customer's door, with custody at each step.

A parcel's journey · logistics, drawn as an isometric city

The CityScript

This is all there is to it. Change it in the editor and the city redraws.

%% A parcel's journey: from the click on "buy" to the customer's front door.
%% Not infrastructure, so it asks for the logistics pack (packs=logistics): buildings are sites, rooms are
%% stations, a boundary is who has custody of the parcel, and the pipelines are the parcel's way.
%% The two handovers cross a custody line, so they are guarded.
city 54x28 packs=logistics

district front "Web shop" 4,4..9,9
district fulfil "Fulfilment centre" 13,4..29,10
district carrier "Carrier network" 34,4..48,10
district last "Doorstep" 34,14..45,19
district data "Tracking" 13,14..19,19

%% The order
building web shop at 5,5 "Web shop" owner="Shop"
  floor web.f "Checkout"
    room web.order service "Order"
    room web.pay service "Payment"
    room web.rules config "Cut-off 16:00"

%% The warehouse
building stock warehouse at 14,5 "Stock hall" owner="Warehouse team"
  floor stock.f "Shelves"
    room stock.shelves shelf "Shelves"
    room stock.cold cold-store "Cold room"
building pack factory at 19,5 "Pick and pack" owner="Warehouse team"
  floor pack.f "Packing line"
    room pack.pick worker "Pickers"
    room pack.belt belt "Belt"
    room pack.box worker "Packers"
    room pack.label scanner "Label printer"
building dock depot at 24,5 "Dispatch dock" owner="Warehouse team"
  floor dock.f "Dispatch"
    room dock.cage bay "Waiting for pickup"
    room dock.door door "Dock door"

%% The carrier
building hub hub at 35,5 "Sorting hub" owner="Carrier"
  floor hub.f "Sorting"
    room hub.scan scanner "Scanner"
    room hub.sort sorter "Sorter"
    room hub.chutes belt "Chutes by region"
building truck depot at 39,5 "Linehaul" owner="Carrier"
  floor truck.f "Trucks"
    room truck.fleet vehicle "Trucks"
    room truck.plan config "Timetable"
building depot depot at 43,5 "Local depot" owner="Carrier"
  floor depot.f "Local depot"
    room depot.scan scanner "Scanner"
    room depot.vans bay "Van loading"

%% The last mile
building courier depot at 35,15 "Courier round" owner="Carrier"
  floor courier.f "Round"
    room courier.van vehicle "Van"
    room courier.hand scanner "Handheld scanner"
building home house at 40,15 "Customer" owner="Customer"
  floor home.f "Front door"
    room home.door door "Front door"
    room home.phone service "Phone"

%% Where the parcel is at any moment
building tracking tower at 14,15 "Tracking" owner="Carrier"
  floor tracking.f "Status"
    room tracking.log ledger "Scan log"
    room tracking.notify service "Notifier"

%% Custody: whose hands the parcel is in. Each handover crosses a line.
boundary shop-custody "Shop's custody" members=web,stock,pack,dock
boundary carrier-custody "Carrier's custody" members=hub,truck,depot,courier
boundary customer-zone "Customer" members=home

gate orders at 0,6 "Orders come in"
road orders -> web

link web.pay -> web.order "paid"
link web.rules -> web.order "cut-off"
link web.order -> pack.pick "pick list" variant=emphasis
link stock.shelves -> pack.pick "items"
link stock.cold -> pack.pick "chilled items" variant=dashed
link pack.pick -> pack.belt -> pack.box -> pack.label "tote"
link pack.label -> dock.cage "parcel" variant=emphasis
link dock.cage -> dock.door "loading"
link dock.door -> hub.scan "handover" variant=security
link hub.scan -> hub.sort "parcel"
link hub.sort -> hub.chutes "by region"
link hub.chutes -> truck.fleet "load" variant=emphasis
link truck.plan -> truck.fleet "timetable"
link truck.fleet -> depot.scan "linehaul" variant=emphasis
link depot.scan -> depot.vans "by round"
link depot.vans -> courier.van "load the van"
link courier.van -> home.door "handover" variant=security
link pack.label -> tracking.log "label made" variant=dashed
link hub.scan -> tracking.log "scan" variant=dashed
link depot.scan -> tracking.log "scan" variant=dashed
link courier.hand -> tracking.log "delivered" variant=dashed
link tracking.log -> tracking.notify "status changed"
link tracking.notify -> home.phone "text message"

%% The way of one parcel, and of one that comes back.
pipeline parcel "A parcel, order to doorstep" web -> [accept] -> stock -> [pick] -> pack -> [label] -> dock -> [collect] -> hub -> [sort] -> truck -> [linehaul] -> depot -> [load-van] -> courier -> [deliver] -> home
  step web "The customer orders on the website"
  step stock "The item is found in the warehouse"
  step pack "It is packed into a box"
  step dock "The box waits at the loading dock"
  step hub "The carrier sorts the parcel by area"
  step truck "A truck takes it to the local depot"
  step depot "The depot loads it for its round"
  step courier "A courier takes it on the round"
  step home "The parcel is handed over at the door"
pipeline returns "A return" home -> [ask-for-return] -> courier -> [collect] -> depot -> [back-haul] -> hub -> [send-back] -> stock
  step home "The customer asks to send an item back"
  step courier "A courier collects it"
  step depot "The depot takes it in"
  step hub "The carrier sends it on to the shop"
  step stock "The shop puts the item back on the shelf"