Crate osmx

Source

Modules§

messages_capnp

Structs§

Database
A handle to an OSMX database file
Location
A reader for values in the locations table, which store the coordinates of OSM Nodes.
Node
A reader for a value in the nodes table, which stores the tags and metadata for OSM Nodes.
Region
Relation
A reader for an OSM Relation in the relations table, including its tags, metadata, and list of members.
RelationMember
A reader for a member reference of an OSM Relation. Created by calling Relation::members
Transaction
A handle which can be used to read from the Database. The handle ensures that all reads see the same snapshot of the data, even if it is being modified simultaneously by another process.
Way
A reader for an OSM Way stored in the ways table, including its tags, metadata, and list of constituent Nodes.

Constants§

CELL_INDEX_LEVEL

Type Aliases§

Locations
A table which maps OSM Node IDs to structs containing the Node’s lon/lat coordinates.
Nodes
A table which maps OSM Node IDs to structs containing the Node’s tags and metadata. Untagged nodes are omitted from this table (they only exist in the Locations table).
Relations
A table which maps OSM Relation IDs to structs containing the Relations’s tags, metadata, and the IDs, types, and roles of the Relation’s members.
Ways
A table which maps OSM Way IDs to structs containing the Way’s tags, metadata, and the IDs of the Nodes that make up the Way.