osm_road_graph — DRIVE japan op

• Data kinds: table → table

• Call: import fullseye as fs; fs.ledger.osm_road_graph(osm: 'dict', *, way_types: 'Sequence[str]' = ('motorway', 'motorway_link', 'trunk', 'trunk_link', 'primary', 'primary_link', 'secondary', 'secondary_link', 'tertiary', 'tertiary_link', 'unclassified', 'residential', 'living_street', 'service'), bbox=None, margin: 'float' = 0.0) -> 'Dict[str, object]' (to call the implementation directly, import drivejapan; drivejapan.osm_road_graph(osm: 'dict', *, way_types: 'Sequence[str]' = ('motorway', 'motorway_link', 'trunk', 'trunk_link', 'primary', 'primary_link', 'secondary', 'secondary_link', 'tertiary', 'tertiary_link', 'unclassified', 'residential', 'living_street', 'service'), bbox=None, margin: 'float' = 0.0) -> 'Dict[str, object]'; from the registry, opsdrive.get("osm_road_graph"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

OSM の読み込み結果から道路網を作る。

辺 = way の隣り合う節点の対 `{"a", "b", "way", "highway", "width", "lanes", "width_from", "oneway", "length", "tags"}`。

節点 = `{"xy", "degree", "features": [NODE_FEATURES の部分集合], "tags", "edges": [辺の索引]}`(辺に使われた節点だけ)。

`bbox` = (xmin, xmax, ymin, ymax) を渡すと 両端が箱(+ margin)の外 の辺を落とす(片端だけ外の辺は残す = 箱の縁で道が切れる)。

`oneway` は "yes" / "1" / "true" が順方向、"-1" / "reverse" は a, b を入れ替えて順方向にする。

Raises `ValueError`: way_types に知らない種別、辺が 1 本も無い。

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• poc_driving_japan_town — py -3.11 examples/poc_driving_japan_town.py

Ops the type connects to (they accept table as input)

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

Same category (japan)

osm_synthetic · osm_parse · osm_road_mask · osm_road_loops · osm_route · japan_world · japan_stats · latlon_to_local


*Provenance: drivejapan.py — DRIVE operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.