zonebuilder 0.3.0

A crate and command-line interface to create regular geographic zones for urban analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use geo::Point;
use serde_json::to_string_pretty;
use structopt::StructOpt;
use zonebuilder::{clockboard, Params};

fn main() {
    // eprintln!("{:#?}", Params::default());

    let gj = clockboard(Point::new(0.0, 0.0), Params::from_args());
    // See https://github.com/georust/geojson/issues/161 for details
    let gjstring = to_string_pretty(&gj).unwrap();
    println!("{}", gjstring);
    // Write output if output provided
    // write!(&mut opt::output, "{}", gjstring);
}