nsIGeolocationUpdate

Interface provides a way for a geolocation provider to
notify the system that a new location is available.

Methods

update(position)

Notify the geolocation service that a new geolocation
has been discovered.
This must be called on the main thread

locationUpdatePending()

Notify the geolocation service that the location has
potentially changed, and thus a new position is in the
process of being acquired.

notifyError(error)

Notify the geolocation service of an error.
This must be called on the main thread.
The parameter refers to one of the constants in the
nsIDOMGeoPositionError interface.
Use this to report spurious errors coming from the
provider; for errors occurring inside the methods in
the nsIGeolocationProvider interface, just use the return
value.