async getLocation() {
const requestInfo: geoLocationManager.LocationRequest = {
'priority': geoLocationManager.LocationRequestPriority.FIRST_FIX,
'scenario': geoLocationManager.LocationRequestScenario.UNSET,
'timeInterval': 1,
'distanceInterval': 0,
'maxAccuracy': 0
}
}
先获取位置信息,参考文档:https://developer.huawei.com/consumer/cn/doc/atomic-guides-V5/atomic-location-development-V5
再进行位置信息坐标转换,参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/map-site-V5\#section6201636113110