Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/krishpranav/geohelper
- Owner: krishpranav
- License: gpl-2.0
- Created: 2022-07-03T12:03:14.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-03T12:32:52.000Z (over 2 years ago)
- Last Synced: 2024-12-06T14:48:08.075Z (about 2 months ago)
- Topics: cargo, geo, geolocation, geoutils, gps, linux, location, macos, map, mapping, rust, rust-app, rust-lang, rustlang, rustmap, windows
- Language: Rust
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)