Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TopPrism dual-prism visual

Open Dispatch

Language / 语言: English primary · 中文概览如下。

中文概览

本地优先的配送路线与派单参考引擎,提供带明确约束、可复现的优化逻辑。

A local-first reference engine for delivery routing and dispatch optimization.

CUSTOMER DECISION · APPLIED REFERENCE · BENCHMARK EVIDENCE

Decision question: How can orders be assigned and sequenced locally with explicit constraints, reproducible routing logic, and no mandatory paid dispatch API?


Why this exists

Delivery dispatch needs an executable optimization layer:

orders + workers + capacity + geography
                 ↓
assignment
                 ↓
route ordering
                 ↓
route geometry / metrics

The project includes an Amap-compatible API shape, but "free alternative to Amap" should not be its identity. API compatibility is an integration feature; the core asset is the local-first dispatch engine.


Architecture

GCJ-02 request
     ↓
coordinate normalization
     ↓
spatial clustering
     ↓
worker / cluster assignment
     ↓
route optimization
     ↓
OSM / routing distance layer
     ↓
Amap-compatible response + geometry

Current components include DBSCAN, OR-Tools, OSMnx / routing fallbacks, coordinate conversion, FastAPI, and a built-in map.


Evidence

Current benchmark:

  • 20 random datasets;
  • 20 orders per dataset;
  • Beijing Chaoyang, 5 km zone.

Reported results:


Metric Open Dispatch OSRM Trip Interpretation


Euclidean distance 19.0 km 19.9 km 4.8% shorter on of produced this benchmark ordering

Engine-estimated 34.4 km 43.6 km OSRM estimates differ total distance materially

The correct conclusion is:

The produced ordering was shorter under the chosen Euclidean comparison on this benchmark, while the engine's road-distance estimates were materially lower than OSRM and require calibration / stronger routing fidelity.

Do not summarize this as "we're better than OSRM."


What this evidence supports

  • the local engine can produce competitive route orderings in the published small benchmark;
  • Amap-compatible integration can be implemented without making a paid API the optimization core;
  • local routing can support privacy / cost / deployment flexibility.

What it does not support

  • better real road travel time than OSRM;
  • better dispatch business outcomes than commercial dispatch systems;
  • production-grade map / turn restriction fidelity;
  • universal 4.8% advantage.

Relationship to learned dispatch behavior

Use logistics-dispatch-clustering for learned operational priors and this repository for explicit optimization.

historical behavior
      ↓
learned priors
      +
explicit constraints
      ↓
Open Dispatch
      ↓
executable plan

Quick start

Keep the existing FastAPI start command and Amap-compatible example, but move the full request schema to docs/api.md.


Roadmap

  1. benchmark against OR-Tools routing with the same distance matrix;
  2. compare road-network travel time, not only Euclidean sequence length;
  3. real operational replay;
  4. capacity / SLA / overtime metrics;
  5. route stability across re-plans;
  6. calibrated distance / time error.

TopPrism metadata

topprism:
  purpose: customer-decision
  capability: delivery-dispatch
  platform_layer: decision-engine
  maturity: applied-reference
  evidence:
    type: benchmark
    scope: "20 random datasets × 20 orders, Beijing Chaoyang"
  related:
    - logistics-dispatch-clustering

About

Local-first reference engine for delivery routing and dispatch optimization, with Amap-compatible integration patterns.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages