maxAccuracy property
Indicates accuracy information, in meters. Only effective in accurate location function scenarios (when both ohos.permission.APPROXIMATELY_LOCATION and ohos.permission.LOCATION permissions are granted), and meaningless in fuzzy location function scenarios (when only ohos.permission.APPROXIMATELY_LOCATION permission is granted). The default value is 0, and the value range is greater than or equal to 0. When the scenario is NAVIGATION/TRAJECTORY_TRACKING/CAR_HAILING or the priority is ACCURACY, it is recommended to set maxAccuracy to a value greater than 10. When the scenario is DAILY_LIFE_SERVICE/NO_POWER or the priority is LOW_POWER/FIRST_FIX, it is recommended to set maxAccuracy to a value greater than 100. 表示精度信息,单位是米。 仅在精确位置功能场景(同时授予了ohos.permission.APPROXIMATELY_LOCATION和ohos.permission.LOCATION 权限)下有效,模糊位置功能生效场景(仅授予了ohos.permission.APPROXIMATELY_LOCATION 权限)下该字段无意义。 默认值为0,取值范围为大于等于0。 当场景为NAVIGATION/TRAJECTORY_TRACKING/CAR_HAILING或者优先级为ACCURACY时,建议将maxAccuracy设置为大于10的值。 当场景为DAILY_LIFE_SERVICE/NO_POWER或者优先级为LOW_POWER/FIRST_FIX时,建议将maxAccuracy设置为大于100的值。
Implementation
final int? maxAccuracy;