use osmgraph::api::{OverpassResponse, Element};
use osmgraph::graph::way::{OSMWay, get_osm_ways};
fn main() {
let json: OverpassResponse = OverpassResponse::load_blocking("./assets/test.json")
.expect("Was not able to load json!");
println!("Parsed the json...");
let elements: &Vec<Element> = json.elements();
println!("{} elements in request", elements.len());
let osm_ways: Vec<OSMWay> = get_osm_ways(elements)
.expect("Was not able to parse ways from json!");
println!("{} ways parsed", osm_ways.len());
}