Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/krishpranav/geohelper

geolocation utilities for rust projects and applications
https://github.com/krishpranav/geohelper

cargo geo geolocation geoutils gps linux location macos map mapping rust rust-app rust-lang rustlang rustmap windows

Last synced: about 18 hours ago
JSON representation

geolocation utilities for rust projects and applications

Awesome Lists containing this project

README

        

# geohelper
geolocation utilities for rust projects and applications

[![forthebadge](https://forthebadge.com/images/badges/made-with-rust.svg)](https://forthebadge.com)

## Installation:
```rust
geohelper = { git = "https://github.com/krishpranav/geohelper" }
```

## Usage:
```rust
use geohelper::Location;

fn main() {
/**
* random coordinates of two location
*/
let location1 = Location::new(27.740068, 85.337576);
let location2 = Location::new(27.740286, 85.337059);

/**
* calculate the distance between the two location
*/
let distance = location1.distance_to(&location2).unwrap();

/**
* print them out!!
*/
println!("Distance: {}", distance.meters());
}
```

- for more tutorial visit the [docs](https://github.com/krishpranav/geohelper/blob/master/docs/geohelper.md)

## License:
- geohelper is licensed under [GPL-2.0 License](https://github.com/krishpranav/geohelper/blob/master/LICENSE)