Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location Acquisition API overview


Purpose

This document describes the Location Acquisition API. Client applications use the API to obtain the location of the mobile device and to discover the type and status of the available positioning modules.

[Top]


Introduction

The Location Acquisition API defines the client application view of the LBS location server. The API is a standard Symbian OS client-server implementation. Applications use the API to:

[Top]


Key concepts

Location server

The Symbian OS server used by client applications to get location information. The location server is part of the location framework. The location server can use multiple positioning technology modules to obtain location information. Location information can be obtained from the network and from A-GPS hardware.

Location framework

The part of the LBS subsystem that handles requests for location from client applications and from the network. Components within the location framework interact with positioning technology modules to get location information.

Positioning technology module

A software component that handles requests for location information and interfaces with the underlying positioning technology hardware or the network.

[Top]


API summary

Figure 1 illustrates the client interface classes of the Location Acquisition API including the data classes that hold basic location information. To use the Location Acquisition API, a client application includes the system header file Lbs.h and links to the library LbsSelfLocate.dll (LbsSelfLocate.lib).

The following is a brief description of some of the most important API classes:

Figure 1. RPositionServer and RPositione...

Figure 1. RPositionServer and RPositioner with basic position data classes

[Top]


Typical uses

Client applications use the API in three ways:

1. To get location information

The main purpose of the Location Acquisition API is to provide location information to client applications.

See How to get location information for an example of how to get basic location information using the API.

2. To get positioning technology module information

The API provides functions to allow discovery of the capabilities and quality of information provided by the set of positioning technology modules.

See Positioning technology modules for a description of the positioning technology module information which is accessible to client applications using the API.

See How to use module information for an example of how to obtain information about the available modules.

See Positioning technology module selection criteria for an explanation of module selection criteria.

See How to use module selection criteria for an example of how to use these criteria to get location information of the required accuracy.

3. To receive notification of positioning technology module status changes

An application may wish to be informed when a module becomes available or unavailable. For example, an application may want to know when GPS becomes available as this may increase its capabilities and so change its behaviour. The API provides a way for client applications to receive notification of module status changes.

See Positioning technology module status for a description of positioning module status and events.

See How to get module status change notifications for an example of how to get notification of module status changes.

[Top]


See also

Position data and info classes

Positioning technology modules