A crate to return your GPS location using WiFi hotspots.
Inspired by Fractals wifi-location (https://github.com/contra/wifi-location)
Full documentation can be found here.
This crate is on crates.io and can be
used by adding wifilocation
to the dependencies in your project's Cargo.toml
.
toml
[dependencies]
wifilocation = "0.3"
and this to your crate root:
rust
extern crate wifilocation;
```rust use wifilocation;
println!("{:?}", wifilocation::getlocation(wifilocation::gettowers())); ```
Copyright 2016 Mark Sta Ana.
Licensed under the Apache License, Version 2.0