GithubHelp home page GithubHelp logo

watson / wifi-triangulate Goto Github PK

View Code? Open in Web Editor NEW
69.0 8.0 6.0 8 KB

Finds your current position on planet earth using the wifi access points in your vicinity

License: MIT License

JavaScript 100.00%

wifi-triangulate's Introduction

wifi-triangulate

Finds your current position on planet earth using the wifi access points in your vicinity

Build status

js-standard-style

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.

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:

npm install --global wifi-triangulate

Now just execute the wifi-triangulate command:

$ wifi-triangulate
{
    "lat": 38.0690894,
    "lng": -122.8069356,
    "accuracy": 42
}

License

MIT

wifi-triangulate's People

Contributors

matiassingers avatar watson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wifi-triangulate's Issues

Error...

When I run this I get:

Geocoding service returned unexpected status code: 404

Here is how I'm calling it:

    `getPos: function(url) {
	var self = this;
	wifi-triangulate(function (err, location) {
     if (err) throw err
     console.log(location) // => { lat: 38.0690894, lng: -122.8069356, accuracy: 42 } 
     var result = location;
     self.sendSocketNotification("POS_RESULT", result);
     });
      },`

Or can it not be used that way?

Thanks for a great module!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.