Know Your Location — Voiding My Firefox Warranty

The Geolocation API

navigator.geolocation.getCurrentPosition(function(position) {    
console.log(position);
});
Web Console Output

Void Your Firefox Warranty

geolocate service
$ npm install http-echo-server
$ http-echo-server
[server] event: listening (port: 8000)
[server] event: connection (socket#1)
[socket#1] event: resume
[socket#1] event: data
--> POST / HTTP/1.1
--> Host: localhost:8000
--> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0
--> Accept: */*
--> Accept-Language: en-US,en;q=0.5
--> Accept-Encoding: gzip, deflate
--> Content-Type: application/json; charset=UTF-8
--> Content-Length: 1198
--> Connection: keep-alive
-->
--> {"wifiAccessPoints":[{"macAddress":"81:3a:a9:88:80:58","signalStrength":-85},{"macAddress":"4c:97:6d:79:42:bf","signalStrength":-88},{"macAddress":"74:bc:0c:7f:0b:19","signalStrength":-84},{"macAddress":"00:a7:42:be:72:7f","signalStrength":-71},{"macAddress":"4c:66:6d:79:40:df","signalStrength":-85},
...]}
{
"location": {
"lat": 20.6842849,
"lng": -88.567782
},
"accuracy": 101.0
}

HERE Positioning API

Positioning Proxy Server
Fox hugging a map.

--

--

--

Manage Developer Relations @Dolby; Maker at Robot Garden; Previously HERE, GE, Rackspace, DreamWorks Animation, MathWorks, Carnegie Mellon

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Version 1.2: Finding the Area of Shanghai: A Case of Civil Engineering (preview)

Get notified when gas price is cheap ⛽️👍

Mortgage Fraud Attorney

mortgage fraud attorney

Story of StackOverflow.com

How to reverse a linked list

Weekly update: Dec 11, 2018

Data Algorithms in Python

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jayson DeLancey

Jayson DeLancey

Manage Developer Relations @Dolby; Maker at Robot Garden; Previously HERE, GE, Rackspace, DreamWorks Animation, MathWorks, Carnegie Mellon

More from Medium

Don’t Develop Drunk

Meeting…Black Technology Talent at The New York Times

Object.keys() || Object.values()

How we work at data.works — Job Profiles