WebIDLpedia

Geolocation interface

Definition

Geolocation defines Geolocation



[Exposed=Window]
interface Geolocation {
  undefined getCurrentPosition (
    PositionCallback successCallback,
    optional PositionErrorCallback? errorCallback = null,
    optional PositionOptions options = {}
  );

  long watchPosition (
    PositionCallback successCallback,
    optional PositionErrorCallback? errorCallback = null,
    optional PositionOptions options = {}
  );

  undefined clearWatch (long watchId);
};

Methods and attributes that return objects implementing Geolocation

Referring IDL interfaces/dictionaries