Airspace Network (OSM contract)
Overview
An airspace network is a plain OpenStreetMap (.osm) file. Its nodes are the
3D waypoints, vertiports and other airspace nodes, its ways are the
corridors, and its type=air_route relations are the routes.
AirspaceNetwork.load_osm reads it and the browser viewer draws it. A
scenario keeps it beside an optional CNS infrastructure layer:
scenario/network/airspace_network.osm # the editable, simulation-ready network
scenario/network/infrastructure.osm # optional CNS infrastructure sites
LOFT-Edit writes the network as airspace_network.osm; the older default
scenario names its network file airspace_network_enriched.osm instead. This
page is the contract the loader enforces. To draw a network, follow the
LOFT-Edit End-to-End Workflow.
Network Versus Operation Strategy
The network and operation strategy are intentionally separate inputs:
Network .osm |
Operation-strategy .xml |
|---|---|
| Element identity, class, geometry, topology, and direction | Strategic admission, assignment, metering, and reservation models |
| Altitude profile, nominal speed, vehicle eligibility, capacity, and stable classifications | Tactical following/sequencing models, headway, queue, and reservation rules |
| Geofence/control-region geometry and vertiport pad count | Contingency model and thresholds; class- and element-specific rule overrides |
In short, the network defines what and where the airspace resources are; the strategy defines how they are managed in a run. This lets users compare strategies on an unchanged network and demand set. See Operation Strategy Configuration for the schema and examples.
Element Identity
Each network element kind carries exactly one semantic ID tag named after the kind:
| Element | ID tag |
|---|---|
| Node (all node types, including vertiports) | node_id |
| Corridor way | corridor_id |
| Route relation | route_id |
A route relation is gated by type=air_route, not type=route. In
OpenStreetMap, type=route is a public relation type meaning a real-world
transport route (bus, hiking, bicycle, railway) and it requires a
route=<mode> subtag naming that mode; a UAM corridor sequence satisfies
neither, and JOSM reported the old spelling on every route relation.
air_route reads as an aerial route and carries no product name.
This semantic ID is the public identity of the element: demand configs,
operation-strategy element_overrides, ACI calls, and simulation outputs all
reference elements by it. IDs share one uniqueness namespace across kinds; a
duplicate anywhere in the file is rejected. A retired shared object_id tag
is ignored with one warning that names the per-kind tag to use (see
Tag Policy).
The raw integer OSM element id (the id JOSM assigns to <node>, <way>, and
<relation> elements) is internal XML plumbing only: JOSM manages it and the
loader uses it to resolve <nd ref> / <member ref> links while reading the
file. It never appears in runtime objects, outputs, or APIs, and neither users
nor code should reference it.
LOFT-Edit’s Auto-Split Corridors sidebar action pre-splits corridors at
topology boundaries so each resulting OSM way is one fully independent
corridor with its own stable corridor_id. The simulator performs the same
canonicalization automatically at load time: an unsplit
corridor whose interior node is shared, access-controlled, diverging, or a
vertiport is split there, the first segment keeps the original corridor_id,
and every later segment receives a derived {parent}__sN ID (unique across
the whole document). Route relations that reference a split way expand in
place into the ordered segments. The loader reports each auto-split; running
Auto-Split Corridors in the editor remains the recommended way to get stable
IDs written in the network file that downstream configs can reference reliably. Split siblings have no parent
grouping and no shared override semantics. The one-time
scripts/migrate_legacy_network.py tool performs the same canonicalization
for legacy networks.
Vertiport pad capacity is a node resource (pad_count, default 1 when the
tag is absent). At load time the simulator derives departure and arrival
terminal zones at corridors whose route endpoints are Vertiport nodes, using
configured distance, travel-time, and clearance-altitude conditions. This
shared resource model does not require a separately drawn vertiport_interface
corridor class.
A node_type=cont_site node is also an airspace-network
element, even while no corridor references it. An unreferenced site is a
passive, zero-degree node. If a corridor references it later, it participates
only as ordinary topology: it is not an OD terminal, has no derived
arrival/departure or pad behavior, and is not an operation/ACI resource. This
keeps the schema and visualization forward-compatible without pre-empting the
later corridor-interface and contingency-operation model.
Way Classification: way_type
A way belongs to the airspace network iff it carries any of way_type or
corridor_id. Ways with neither tag are silently ignored context (background
geometry, editor infrastructure sites), exactly like ordinary nodes no
corridor references. Standalone contingency landing sites are the explicit
node exception described above. That is a presence test only. A way that carries only a
corridor_id is a full airspace corridor — forgetting the type tag no longer
makes a corridor silently vanish.
way_type is the canonical structural classification of an airspace way,
and the only way classification there is:
way_type |
Meaning |
|---|---|
corridor (default) |
An ordinary corridor resource |
vertiport_terminal |
A corridor drawn as an explicit vertiport interface leg |
An absent way_type defaults to corridor silently. An unknown value produces
one warning and is treated as corridor. Set it explicitly;
scripts/migrate_legacy_network.py writes it for legacy files that only
implied it through the retired corridor_type label (see
Retired Tags).
The travel direction of a corridor IS the order of its nodes in the file (the
OSM nd order); reverse/bidirectional execution is not implemented.
A corridor without a nominal_speed tag has exactly ONE fallback: the
configured vehicle.cruise_speed. Set nominal_speed on every corridor that
should not fly at the vehicle cruise speed; the older per-label speed keys are
gone (see Other Retired Keys).
Tag Units
Network tag values carry no unit suffix in the tag NAME. A measurement tag may
carry an explicit unit in its VALUE (nominal_speed=17, altitude=80 m,
geofencing_buffer=40 ft); metres and metres per second are the defaults, and
ft/feet/foot are converted.
altitude is height above the ground directly below the point — above ground
level (AGL), not above mean sea level. altitude=80 m on a node means 80 m of
clearance over whatever is under that node. The unit alone does not locate a
point vertically, so the datum is declared alongside it, in
loft.core.osm_schema.ALTITUDE_DECLARATION.
AGL is chosen to compose with the two things this contract already touches. OSM’s
own height is a height above the ground at the object rather than an elevation,
and this network is an OSM file; and a building’s top is building height +
ground elevation, so an AGL flight altitude compares against a building in one
subtraction within the same datum. An MSL altitude would need the ground
elevation under every waypoint before any comparison could be made.
There is no terrain model in the simulator: ground is a flat plane at 0, so AGL
and MSL currently coincide and no output can tell them apart. The datum is stated
now precisely because it is invisible now — when terrain is added the semantics
are already fixed rather than being decided by whoever writes the terrain lookup.
The consequence to expect then: over sloping ground a constant-altitude
corridor follows the terrain instead of being level, and a corridor that must be
level has to be given per-waypoint altitudes.
| Tag | Element | Unit | Datum | Default |
|---|---|---|---|---|
altitude |
node | m | AGL | required |
pad_count |
vertiport node | count | — | 1 |
smoothing_weight |
node | ratio | — | 1.0 |
smoothing_anchor |
node | boolean | — | false |
nominal_speed |
way | m/s | — | vehicle.cruise_speed |
geofencing_buffer |
way | m | — | separation.geofencing_buffer |
vehicle_access |
way | name list | — | all types |
way_type |
way | name | — | corridor |
Every node referenced by a corridor carries an explicit altitude, so ordered
OSM node references define the complete 3D path. The simulator does not
insert vertical endpoint legs, infer vertical interfaces from topology, or
rewrite the geometry at load time. Optional
network smoothing
(catmull_rom, bspline, nurbs or chaikin, the same strict names
LOFT-Edit’s preview uses) changes only the runtime and preview geometry; the
OSM file remains the editable source. Use the one-time
scripts/migrate_legacy_network.py converter for an older two-dimensional map;
Migrate an Older Network
shows its dry run and its --write options.
Tag Policy
- Absent optional tags take their documented defaults silently — the loader never warns about something you did not write.
- Present but malformed optional values (for example an unparseable
nominal_speed,geofencing_buffer, orpad_count) produce one warning and fall back to the same default as an absent tag. Structure and geometry stay strict: identity collisions among ingested elements, broken references, and missing/invalid node coordinates or altitudes are errors. - Registered non-network tags — operation-strategy rules
(
min_headway,sequencing_rule, …), way-levelaltitude(altitude lives on nodes), retired geometry flags, legacy static spellings (pad_counts,nominal_speed_mps,geofencing_buffer_m,vehicle_class), and the retiredobject_idtag — produce one warning per element and are ignored; their values are never honored.scripts/migrate_legacy_network.pyrenames/relocates them. - Retired tags — node and way
resource_type, wayservice_classandpriority_level, and a route relation’s displayname— are treated the same way: one warning per element, and the value is ignored. The migration tool drops them. A corridor resource is always the canonicalcorridorresource, and a node resource derives from itsnode_type. - The relation gate is
type=air_routeonly.type=routeis rejected with the replacement named, and the retiredobject_type=routealias is gone. - Genuinely unknown tags are silently ignored.
- Validation applies to ingested elements only (nodes referenced by an
airspace way, airspace ways, and route relations). Non-ingested elements may
carry any ids or tags — they never reach the runtime. CNS infrastructure
sites live in their own
.osmlayer (input.infrastructure_file), so a site node left in an old network file is just another unreferenced node.
Retired Tags
Older files can carry tags that are no longer part of the contract, such as
the way tags corridor_type, direction and priority_corridor. They load:
each produces one warning per element, its value is ignored, and
scripts/migrate_legacy_network.py drops it or moves it to its replacement.
Retired and Legacy Tags
lists every one with what replaces it, and
Retired Forms That Stop the Load
lists the older forms the loader rejects.