By using location APIs, an application can:
RequestParam allows your application to specify location request parameters.
After a LocatorCallback object is instantiated, your application can initiate a location request
by calling Locator. If the location request is successful, your application
can then call LocatorCallback to obtain the Location information.
Locator allows the application to directly obtain Location information cached in the system.
GeoConvert allows your application to convert location coordinates and location description
into GeoAddress information.
| 接口 | 说明 |
|---|---|
| LocatorCallback |
Provides a callback interface for the system to report the device location.
|
| SwitchCallback |
Provides a callback interface for the system to report the location service switch status.
|
| 类 | 说明 |
|---|---|
| GeoAddress |
Represents a data class that describes geographic locations.
|
| GeoConvert |
Implements mutual conversion between geographic location and address information.
|
| Location |
Represents a data class that provides information about geographic locations.
|
| Locator |
Provides interfaces for initiating location requests, ending the location service,
and obtaining the location result cached by the system.
|
| RequestParam |
Provides data classes for configuring parameters in location requests.
|