Skip to content

Instantly share code, notes, and snippets.

View babette-landmesser's full-sized avatar

Babette Landmesser babette-landmesser

View GitHub Profile
@bmoren
bmoren / fence.js
Created July 1, 2015 21:55
HTML5 geolocation geofence location detection (without geofence API)
window.onload = function() {
var startPos;
var startPosLat;
var startPosLong;
var distance;
if (navigator.geolocation) {
startPosLat = 44.95716993150707;
startPosLong = -93.28439280496818;