GeoAddress class
Data struct describes geographic locations. 地理编码地址信息。 See also: https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-location-kit/js-apis-geoLocationManager.md#geoaddress
Constructors
-
GeoAddress.new({double? latitude, double? longitude, String? locale, String? placeName, String? countryCode, String? countryName, String? administrativeArea, String? subAdministrativeArea, String? locality, String? subLocality, String? roadName, String? subRoadName, String? premises, String? postalCode, String? phoneNumber, String? addressUrl, List<
String> ? descriptions, int? descriptionsSize}) - GeoAddress.fromString(String json)
-
factory
Properties
- addressUrl → String?
-
Indicates website URL.
表示位置信息附件的网址信息。
final
- administrativeArea → String?
-
Indicates administrative region name.
表示国家以下的一级行政区,一般是省/州。
final
- countryCode → String?
-
Indicates country code.
表示国家码信息。
final
- countryName → String?
-
Indicates country name.
表示国家信息。
final
-
descriptions
→ List<
String> ? -
Indicates additional information.
表示附加的描述信息。目前包含城市编码cityCode(Array下标为0)和区划编码adminCode(Array下标为1),例如
"025","320114001"
。final - descriptionsSize → int?
-
Indicates the amount of additional descriptive information.
表示附加的描述信息数量。取值范围为大于等于0,推荐该值小于10。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- latitude → double?
-
Indicates latitude information.
表示纬度信息,正值表示北纬,负值表示南纬。取值范围为-90到90。
final
- locale → String?
-
Indicates language used for the location description.
表示位置描述信息的语言,“zh”代表中文,“en”代表英文。
final
- locality → String?
-
Indicates locality information.
表示城市信息,一般是市。
final
- longitude → double?
-
Indicates longitude information.
表示经度信息,正值表示东经,负值表是西经。取值范围为-180到180。
final
- phoneNumber → String?
-
Indicates phone number.
表示联系方式信息。
final
- placeName → String?
-
Indicates landmark of the location.
表示地区信息。
final
- postalCode → String?
-
Indicates postal code.
表示邮政编码信息。
final
- premises → String?
-
Indicates house information.
表示门牌号信息
final
- roadName → String?
-
Indicates road name.
表示路名信息。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subAdministrativeArea → String?
-
Indicates sub-administrative region name.
表示国家以下的二级行政区,一般是市。
final
- subLocality → String?
-
Indicates sub-locality information.
表示子城市信息,一般是区/县。
final
- subRoadName → String?
-
Indicates auxiliary road information.
表示子路名信息。
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited