_set
private
void
_set
(
lat
,
lon
,
oldLat
,
oldLon
)
- Parameters:
-
lat <Float> -
lon <Float> -
oldLat <Float> -
oldLon <Float>
- Returns:
void
clearWatch
void
clearWatch
(
watchId
)
Clear watching position.
- Parameters:
-
watchId <Object>
- Returns:
void
getCurrentPosition
void
getCurrentPosition
(
successCallback
,
errorCallback
,
options
)
Get current position. Options not yet supported!
- Parameters:
-
successCallback <Object> -
errorCallback <Object> -
options <Object>
- Returns:
void
last
void
last
(
func
)
Get the last calculated position. If there has not been any calculation
before Device.Location.wait will be called. Result via callback.
- Parameters:
-
func <Object>
- Returns:
void
Deprecated Switched to HTML5 API
wait
void
wait
(
func
)
Get the current position and trigger a callback if done.
- Parameters:
-
func <Object>
- Returns:
void
Deprecated Switched to HTML5 API
watchPosition
void
watchPosition
(
successCallback
,
errorCallback
,
options
)
Watch position. Options not yet supported!
- Parameters:
-
successCallback <Object> -
errorCallback <Object> -
options <Object>
- Returns:
void