destination: 39-84 46th St, Sunnyside (OSM way 241831843); durable data location; profile-sensitivity experiment

- destination changed from generic 'Queens NY' to the real address,
  geocoded offline from the NY PBF (addr:street=46th Street,
  addr:housenumber=39-84, postcode 11104 -> 40.74707,-73.9181)
- OSRM tree moved /tmp/osm-build -> /home/gmp/osm-build (durable);
  scripts default W to $HOME/osm-build; LD_LIBRARY_PATH export for
  the baked-in RPATH; cmake stub paths re-pointed
- profile experiment: profiles/car-us.lua (US-tuned speed table on
  stock car.lua) -> Lincoln->Sunnyside 406 -> 377 min vs Valhalla 327;
  README documents the mechanism (motorway=90 x speed_reduction 0.8
  = 72 km/h effective on untagged US interstates)
- bench goldens re-recorded for both backends with new destination;
  both 26/26 PASS, integration tests pass on both routers
This commit is contained in:
gmp
2026-09-06 16:48:51 -04:00
parent 0c4a1f9f60
commit 916f9eb503
5 changed files with 612 additions and 22 deletions
+2 -2
View File
@@ -3,10 +3,10 @@
# conan: bzip2, lua 5.2 (static), oneTBB, boost (b2, with hand-rolled
# CMake config files — boost release tarballs ship no CMake support).
#
# Artifacts: $W (default /tmp/osm-build), installed into $W/prefix.
# Artifacts: $W (default $HOME/osm-build), installed into $W/prefix.
# Idempotent: each dep is skipped when its .done-<name> marker exists.
set -uo pipefail
W="${W:-/tmp/osm-build}"
W="${W:-$HOME/osm-build}"
P="$W/prefix"
mkdir -p "$P/include" "$P/lib" "$W"
log() { echo "[$(date +%T)] $*"; }
+7 -5
View File
@@ -7,14 +7,12 @@
# Usage: scripts/setup-osrm.sh # everything, then serve
# scripts/setup-osrm.sh --no-serve # build + extract, don't serve
#
# NOTE: /tmp is wiped on reboot. For a persistent install set W to a
# durable dir (and the extract's ~8 GB lives under $W/data).
#
# PBFs are pre-downloaded in ../../osm/ (see router/README.md); ~1.1 GB.
# Artifacts live in $W (default: $HOME/osm-build — durable; the extract
# is ~8 GB under $W/data). PBFs are in ../../osm/ (~1.1 GB, gitignored).
set -euo pipefail
cd "$(dirname "$0")"
W="${W:-/tmp/osm-build}"
W="${W:-$HOME/osm-build}"
P="$W/prefix"
OSM_DIR="$(cd ../.. && pwd)/osm"
DATA_DIR="${DATA_DIR:-$W/data}"
@@ -29,6 +27,10 @@ step() { echo; echo "=== $1"; }
step "1/6 dependencies (bzip2, lua, tbb, boost, osmium)"
bash deps.sh
# The built OSRM binaries carry an RPATH baked in at configure time;
# if $W ever moves, this keeps them finding their TBB/boost libs.
export LD_LIBRARY_PATH="$P/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
step "2/6 OSRM 26.4.1"
if [ ! -d "$OSRM_SRC" ]; then
curl -sL -o "$W/osrm.tar.gz" https://github.com/Project-OSRM/osrm-backend/archive/refs/tags/v26.4.1.tar.gz