Crate osmio

source ·
Expand description

Read and write OpenStreetMap files

Reading files

use osmio::prelude::*;

let mut reader = osmio::read_pbf("path/to/filename.osm.pbf")?;
for obj in reader.objects() {
    // ...
}

Modules

  • PBF/Protobuf file format and return ArcOSMObj’s
  • Changeset dump files
  • Base OpenStreetMap object types
  • OSC File format
  • Read PBF file (currently alias for arcpbf::)
  • Useful things for osmio
  • PBF/Protobuf file format and return StringOSMObj’s
  • Misc local utilities
  • XML file format

Structs

Enums

Constants

Traits

  • A Node
  • Something which could be any one of the possible OSM objects
  • The basic metadata fields all OSM objects share
  • A Generic reader that reads OSM objects
  • A generic writer for OSM objects.
  • A Relation
  • A Way

Functions

Type Aliases

  • Type that stores the OSM Id