我正在使用 navigator.geolocation.getCurrentPosition()
函数来获取手机的当前位置。
它返回给我很多信息,例如纬度、经度......以及准确性。我想知道准确度使用的单位是什么,因为我没有相关信息,它只是返回一个数字。
例如,我得到返回的准确度:921
,它们是米吗?它们是英里吗?我没有找到相关文档。
如果存在最大值,我想知道准确度的最大值是多少
最佳答案
准确度以米表示,如 Mozilla 文档中所述:
The Coordinates.accuracy read-only property is a strictly positive double representing the accuracy, with a 95% confidence level, of the Coordinates.latitude and Coordinates.longitude properties expressed in meters.
来源: https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/altitude
关于javascript - 在 React Native 中使用 navigator.geolocation.getCurrentPosition 在哪个单元显示准确性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56219028/