docs: function parseParameters(options) {
      var opt = {
          maximumAge: 0,
          enableHighAccuracy: false,
          timeout: Infinity
      };
  
      if (options) {
          if (options.maximumAge !== undefined && !isNaN(options.maximumAge) && options.maximumAge > 0) {
              opt.maximumAge = options.maximumAge;
          }
          if (options.enableHighAccuracy !== undefined) {
              opt.enableHighAccuracy = options.enableHighAccuracy;
          }
          if (options.timeout !== undefined && !isNaN(options.timeout)) {
              if (options.timeout < 0) {
                  opt.timeout = 0;
              } else {
                  opt.timeout = options.timeout;
              }
          }
      }
  
      return opt;
  }