geolocator_ohos library

Classes

CountryCode
Country code structure. 国家码信息,包含国家码字符串和国家码的来源信息。 See also: https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-location-kit/js-apis-geoLocationManager.md#countrycode
CurrentLocationSettingsOhos
Current location information request parameters. 表示当前位置信息请求参数。 参考链接:https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-location-kit/js-apis-geoLocationManager.md#currentlocationrequest
GeoAddress
Data struct describes geographic locations. 地理编码地址信息。 See also: https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-location-kit/js-apis-geoLocationManager.md#geoaddress
GeoCodeRequest
Configuring parameters in geocode requests. 地理编码请求参数。 See also: https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-location-kit/js-apis-geoLocationManager.md#geocoderequest
GeolocatorOhos
An implementation of GeolocatorPlatform that uses method channels.
GeolocatorPlatform
The interface that implementations of geolocator must implement.
LocationImplements
LocationSettings
Represents the abstract LocationSettings class with which you can configure platform specific settings.
LocationSettingsOhos
Location information request parameters. 表示位置信息请求参数。 参考链接:https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-location-kit/js-apis-geoLocationManager.md#locationrequest
Position
Contains detailed location information.
PositionOhos
Location information. 位置信息。 参考链接:https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-location-kit/js-apis-geoLocationManager.md#location
ReverseGeoCodeRequest
Configuring parameters in reverse geocode requests. 逆地理编码请求参数。 See also: https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-location-kit/js-apis-geoLocationManager.md#reversegeocoderequest

Enums

CountryCodeType
Enum for country code type. 国家码来源类型。 See also: https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-location-kit/js-apis-geoLocationManager.md#countrycodetype
LocationAccuracy
Represent the possible location accuracy values.
LocationAccuracyStatus
Represent the current Location Accuracy Status on iOS 14.0 and higher.
LocationPermission
Represent the possible location permissions.
LocationRequestPriority
The type of location information priority in a location request. 位置请求中位置信息优先级类型。 See also: https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-location-kit/js-apis-geoLocationManager.md#locationrequestpriority
LocationRequestScenario
The type of location scenario in a location request. 位置请求中定位场景类型。 See also: https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-location-kit/js-apis-geoLocationManager.md#locationrequestscenario
ServiceStatus
Describes the current state of the location service on the native platform.

Mixins

CommonMixin
通用的
GeocoderMixin
(逆)地理编码转化
GnssFenceStatusMixin
地理围栏就是虚拟地理边界,当设备进入、离开某个特定地理区域时,可以接收自动通知和警告。

Exceptions / Errors

ActivityMissingException
An exception thrown when executing functionality which requires an Android while no activity is provided.
AlreadySubscribedException
An exception thrown when subscribing to receive positions while another subscription is already active.
InvalidPermissionException
An exception thrown when trying to convert a unknown permission into the LocationPermission enum.
LocationServiceDisabledException
An exception thrown when trying to access the device's location information while the location service on the device is disabled.
PermissionDefinitionsNotFoundException
An exception thrown when the required platform specific permission definitions could not be found (e.g. in the AndroidManifest.xml file on Android or in the Info.plist file on iOS).
PermissionDeniedException
An exception thrown when trying to access the device's location information while access is denied.
PermissionRequestInProgressException
An exception thrown when requesting location permissions while an earlier request has not yet been completed.
PositionUpdateException
An exception thrown when something went wrong while listening for position updates.