https://github.com/wisespace-io/fenrir
Get geolocation of wifi devices using services such as wigle.net
https://github.com/wisespace-io/fenrir
ble bluetooth geolocation wifi wigle
Last synced: 10 months ago
JSON representation
Get geolocation of wifi devices using services such as wigle.net
- Host: GitHub
- URL: https://github.com/wisespace-io/fenrir
- Owner: wisespace-io
- License: other
- Created: 2020-07-10T13:49:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T17:58:06.000Z (about 6 years ago)
- Last Synced: 2025-02-28T07:57:10.356Z (over 1 year ago)
- Topics: ble, bluetooth, geolocation, wifi, wigle
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fenrir
Locates wifi devices using services such as wigle.net
[](https://crates.io/crates/fenrir)
[](https://travis-ci.org/wisespace-io/fenrir)
[](./LICENSE-MIT)
[](./LICENSE-APACHE)
[Documentation](https://docs.rs/crate/fenrir/)
## Wigle.net api
After creating an account on wigle.net, visit https://wigle.net/account to get your API Token.
It correspondes to the "Encoded for use" field.
```rust
use async_std::task;
use fenrir::api::*;
use fenrir::wigle::api::*;
fn main() -> Result<(), surf::Exception> {
let token = std::env::var("WIGLE_TOKEN").expect("Provide your WIGLE_TOKEN as an environment variable");
task::block_on(async {
let wigle: Wigle = Fenrir::new(Some(token));
let geo_response = wigle.geocode("1600 Amphitheatre Parkway").await?;
dbg!(geo_response);
let search_response = wigle.search_bssid("00:00:00:00:00:00").await?;
dbg!(search_response);
Ok(())
})
}
```
## Mylnikov api
It does not require an API token, it is completely free.
```rust
use async_std::task;
use fenrir::api::*;
use fenrir::mylnikov::api::*;
fn main() -> Result<(), surf::Exception> {
task::block_on(async {
let mylnikov: Mylnikov = Fenrir::new(None);
let search_response = mylnikov.search_bssid("00:00:00:00:00:00").await?;
dbg!(search_response);
Ok(())
})
}
```