智能客服
你问我答,随时在线为你解决问题

























此版本文档已归档不再维护,推荐您使用最新版本。
| CLASS info |
| public class HWLocation extends LocationBaseResponse implements Parcelable |
| 位置信息,包括详细地址 |
| Return type | Method name |
| double | getLatitude() |
| double | getLongitude() |
| double | getAltitude() |
| float | getSpeed() |
| float | getBearing() |
| float | getAccuracy() |
| float | getVerticalAccuracyMeters() |
| float | getSpeedAccuracyMetersPerSecond() |
| float | getBearingAccuracyDegrees() |
| String | getProvider() |
| long | getTime() |
| long | getElapsedRealtimeNanos() |
| String | getCountryCode() |
| String | getCountryName() |
| String | getState() |
| String | getCity() |
| String | getCounty() |
| String | getStreet() |
| String | getFeatureName() |
| String | getPostalCode() |
| String | getPhone() |
| String | getUrl() |
| Map | getExtraInfo() |
| Method |
| public double getLatitude() |
| 返回位置信息的纬度 |
Return
| type | desc |
| double | 位置信息的纬度,如果没有则返回0.0 |
| Method |
| public double getLongitude() |
| 返回位置信息的经度 |
Return
| type | desc |
| double | 位置信息的经度,如果没有则返回0.0 |
| Method |
| public double getAltitude() |
| 返回位置信息的海拔 |
Return
| type | desc |
| double | 位置信息的海拔,如果没有则返回0.0 |
| Method |
| public float getSpeed() |
| 返回设备在当前位置的速度,单位:米/秒 |
Return
| type | desc |
| float | 设备在当前位置的速度,单位:米/秒,如果没有则返回0.0 |
| Method |
| public float getBearing() |
| 返回设备在当前位置的运动方向,单位:度 |
Return
| type | desc |
| float | 设备在当前位置的运动方向,单位:度,如果没有则返回0.0 |
| Method |
| public float getAccuracy() |
| 返回位置的水平误差,单位:米 |
Return
| type | desc |
| float | 位置的水平误差,单位:米,如果没有则返回0.0 |
| Method |
| public float getVerticalAccuracyMeters() |
| 返回位置的垂直误差,单位:米 |
Return
| type | desc |
| float | 位置的垂直误差,单位:米,如果没有则返回0.0 |
| Method |
| public float getSpeedAccuracyMetersPerSecond() |
| 返回当前位置的速度误差,单位:米/秒 |
Return
| type | desc |
| float | 返回当前位置的速度误差,单位:米/秒,如果没有则返回0.0 |
| Method |
| public float getBearingAccuracyDegrees() |
| 返回当前位置的方向误差,单位:度 |
Return
| type | desc |
| float | 当前位置的方向误差,单位:度,如果没有则返回0.0 |
| Method |
| public String getProvider() |
| 返回定位提供者,如网络定位/GPS/WIFI/蓝牙等 |
Return
| type | desc |
| String | 定位提供者,如网络定位/GPS/WIFI/蓝牙等,如果没有则返回null |
| Method |
| public long getTime() |
| 当前时间戳,毫秒级 |
Return
| type | desc |
| long | 当前时间戳,毫秒级 |
| Method |
| public long getElapsedRealtimeNanos() |
| 返回系统启动以来经过的时间,纳秒级 |
Return
| type | desc |
| long | 返回系统启动以来经过的时间,纳秒级 |
| Method |
| public String getCountryCode() |
| 返回当前位置所属国家码,格式为两字母代码,使用ISO 3166-1国际标准 |
Return
| type | desc |
| String | 国家码,格式为两字母代码,使用ISO 3166-1国际标准,如果没有则返回null |
| Method |
| public String getCountryName() |
| 返回当前位置所属国家名称 |
Return
| type | desc |
| String | 国家名称,如果没有则返回null |
| Method |
| public String getState() |
| 返回当前位置所属行政区域 |
Return
| type | desc |
| String | 行政区域,如果没有则返回null |
| Method |
| public String getCity() |
| 返回当前位置所属城市 |
Return
| type | desc |
| String | 城市,如果没有则返回null |
| Method |
| public String getCounty() |
| 返回当前位置所属区县 |
Return
| type | desc |
| String | 区县,如果没有则返回null |
| Method |
| public String getStreet() |
| 返回当前位置所属街道 |
Return
| type | desc |
| String | 街道,如果没有则返回null |
| Method |
| public String getFeatureName() |
| 返回当前位置的标志性建筑物 |
Return
| type | desc |
| String | 当前位置的标志性建筑物,如果没有则返回null |
| Method |
| public String getPostalCode() |
| 返回当前位置邮编 |
Return
| type | desc |
| String | 当前位置邮编,如果没有则返回null |
| Method |
| public String getPhone() |
| 返回当前位置的标志建筑物(如商家、公司等)的电话 |
Return
| type | desc |
| String | 当前位置的标志建筑物(如商家、公司等)的电话,如果没有则返回null |
| Method |
| public String getUrl() |
| 返回当前位置的标志建筑物(如商家、公司等)的网址 |
Return
| type | desc |
| String | 当前位置的标志建筑物(如商家、公司等)的网址,如果没有则返回null |
| Method |
| public Map<String, Object> getExtraInfo() |
| 返回附加信息 |
Return
| type | desc |
| Map<String, Object> | 附加信息,键值对,如果没有则返回null |
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功