OpenLR Rust implementation
Binary (and Base64) ser/deserialization of OpenLR Location References (version 3) with basic support for line encoder and decoder capabilities.
Reference Implementation (Java)
License
Licensed under either of
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
Examples
Serialization
use ;
let location = GeoCoordinate;
let encoded: String = serialize_base64_openlr.unwrap;
let decoded: LocationReference = deserialize_base64_openlr.unwrap;
Decoding and Encoding
use ;
;
type VertexId = i64;
type EdgeId = i64;
let graph = RoadNetworkGraph;
let location: =
decode_base64_openlr.unwrap;
let location: String =
encode_base64_openlr.unwrap;