var Location = function () {


    this.options = {
        enableHighAccuracy: true,
        timeout: 5000,
        maximumAge: 0
    };

//    {
//        users: {
//            "Aaron Melocik": {
//                "pollsCreated": {
//
//                }
//            },
//            "Mike Luby": {
//
//            }
//        }
//
//
//    }


}







if ("geolocation" in navigator) {
    /**
     * geolocation.prototype is:
     *
     *   getCurrentPosition()
     *   clearWatch()
     **/


    var location = navigator.geolocation;

} else {
    console.log('not here')
}





};

Location.prototype.constructor = Location;
@@ -1,12 +1,234 @@
+/**%0A * geolocation.prototype is:%0A *   getCurrentPosition()%0A *   clearWatch()%0A *%0A * Returns:%0A *   coordinates: %7B%0A *     latitude: 123,%0A *     longitude: 123,%0A *     accuracy: 123 // in meters%0A *   %7D // end coordinates%0A **/%0A
 var Location
@@ -244,22 +244,44 @@
 on () %7B%0A
+    var _this = this;
 %0A%0A    
+_
 this.opt
@@ -380,229 +380,171 @@
 %7D;%0A%0A
-//    %7B%0A//        users: %7B%0A//            %22Aaron Melocik%22: %7B%0A//                %22pollsCreated%22: %7B%0A//%0A//                %7D%0A//            %7D,%0A//            %22Mike Luby%22: %7B%0A//%0A//            %7D%0A//        %7D%0A//%0A//%0A//    %7D%0A%0A%0A%7D%0A%0A%0A%0A%0A%0A%0A%0A
+    _this.coordinates = %7B%7D;%0A%7D; // end Location()%0A%0ALocation.prototype.constructor = Location;%0A%0ALocation.prototype.getLocation = function() %7B%0A  var _this = this;%0A%0A  
 if (
@@ -581,19 +581,18 @@
     
-/**%0A     * 
+navigator.
 geol
@@ -603,221 +603,495 @@
 ion.
-prototype is:%0A     *%0A     *   getCurrentPosition()%0A     *   clearWatch()%0A     **/%0A%0A%0A    var location = navigator.geolocation;%0A%0A%7D else %7B%0A    console.log('not here')%0A%7D%0A%0A%0A%0A%0A%0A%7D;%0A%0ALocation.prototype.constructor = 
+getCurrentPosition(function(pos) %7B%0A      _this.coordinates = pos.coords;%0A    %7D;%0A%0A    console.log('DEBUG: position is ',  _this.coordinates.latitude, _this.coordinates.longitude, '; accuracy = ', _this.coordinates.accuracy, ' m.'); // Your current position is:%0A    return _this.coordinates;%0A  %7D, function(error) %7B // end if (%22geolocation%22 in navigator)%0A    console.warn('ERROR(' + err.code + '): ' + err.message, 'your device may not support location.');%0A  %7D, options);%0A%7D; // end get
 Location
 ;
@@ -1081,17 +1081,18 @@
  end getLocation
-;
+()

add Location service