API
Class

Event ($UI/wxsys/comps/geolocation/geolocation#getLocation#success#event)

使用范围:WX

Contents

class Event ($UI/wxsys/comps/geolocation/geolocation#getLocation#success#event)

获取当前地理位置参数

Constructor Top

  event ()

Properties Top

String accuracy

位置的精确度

String address

详细地址

String city

城市

String district

区县

Double latitude

纬度,浮点数,范围为-90~90,负数表示南纬

Double longitude

经度,浮点数,范围为-180~180,负数表示西经

String nation

国家

String province

省份

Double speed

浮点数,单位m/s

String street

街道

String street_number

街道号码

Constructor details Top

public event ()

获取当前地理位置参数

Properties Detail Top

public String accuracy

位置的精确度

public String address

详细地址

public String city

城市

public String district

区县

public Double latitude

纬度,浮点数,范围为-90~90,负数表示南纬

public Double longitude

经度,浮点数,范围为-180~180,负数表示西经

public String nation

国家

public String province

省份

public Double speed

浮点数,单位m/s

public String street

街道

public String street_number

街道号码