Class ReverseGeoCodeResult.AddressComponent

java.lang.Object
com.baidu.mapapi.search.geocode.ReverseGeoCodeResult.AddressComponent
All Implemented Interfaces:
android.os.Parcelable
Enclosing class:
ReverseGeoCodeResult

public static class ReverseGeoCodeResult.AddressComponent extends Object implements android.os.Parcelable
此类表示地址解析结果的层次化地址信息。
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    行政区域编码 http://mapopen-pub-webserviceapi.bj.bcebos.com/geocoding/%E5%8C%BA%E5%8E%BF%E7%BA%A7%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92%E6%B8%85%E5%8D%95V35.xlsx
    城市名称
    int
    城市所在级别(仅国外有参考意义。国外行政区划与中国有差异, 城市对应的层级不一定为『city』。country、province、city、district、town分别对应0-4级, 若city_level=3,则district层级为该国家的city层级) V7.3.0版本开放
    int
    国家号码
    国家英文缩写(三位) V7.3.0版本开放
    国家英文缩写(两位) V7.3.0版本开放
    国家名称
    static final android.os.Parcelable.Creator<ReverseGeoCodeResult.AddressComponent>
     
    相对当前坐标点的方向,当有门牌号的时候返回数据 V5.2.0版本开放
    相对当前坐标点的距离,当有门牌号的时候返回数据 V5.2.0版本开放
    区县名称
    省份名称
     
    街道名称(行政区划中的街道层级)
    门牌号码
    乡镇名称 V5.2.0版本开放
    乡镇id V7.3.0版本开放

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    AddressComponent(android.os.Parcel in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    获取层次化地址信息中的相对当前坐标点的方向,当有门牌号的时候返回数据
    获取层次化地址信息中的相对当前坐标点的距离,当有门牌号的时候返回数据
     
    获取层次化地址信息中的乡镇名称
    void
    setDirection(String direction)
    设置层次化地址信息中的相对当前坐标点的方向,当有门牌号的时候返回数据
    void
    setDistance(String distance)
    设置层次化地址信息中的相对当前坐标点的距离,当有门牌号的时候返回数据
    void
    setRegionCodeIso(String regionCodeIso)
     
    void
    设置层次化地址信息中的乡镇名称
    void
    writeToParcel(android.os.Parcel dest, int flags)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • streetNumber

      public String streetNumber
      门牌号码
    • street

      public String street
      街道名称(行政区划中的街道层级)
    • town

      public String town
      乡镇名称 V5.2.0版本开放
    • district

      public String district
      区县名称
    • city

      public String city
      城市名称
    • province

      public String province
      省份名称
    • countryName

      public String countryName
      国家名称
    • countryCode

      public int countryCode
      国家号码
    • adcode

      public int adcode
      行政区域编码 http://mapopen-pub-webserviceapi.bj.bcebos.com/geocoding/%E5%8C%BA%E5%8E%BF%E7%BA%A7%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92%E6%B8%85%E5%8D%95V35.xlsx
    • direction

      public String direction
      相对当前坐标点的方向,当有门牌号的时候返回数据 V5.2.0版本开放
    • distance

      public String distance
      相对当前坐标点的距离,当有门牌号的时候返回数据 V5.2.0版本开放
    • countryCodeIso

      public String countryCodeIso
      国家英文缩写(三位) V7.3.0版本开放
    • countryCodeIso2

      public String countryCodeIso2
      国家英文缩写(两位) V7.3.0版本开放
    • townCode

      public String townCode
      乡镇id V7.3.0版本开放
    • cityLevel

      public int cityLevel
      城市所在级别(仅国外有参考意义。国外行政区划与中国有差异, 城市对应的层级不一定为『city』。country、province、city、district、town分别对应0-4级, 若city_level=3,则district层级为该国家的city层级) V7.3.0版本开放
    • regionCodeIso

      public String regionCodeIso
    • CREATOR

      public static final android.os.Parcelable.Creator<ReverseGeoCodeResult.AddressComponent> CREATOR
  • Constructor Details

    • AddressComponent

      public AddressComponent()
    • AddressComponent

      protected AddressComponent(android.os.Parcel in)
  • Method Details

    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
    • getTown

      public String getTown()
      获取层次化地址信息中的乡镇名称
      Returns:
      乡镇名称
    • setTown

      public void setTown(String town)
      设置层次化地址信息中的乡镇名称
      Parameters:
      town - 乡镇名称
    • getDirection

      public String getDirection()
      获取层次化地址信息中的相对当前坐标点的方向,当有门牌号的时候返回数据
      Returns:
      相对当前坐标点的方向,比如“西”,“东”, “附近”
    • setDirection

      public void setDirection(String direction)
      设置层次化地址信息中的相对当前坐标点的方向,当有门牌号的时候返回数据
      Parameters:
      direction - 相对当前坐标点的方向,比如“西”,“东”, “附近”
    • getDistance

      public String getDistance()
      获取层次化地址信息中的相对当前坐标点的距离,当有门牌号的时候返回数据
      Returns:
      相对当前坐标点的距离
    • setDistance

      public void setDistance(String distance)
      设置层次化地址信息中的相对当前坐标点的距离,当有门牌号的时候返回数据
      Parameters:
      distance - 相对当前坐标点的距离
    • getRegionCodeIso

      public String getRegionCodeIso()
    • setRegionCodeIso

      public void setRegionCodeIso(String regionCodeIso)