@osm-editor-kit/osm-route-snapper 0.1.0-alpha.0 → 0.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -7
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1,16 +1,17 @@
1
1
  # `@osm-editor-kit/osm-route-snapper`
2
2
 
3
- **Status:** First npm **alpha** (`0.1.0-alpha.0`). Publish with `bun run packages:release -- --publish-only` after `npm login`.
3
+ > [!NOTE]
4
+ > This package is an **alpha** release and still under active development. APIs may change; install with the npm `alpha` dist-tag.
4
5
 
5
6
  ## What it does
6
7
 
7
- Bridge between merged session `ParsedOsmData` (`@osm-editor-kit/osm-data`) and the [route-snapper](https://github.com/a-b-street/route-snapper) routing graph:
8
+ Turn session OSM data (`@osm-editor-kit/osm-data`) into a [route-snapper](https://github.com/a-b-street/route-snapper) graph:
8
9
 
9
- - Build route-snapper **bincode graph bytes** from Overpass/session coverage via vendored `osm-to-route-snapper` WASM
10
- - Serialize parsed OSM to minimal OSM XML for graph conversion
11
- - Extract **routing-network GeoJSON** (intersection-split edges) from graph bytes
12
- - GeoJSON LineStrings for session highway ways and a **coverage graph signature** for cache keys
13
- - TanStack Query factory that rebuilds the graph when Overpass coverage grows
10
+ - Build graph bytes from coverage (vendored `osm-to-route-snapper` WASM)
11
+ - Export a routing-network GeoJSON (edges split at intersections)
12
+ - Export highway ways as GeoJSON LineStrings
13
+ - Cache key / signature when coverage changes
14
+ - Optional TanStack Query hook that rebuilds the graph as the map downloads more OSM
14
15
 
15
16
  ## Usage
16
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osm-editor-kit/osm-route-snapper",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-alpha.1",
4
4
  "description": "Build route-snapper graph bytes and routing-network GeoJSON from parsed OSM coverage (WASM).",
5
5
  "license": "MIT",
6
6
  "author": "Tobias Jordans",
@@ -9,6 +9,7 @@
9
9
  "url": "git+https://github.com/osmberlin/street-space-editor.git",
10
10
  "directory": "packages/osm-route-snapper"
11
11
  },
12
+ "homepage": "https://github.com/osmberlin/street-space-editor/tree/main/packages/osm-route-snapper",
12
13
  "type": "module",
13
14
  "sideEffects": false,
14
15
  "files": [