parse open street map protobuf files and scan for records with explicit file offsets
This crate differs from osmpbf mainly in that you get explicit u64 file offsets for jumping and scanning and can bring your own concurrency strategy by creating many file handles and parser instances for the same file to fan out operations in parallel.
This example loops over all the blobs in an osmpbf file and prints diagnostic info such as the element type (node, way, or relation), the file offset and byte length of each blob, the number of items, and the range of ids.
```rust,norun use std::fs::File; use osmpbfparser::{Parser,Element};
type Error = Box
fn main() -> Result<(),Error> {
let args = std::env::args().collect::
There are more explicit routines to read the file block, blob header, and blob without decoding.