Labs/Geode: Difference between revisions
< Labs
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
navigator.lastPosition | navigator.lastPosition | ||
navigator.getCurrentPosition( successCallback, errorCallback, options ) // | navigator.getCurrentPosition( successCallback, errorCallback, options ) | ||
navigator.watchPosition (successCallback, errorCallback, options) | |||
navigator.clearWatch( watchID ) | |||
The option argument for both <code>getCurrentPosition</code> and <code>watchPosition</code> functions is ignored. Also, because of various implementation details, <code>watchPosition</code> will call the callback every 30 seconds even if you haven't moved. | |||
Revision as of 06:14, 7 October 2008
Geode is based on the W3C specification for geolocation in the browser. In particular it implements
navigator.lastPosition navigator.getCurrentPosition( successCallback, errorCallback, options ) navigator.watchPosition (successCallback, errorCallback, options) navigator.clearWatch( watchID )
The option argument for both getCurrentPosition and watchPosition functions is ignored. Also, because of various implementation details, watchPosition will call the callback every 30 seconds even if you haven't moved.