|
Download README.md from YuqinDay/facility-relocation-sample: direct link, hf CLI and curl.
- Browser
- Download file 3.88 kB
-
https://huggingface.co/datasets/YuqinDay/facility-relocation-sample/resolve/main/README.md
- Command line
-
hf download hf://datasets/YuqinDay/facility-relocation-sample/README.md
-
curl -L -o README.md https://huggingface.co/datasets/YuqinDay/facility-relocation-sample/resolve/main/README.md
3.88 kB
| # 15-Minute Facility Relocation Reproduction Sample | |
| This sample contains original OpenStreetMap road extracts, routing configuration, optimization inputs, and reference results for 20 cities. Each city includes population grids, candidate locations, existing sites in nine facility categories, walking-time matrices, and the original optimized locations and per-grid walking times. Cities were selected for compact, complete inputs and coverage across different countries. | |
| ## Download and run | |
| Download `facility-relocation-sample.zip` into the existing project’s `code/` directory. This directory contains `server_greedy.py`, `capacity.py`, `greedy.py`, `reachable.py`, and `requirements-cpu.txt`. Run the following from `code/` on x86-64 Linux. Use the existing project Python environment if available. | |
| ```bash | |
| unzip facility-relocation-sample.zip | |
| python3.12 -m pip install -r requirements-cpu.txt | |
| bash setup_osrm.sh | |
| python3.12 reproduce_sample.py --rebuild-routing --city author_8442 | |
| ``` | |
| Docker and network access are used once to extract the pinned OSRM 5.27.1 Linux distribution. Subsequent runs use the extracted OSRM executables and the supplied pedestrian profile locally. The script builds the routing graph from each PBF file, regenerates the candidate and baseline matrices, and passes those new matrices to the CPU layout solver. | |
| Omit `--city author_8442` to run all 20 cities. New matrices and layouts are written to `code/outputs/facility_relocation_sample/`. Omit `--rebuild-routing` to run the layout solver directly with the supplied matrices. The matrix-only mode needs no OSRM installation. | |
| The extracted `facility-relocation-sample/` directory contains: | |
| | Path | Contents | | |
| | --- | --- | | |
| | `cities.json` | City names, slugs, countries, and input and result sizes | | |
| | `data/raw_osm/<slug>/network.osm.pbf` | The exact OpenStreetMap road extract used for each city | | |
| | `data/raw_config.json` | Routing algorithm per city | | |
| | `routing/` | OSRM configuration, pedestrian profile, Lua dependencies, and license | | |
| | `data/greedy_inputs/` | Population grids, candidate locations, facility tables, walking-time matrices, and routing provenance | | |
| | `reference_results/` | Original locations, per-grid times, summaries, and verification records | | |
| All 20 cities were rerun from their original PBF files on Linux with Python 3.12 and OSRM 5.27.1. All 200 regenerated matrices matched the reference matrices element for element. The selected locations matched the original run in all nine facility categories per city, and the per-grid walking times matched within an absolute tolerance of 1e-9 minutes. This run took 131 seconds on the validation server, excluding dependency setup and downloads. | |
| ### Verified source files | |
| | File | SHA-256 | | |
| | --- | --- | | |
| | `server_greedy.py` | `6dc0aa539470530ab00e2d22a3a826eea75789207cf2f9665d203498c092ac85` | | |
| | `capacity.py` | `b68456c3d3bd8d4c68514b6f4f5ee49f6820f96152f34f85fc2b3256ffa3bc9d` | | |
| | `greedy.py` | `0b9270f1440b825347012ef2e758347ec159505ef661bcb9c4fa4390585769e9` | | |
| | `reachable.py` | `16874f9d6862c6182ea60b5e1b86ed9e158886069d766dc50fd873caae073256` | | |
| ## Data sources | |
| - Population grids and geometry come from [Sony CSL Rome’s 15 Minute City platform](https://whatif.sonycsl.it/15mincity/15mincity.php). Retain the source attribution and follow the applicable license. | |
| - The walking network and existing facilities contain data from © [OpenStreetMap contributors](https://www.openstreetmap.org/copyright), available under the [Open Database License 1.0](https://opendatacommons.org/licenses/odbl/1-0/). Each city’s `routing_provenance.json` identifies its road snapshot and routing version. The original PBF files retain the map contributors’ place names and tags. | |
| - The walking profile and Lua modules come from [OSRM 5.27.1](https://github.com/Project-OSRM/osrm-backend/tree/v5.27.1/profiles). | |