2 releases

new 0.1.1 Sep 7, 2024
0.1.0 Jul 2, 2024

#20 in #gcloud

Download history 133/week @ 2024-06-29 7/week @ 2024-07-06

101 downloads per month

MIT license

14KB
73 lines

wifilocate

A crate to return your GPS location using WiFi network mac addresses.

Usage

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.

Example


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.

Changelog

  • 0.1.0 - Initial release
  • 0.1.1 - Small bug fixes

Copyright 2024 [Brian Vuku]

see LICENSE

Dependencies

~10–23MB
~346K SLoC