| Crates.io | wifilocate |
| lib.rs | wifilocate |
| version | 0.1.7 |
| created_at | 2024-07-02 10:44:33.257224+00 |
| updated_at | 2024-09-30 19:36:45.63444+00 |
| description | Get your gps location from wifi networks |
| homepage | |
| repository | https://github.com/brayo-pip/wifilocate |
| max_upload_size | |
| id | 1289446 |
| size | 48,794 |
A crate to return your GPS location using WiFi network mac addresses.
This crate is on crates.io and can be
used by adding wifilocate to the dependencies in your project's Cargo.toml.
[dependencies]
wifilocate = "0.1"
This crate requires an API key from Google to use the Geolocation API.
You will be prompted to set the key when you use the crate.
use wifilocate;
#[tokio::main]
async fn main(){
println!( "{:?}",
wifilocate::get_location(wifilocate::get_networks()).await.ok()
);
}
Note that this script requires elevated privileges to work. It's preferable that you build the binary then either use chown or run with sudo.
Alterna
Copyright 2024 [Brian Vuku]
see LICENSE