@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.
- package/README.md +8 -7
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
# `@osm-editor-kit/osm-route-snapper`
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
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
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
- TanStack Query
|
|
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.
|
|
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": [
|