code: function(error) {
      if (error.code == 1) {
        log("Error: PERMISSION_DENIED: User denied access to their location");
      } else if (error.code === 2) {
        log("Error: POSITION_UNAVAILABLE: Network is down or positioning satellites cannot be reached");
      } else if (error.code === 3) {
        log("Error: TIMEOUT: Calculating the user's location too took long");
      } else {
        log("Unexpected error code")
      }
    }
docs: /* Handles any errors from trying to get the user's current location