ActionScript Location Service API

The Location Service API is supported since Flash Lite Player 3.0 on S60 5th Edition devices.

The Location Service API allows Flash Lite applications to retrieve information about the physical location of a device and to perform calculations based on location information. The API is integrated into Flash Lite through the Service object.

For an overview of the service and the API, see section Accessing device location information.

Using the Location Service API

To use the Location Service API, your Flash Lite application must first create a Service object for it. Use Service.Location to identify the service provider and ILocation to identify the supported interface:

var location = new Service("Service.Location", "ILocation");

This service object can then be used to access the services provided by the API:

For the location services to function on an S60 device, the device must be location aware. It must include some location information provider, such as GPS, AGPS, or GPS across Bluetooth.