Package com.baidu.mapapi.search.weather
Class WeatherSearchLocation
java.lang.Object
com.baidu.mapapi.search.weather.WeatherSearchLocation
- All Implemented Interfaces:
android.os.Parcelable
位置信息
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<WeatherSearchLocation>Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCity()获取城市名称获取国家名称获取区县id获取区县名称获取省份名称void设置城市名称voidsetCountry(String country) 设置国家名称voidsetDistrictID(String districtID) 设置区县idvoidsetDistrictName(String districtName) 设置区县名称voidsetProvince(String province) 设置省份名称voidwriteToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Constructor Details
-
WeatherSearchLocation
public WeatherSearchLocation() -
WeatherSearchLocation
protected WeatherSearchLocation(android.os.Parcel in)
-
-
Method Details
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
getCountry
获取国家名称 -
setCountry
设置国家名称 -
getProvince
获取省份名称 -
setProvince
设置省份名称 -
getCity
获取城市名称 -
setCity
设置城市名称 -
getDistrictName
获取区县名称 -
setDistrictName
设置区县名称 -
getDistrictID
获取区县id -
setDistrictID
设置区县id
-