Headway: a self-hosted OpenStreetMap stack for search, tiles and directions
Self-hostable maps stack, powered by OpenStreetMap.
At a glance
- What is it?
- Headway bundles a basemap, geocoder and routing engine into a Docker Compose stack you can point at any OpenStreetMap extract. It is aimed at engineers who want their own maps server, and it costs real memory and disk to build.
- Who is it for?
- Adopt Headway if you need a self-contained maps server over an OpenStreetMap extract you choose, and you can give the build machine 8GB of memory and 50GB to 100GB of disk. Do not adopt it if you need transit directions today, since the README calls those a work in progress, or if you cannot run the build step at all.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 1 day ago.
- What is it written in?
- Mainly Rust, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.
Star history
- headwaymaps/headway3,021 ★ · +19
| Repository | 2026-09-24 | 2026-11-23 |
|---|---|---|
| headwaymaps/headway | 3k | 3k |
19 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
What Headway solves, and who it is actually for
Most teams that need a map end up renting one. The tiles, the geocoder and the routing engine sit behind separate vendors, each with its own pricing page and its own copy of your users' queries. Headway's README describes the opposite arrangement: "a maps stack in a box that makes it easy to take your location data into your own hands." One stack, one machine, one OpenStreetMap extract.
The audience is narrow and specific. You are comfortable running Docker Compose, you have a machine with at least 8GB of memory for data generation and 50GB to 100GB of free disk during the build, and you care that the map data never leaves your infrastructure. The README states the stack has been confirmed working on amd64 machines running Linux and macOS. Running an instance needs less than building one: the README puts a medium sized metro area at around 4GB.
If your requirement is a hosted map with a support contract and a status page, this is the wrong shape of tool. Headway hands you the server and the responsibility.
The four moving parts: tiles, search, directions, frontend
The repository layout tells you the architecture before you read a line of Rust. There is ARCHITECTURE.md at the top level, a services/ directory, a k8s/ directory, and two Compose files: docker-compose.yaml and docker-compose-with-transit.yaml. The Cargo workspace in Cargo.toml has exactly three members: services/gtfs/transit-zoner, services/gtfs/gtfout and services/travelmux. Everything else in the stack ships as container images.
Those images are named in docker-compose.yaml. tileserver-init copies the area map, terrain and landcover artifacts out of the bootstrap volume into a shared data volume, and tileserver serves them on port 8000. travelmux-init stages elevation data, and travelmux runs with the command ["http://valhalla:8002"], which is how the routing front end finds the Valhalla engine on its backend network. valhalla-init prepares the routing graph.
The data flow is one directional and file based. You produce a build for an area, the init containers move artifacts into named volumes, and the long-running containers read those volumes read-only. The variable ${HEADWAY_AREA:?} appears throughout, so an unset area name stops Compose rather than starting the wrong dataset. That is a small design decision with a large payoff: you cannot accidentally boot the stack against a half-named build.
Installing Headway and bringing up a first area
The README does not inline install steps. It points at BUILD.md for the build process, and the Compose file expects a build directory to already exist. So the honest first move is to read BUILD.md, because that is where the area selection and artifact generation live.
Once a build exists, the stack itself is a Compose invocation. The area name is passed through the environment, and every image reads its configuration from the .env file under that area's build directory:
export HEADWAY_AREA=<area>
docker compose upThe Compose file declares env_file: builds/${HEADWAY_AREA:?}/.env, so if that file is missing or the area is unset, Compose fails at startup. After the init containers complete, tileserver serves on port 8000 inside the tileserver_frontend network. The README does not document a host port mapping for the frontend, so check the Compose file and your own overrides rather than assuming localhost:8000 answers.
For a build with transit data, the repository ships a second file, docker-compose-with-transit.yaml, and TRANSIT_ZONER.md covers the transit zoning service. The README is explicit that transit directions are a work-in-progress, so treat that path as experimental.
Where Headway breaks down or is the wrong tool
Transit routing is the clearest limit. The README lists driving, cycling and walking as supported and says transit directions are a work-in-progress. There is a Compose file and a transit-zoner service for it, but the repository has no published releases and no version is tagged, so there is no published signal about how far along that work is. If your product is a journey planner, this is not the stack to build on yet.
The build step is the second constraint. 50GB to 100GB of disk during the build, and at least 8GB of memory on the generating machine, is a real threshold. The README notes that larger areas may need more. That rules out small CI runners and most laptops for anything beyond a small extract. The README also says the README itself is not the build documentation; BUILD.md is. A reader who skips it will find Compose complaining about a missing builds/${HEADWAY_AREA}/.env and nothing else.
Finally, the repository has no published releases. Upgrades are therefore a matter of tracking the main branch and the container images tagged latest, which the Compose file pulls. There is no version pin to hold, and the README does not document a rollback path.
Headway against the hosted maps APIs
The obvious alternative is a hosted maps API from one of the large providers. The difference is not mainly cost or features. It is where the data and the query log live, and who operates the routing engine.
With a hosted API you send coordinates and search strings to someone else's servers, and the provider decides when the basemap updates and which regions are covered. With Headway you choose the extract, from a neighborhood to the whole planet per the README, and the stack serves it from your own volumes. The trade is that you now own capacity planning, data refresh and the failure modes of three init containers.
A second alternative is assembling the parts yourself: a tile server, a geocoder and a routing engine, each configured separately. Headway's contribution is the wiring, the shared area variable and the artifact staging between init and runtime containers. If you already run those components and like your configuration, Headway's value is mostly in the build pipeline, not the runtime.
Licence and the ongoing cost of running a build
Headway is Apache-2.0. In practical terms that is a permissive licence with an explicit patent grant, and the README asks for pull requests for enhancements and bugfixes rather than imposing conditions. This is not legal advice; if you redistribute the stack or embed it in a product, read LICENSE yourself.
The licence covers Headway's code, not the OpenStreetMap data you feed it. The README does not discuss OpenStreetMap attribution requirements, so that obligation, which is a property of the data rather than this repository, is something to confirm separately before you put a map in front of users.
Upgrade cost is the part the material cannot answer well. With no published releases and images referenced as latest, there is no changelog to read between versions. The practical maintenance work is regenerating artifacts when you want fresher map data, and rebuilding when the images move. The README does not document rollback, so a working build directory is worth keeping.
Editorial conclusion
Adopt Headway if you need a self-contained maps server over an OpenStreetMap extract you choose, and you can give the build machine 8GB of memory and 50GB to 100GB of disk. Do not adopt it if you need transit directions today, since the README calls those a work in progress, or if you cannot run the build step at all. Before committing, read BUILD.md and ARCHITECTURE.md, then check the .env file that builds/${HEADWAY_AREA}/ is expected to contain, because docker-compose.yaml reads every image's configuration from it and the README does not describe its keys.
Frequently asked questions
What is Headway (headwaymaps/headway)?
It is a self-hostable maps stack powered by OpenStreetMap, containing a frontend, basemap, geocoder and routing engine. The README describes bringing up a fully functional maps server with a few commands over one of 200+ predefined cities or your own OpenStreetMap extract.
How do you install and run Headway?
The README points to BUILD.md for the build process, and the stack runs through Docker Compose with the area set as an environment variable. Every service reads its configuration from builds/${HEADWAY_AREA}/.env, so that file must exist before the stack starts.
Which routing modes does Headway support?
The README lists driving, cycling and walking as supported, and states that transit directions are a work-in-progress. A separate docker-compose-with-transit.yaml and a transit-zoner service exist in the repository for the transit path.
What hardware does Headway need?
The README states the machine generating data files needs at least 8GB of memory, potentially more for larger areas, with 50GB to 100GB of disk expected during the build. Running an instance needs less, around 4GB for a medium sized metro area.
What licence is Headway released under?
Headway is available under the Apache License, version 2.0, and the README invites pull requests for enhancements and bugfixes. The repository also ships a LICENSE file at the top level.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/headwaymaps-headway)Star history chart for your README
[](https://hysenlabs.com/projects/headwaymaps-headway)Was this useful?