Expand description
This crate contains implementation to read and write Open Street Maps
.
The Osm
struct is an abstract representation of an OSM map. You can build your map with this
struct by adding nodes, ways and relations. Use the OsmBuilder
if you are working with
non OSM data, it lets you work with polygons, poly lines and points instead.
The osm_io
module contains io functionality for reading and writing multiple OSM formats.
Currently osm and o5m is supported.
The geo
module contains some more general geographic abstractions used by this crate.
Modules§
- General geographic data structures.
- IO functionality for OSM maps.
Structs§
- Author information is used to identify what nodes, ways and relation a specific user has added. When working on non osm maps, this data is irrelevant.
- Common meta data used by multiple entities.
- A coordinate with meta data. See OSM docs for
Node
. - Abstract representation of an OSM map.
OsmBuilder
makes it easy to build OSM maps from non OSM data. Polygons, multi polygons, poly lines and points are all represented as vectors of coordinates.- Group of elements (node, way or relation). See OSM docs for
Relation
. - Key value pairs. See OSM docs for
Tags
. - Group of nodes and meta data. See OSM docs for
Way
.