Expand description
use geobuf::{decode, encode};
use serde_json;

let original_geojson = serde_json::from_str(r#"{"type": "Point", "coordinates": [100.0, 0.0]}"#).unwrap();
let geobuf = encode::Encoder::encode(&original_geojson, 6, 2).unwrap();
let geojson = decode::Decoder::decode(&geobuf).unwrap();
assert_eq!(original_geojson, geojson);

Modules

Geobuf to GeoJSON decoder

GeoJSON to Geobuf encoder

Generated file from protos/geobuf.proto