pbf-craft 0.9.0

A Rust library for reading and writing OpenSteetMap PBF file format.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::rc::Rc;

use crate::models::{Node, Relation, Way};

pub struct BlobData {
    pub nodes: Vec<Node>,
    pub ways: Vec<Way>,
    pub relations: Vec<Relation>,
    pub offset: u64,
}

pub trait PbfRandomRead {
    fn read_blob_by_offset(&mut self, offset: u64) -> anyhow::Result<Rc<BlobData>>;
}