【发布时间】:2016-10-04 07:18:26
【问题描述】:
谁能建议我如何在 android 应用程序中计算海拔高度。
我正在使用“GoogleApiClient”并在 onLocationChanged(Location location) 中调用方法 location.getAltitude(),但总是得到 0.0,
任何人都可以建议上面的api是否返回正确的值或者有其他方法来计算高度吗?
【问题讨论】:
-
因为设备位置不高于海面
-
不,在同一个地方一些其他应用程序显示高度值 - 197 米