Graph updates¶
Graph updates keep your world-wide Valhalla graphs current with compact delta updates instead of full re-downloads. They come with the cadence of your graph subscription (daily or weekly) and are synced with our re CLI.
How it works¶
We build every region's Valhalla graph from the lastest OSM data on a rolling basis. For every new graph build we also generate a compact delta/diff against the previous one.
On your side, you interact with our re CLI:
re init: downloads the graphre sync: poll and apply our service for delta graph updates
An archtitectural representation:
flowchart LR
subgraph ours["routing.earth, our side"]
direction TB
osm["Latest OSM data"] --> build["Build Valhalla graph<br/>(per region)"]
build --> full["Publish full graph<br/> per region"]
build --> diff["Publish graph delta updates per region"]
end
subgraph yours["client, your machine"]
direction TB
init["Initialise: download<br/>full graph once"]
sync["Sync: pull diff &<br/>apply to local graph"]
local["Up-to-date<br/>Valhalla graph"]
end
full -.->|re init| init
init --> local
diff -.->|re sync| sync
sync --> local
local -.->|next update| sync
Features¶
- Freshness: we offer monthly free OSM-based, fully featured graphs in our Graph Shop. When using
routing-earth-utils, you can orchestrate daily, weekly or monthly updates on your purchased graph packages, depending on your exact plan(s). - Old graphs never retire.: we can offer outdated graph updates for eternity. For real. You're an OEM and want to white-label our product under an enterprise contract? We had you in mind when designing our graph updates!
- Operational ease: a single
re syncyou can cron, put in systemd or execute manually, is all it needs to keep a local graph package up to date forever. Missed a beat? No problem, we can easily support updating tens of years old graph packages. - RAM friendly:
re syncworks directly on the tar archived graph package, not (yet) on tile directories. It's the recommended graph source for Valhalla, so RAM can be shared across threads and process boundaries. - Bandwidth/time: our bespoke Valhalla graph update API offers tiny update bundles, e.g. while the full planet graph package weighs > 50 GB, a daily update only weighs ~500 MB.
- Scope: via your personal API key,
re init/syncauto-updates each graph package on your infrastructure individually, according to the purchased plan for each extract.