All checks were successful
CI / test-and-build (push) Successful in 1m3s
- scripts/osm-dump.mjs: download & stream-parse regional .osm.pbf extracts (Geofabrik/BBBike etc). Clips to bbox, extracts POI features (poiTags), and builds a routable road graph (coords + weighted adj) from road ways. Caches the downloaded .pbf under scripts/.cache/ (git-ignored). Default: Geofabrik Oklahoma extract -> tulsa-dump layer (12.8k POIs, 55k-node graph). - src/lib/routing.ts: client-side A* routing over the graph. Snaps A/B to nearest nodes, supports avoid-rules (category + radius, block or penalty) built from nearby POIs; returns waypoints + distance. - src/lib/components/DirectionsPanel.svelte: Directions UI — pick A/B by clicking the map, choose POI categories to avoid, compute & draw the route. - MapView: adds a Directions toggle when a dump layer with a graph is present. - package.json: add 'build:dump'; build now runs data + dump + static. - scripts/test.mjs: validate dump manifest entries + routing graph structure. - README: document dump ingestion and the routing/avoid feature.
64 lines
1.4 KiB
JSON
64 lines
1.4 KiB
JSON
[
|
|
{
|
|
"name": "tulsa",
|
|
"label": "Tulsa, Oklahoma",
|
|
"category": "osm",
|
|
"layerType": "mixed",
|
|
"bbox": [
|
|
35.9,
|
|
-96.1,
|
|
36.3,
|
|
-95.7
|
|
],
|
|
"featureCount": 20261,
|
|
"path": "/data/tulsa.geojson"
|
|
},
|
|
{
|
|
"name": "my-places",
|
|
"label": "My Places",
|
|
"category": "custom",
|
|
"layerType": "poi",
|
|
"color": "#e11d48",
|
|
"featureCount": 4,
|
|
"path": "/data/custom/my-places.geojson"
|
|
},
|
|
{
|
|
"name": "districts",
|
|
"label": "Districts",
|
|
"category": "custom",
|
|
"layerType": "zone",
|
|
"color": "#0ea5e9",
|
|
"featureCount": 2,
|
|
"path": "/data/custom/districts.geojson"
|
|
},
|
|
{
|
|
"name": "trails",
|
|
"label": "Trails & Routes",
|
|
"category": "custom",
|
|
"layerType": "path",
|
|
"color": "#22c55e",
|
|
"featureCount": 1,
|
|
"path": "/data/custom/trails.geojson"
|
|
},
|
|
{
|
|
"name": "rogers-county",
|
|
"label": "Rogers County",
|
|
"category": "custom",
|
|
"layerType": "poi",
|
|
"color": "#f59e0b",
|
|
"featureCount": 7,
|
|
"path": "/data/custom/rogers-county.geojson"
|
|
},
|
|
{
|
|
"name": "tulsa-dump",
|
|
"label": "Tulsa OSM (dump)",
|
|
"category": "dump",
|
|
"layerType": "poi",
|
|
"color": "#8b5cf6",
|
|
"featureCount": 12853,
|
|
"path": "/data/tulsa-dump-poi.geojson",
|
|
"poiPath": "/data/tulsa-dump-poi.geojson",
|
|
"graphPath": "/data/tulsa-dump-graph.json",
|
|
"graphNodeCount": 55334
|
|
}
|
|
] |