Big5 API Documentation

device  1.1.0

Big5 API Documentation > device > Device.Location
Search:
 
Filters

static Class Device.Location

Get the current geo location of the device. This tries to implement the W3C "Geolocation API Specification" (Editor's Draft [DATE: 24 November 2008])
http://dev.w3.org/geo/api/spec-source.html

This is also accesible via navigator.geolocation.

Methods

_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

init

private void init ( )
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


Copyright © 2009 Dirk Holtwick. All rights reserved.