Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/watson/wifi-triangulate
Finds your current position on planet earth using the wifi access points in your vicinity
https://github.com/watson/wifi-triangulate
Last synced: 12 days ago
JSON representation
Finds your current position on planet earth using the wifi access points in your vicinity
- Host: GitHub
- URL: https://github.com/watson/wifi-triangulate
- Owner: watson
- License: mit
- Created: 2015-06-13T23:31:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-23T14:25:43.000Z (over 8 years ago)
- Last Synced: 2024-10-29T14:52:05.324Z (3 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 70
- Watchers: 8
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-network-js - wifi-triangulate
README
# wifi-triangulate
Finds your current position on planet earth using the wifi access points
in your vicinity[![Build status](https://travis-ci.org/watson/wifi-triangulate.svg?branch=master)](https://travis-ci.org/watson/wifi-triangulate)
[![js-standard-style](https://raw.githubusercontent.com/feross/standard/master/badge.png)](https://github.com/feross/standard)
## Installation
```
npm install wifi-triangulate
```## Usage
This module requires that the wifi card on your computer is active and
that you have access to the internet in order to communicate with Google
so that it can triangulate your position.```js
var triangulate = require('wifi-triangulate')triangulate(function (err, location) {
if (err) throw err
console.log(location) // => { lat: 38.0690894, lng: -122.8069356, accuracy: 42 }
})
```## CLI
Install wifi-triangulate as a global module to use it as a CLI:
```sh
npm install --global wifi-triangulate
```Now just execute the `wifi-triangulate` command:
```sh
$ wifi-triangulate
{
"lat": 38.0690894,
"lng": -122.8069356,
"accuracy": 42
}
```## License
MIT