@truelies/osm-dybuf 0.3.1 → 0.3.2
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 -1
- package/package.json +1 -1
- package/schema_ids.mjs +5 -4
package/README.md
CHANGED
|
@@ -4,6 +4,7 @@ Gridex `osm.dybuf` parser utilities shared by the exporter, inspection scripts,
|
|
|
4
4
|
This package wraps the shared schema tables (`schema_ids`) and exposes a high-level `parseOsmDybuf` helper.
|
|
5
5
|
It depends on the published [`dybuf`](https://www.npmjs.com/package/dybuf) runtime (≥ 0.4.2).
|
|
6
6
|
Feature IDs are packed as `feature_id = sub_id * 64 + main_id` (both 0–63). Use `schema_ids` to decode feature strings.
|
|
7
|
+
Current road groups are `road_express`, `road_major`, `road_minor`, `road_local`, and `road_trail`.
|
|
7
8
|
|
|
8
9
|
## Current Compatibility Status
|
|
9
10
|
|
|
@@ -17,6 +18,12 @@ Support matrix:
|
|
|
17
18
|
|
|
18
19
|
`inspect_dybuf.mjs` now prints by detected format.
|
|
19
20
|
|
|
21
|
+
Current frontend-facing schema notes:
|
|
22
|
+
|
|
23
|
+
- `admin_boundary` is retained in schema IDs for compatibility, but new exports no longer send boundary lines to the frontend.
|
|
24
|
+
- Administrative naming should come from `place_label`.
|
|
25
|
+
- `road_express` was added for motorway / controlled-access corridors.
|
|
26
|
+
|
|
20
27
|
## Usage
|
|
21
28
|
|
|
22
29
|
```bash
|
|
@@ -114,4 +121,4 @@ Unit test example (`tests/grid_index.test.mjs`) covers:
|
|
|
114
121
|
- `region_numeric_codes.json`: latest region ID table (generated via `scripts/dump_region_codes.py`)
|
|
115
122
|
- `inspect_dybuf.mjs`: CLI tool that uses the package locally
|
|
116
123
|
|
|
117
|
-
When schema IDs or DyBuf layouts change in the exporter, remember to bump the version here and re-publish/install so frontends and tools stay in sync.
|
|
124
|
+
When schema IDs or DyBuf layouts change in the exporter, remember to bump the version here and re-publish/install so frontends and tools stay in sync. Version `0.3.2` adds the `road_express` feature group and aligns the package docs with the current no-`admin_boundary` frontend export policy.
|
package/package.json
CHANGED
package/schema_ids.mjs
CHANGED
|
@@ -44,10 +44,11 @@ const FEATURE_KIND_CODES = Object.freeze({
|
|
|
44
44
|
waterbody: ["waterbody", 0],
|
|
45
45
|
landuse: ["landuse", 0],
|
|
46
46
|
park: ["park", 0],
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
road_express: ["road", 0],
|
|
48
|
+
road_major: ["road", 1],
|
|
49
|
+
road_minor: ["road", 2],
|
|
50
|
+
road_local: ["road", 3],
|
|
51
|
+
road_trail: ["road", 4],
|
|
51
52
|
waterway_major: ["waterway", 0],
|
|
52
53
|
waterway_stream: ["waterway", 1],
|
|
53
54
|
waterway_minor: ["waterway", 2],
|