geoutils
Geoutils is a evolving crate to provide several geological computations and utilities. Most computations are based off methods on the Location struct.
Find the full API reference at docs.rs.
Examples
- Get the distance between two points using Vincenty's Inverse Formula.
extern crate geoutils;
use Location;
let berlin = new;
let moscow = new;
let distance = berlin.distance_to.unwrap;
println!;
- Get the distance between two points using the Haversine Formula.
extern crate geoutils;
use Location;
let berlin = new;
let moscow = new;
let distance = berlin.haversine_distance_to;
println!;
- Get the center of a list of coordinates.
extern crate geoutils;
use Location;
let berlin = new;
let moscow = new;
let center = center;
println!;
- Check if a point falls in a certain radius of another point.
extern crate geoutils;
use ;
let berlin = new;
let moscow = new;
let is_in_radius = berlin.is_in_circle.unwrap;
println!;
License
Apache-2.0