com.amap.api.navi.model

## 类 AMapRestrictionInfo

- java.lang.Object
- - com.amap.api.navi.model.AMapRestrictionInfo

-     public class AMapRestrictionInfo
      extends java.lang.Object

  路线限行信息类
  Route restriction information class
  从以下版本开始:
    5.0.0

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `int[]` | `cityCodes` 城市代码集合
    `RestrictionInfoDetail[]` | `infoDetailList` 现行图层详细信息保存，以便限行图层使用 Save current layer detailed information for restriction layer usage

  - ### 方法概要

    所有方法 实例方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `int` | `getCityCode()` 获取城市代码 Get city code
    `int[]` | `getCityCodes()` 获取城市代码集合
    `int` | `getDescLen()` 已过时。
    `java.lang.String` | `getRestrictionDesc()` 已过时。 已经废弃，使用`AMapRestrictionInfo.getRestrictionTitle()` Deprecated, use `AMapRestrictionInfo.getRestrictionTitle()`
    `java.lang.String` | `getRestrictionTitle()` 获取当前限行信息的标题 Get the title of current restriction information
    `java.lang.String` | `getTips()` 获取限行提示文案 Get restriction prompt text
    `int` | `getTitleLen()` 已过时。
    `int` | `getTitleType()` 获取当前限行标题类型 Get current restriction title type.

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### cityCodes

          public int[] cityCodes

      城市代码集合

    - #### infoDetailList

          public RestrictionInfoDetail[] infoDetailList

      现行图层详细信息保存，以便限行图层使用
      Save current layer detailed information for restriction layer usage

  - ### 方法详细资料

    - #### getRestrictionTitle

          public java.lang.String getRestrictionTitle()

      获取当前限行信息的标题
      Get the title of current restriction information
      返回:
        当前限行信息的标题
        Title of current restriction information

    - #### getRestrictionDesc

          public java.lang.String getRestrictionDesc()

      已过时。 已经废弃，使用`AMapRestrictionInfo.getRestrictionTitle()`
      Deprecated, use `AMapRestrictionInfo.getRestrictionTitle()`
      获取当前限行描述信息, 该属性作为扩展字段来使用，目前为空
      Get current restriction description information, this property is used as an extension field, currently empty.
      返回:
        当前限行描述信息
        Current restriction description information

    - #### getTitleLen

          public int getTitleLen()

      已过时。
      获取当前限行标题信息的长度
      Get the length of current restriction title information
      返回:
        当前限行标题信息的长度
        Length of current restriction title information

    - #### getDescLen

          public int getDescLen()

      已过时。
      获取当前限行描述信息的长度
      Get the length of current restriction description information
      返回:
        当前限行描述信息的长度
        Length of current restriction description information

    - #### getTitleType

          public int getTitleType()

      获取当前限行标题类型
      Get current restriction title type.
      返回:
        当前限行标题类型:
        Current restriction title type:
        -1:无效值;
        -1:Invalid value;
        0:外地车限行,建议设置车牌;
        0:Non-local vehicle restriction, suggest setting license plate;
        1:外地车限行,建议开启限行;
        1:Non-local vehicle restriction, suggest enabling restriction;
        2:已避开限行区域;
        2:Restriction area avoided;
        3:起点在限行区域内;
        3:Starting point is within restriction area;
        4:终点在限行区域内;
        4:Destination is within restriction area;
        5:途经点在限行区域内;
        5:Waypoint is within restriction area;
        6:途经限行区域
        6:Passing through restriction area
        7:避开即将生效的限行，用户不能走完全程限行生效
        7:Avoiding upcoming restriction, user cannot complete the route with restriction in effect
        8:已将失效的限行，用户到达已经失效
        8:Restriction that has expired, user arrives after expiration
        9:途经区域XX时间限行即将结束,当前未回避开限行
        9:Passing area XX time restriction is about to end, currently not avoiding restriction
        10:途经区域XX时间限行即将结束,当前已经回避开限行
        10:Passing area XX time restriction is about to end, currently avoiding restriction

    - #### getTips

          public java.lang.String getTips()

      获取限行提示文案
      Get restriction prompt text
      返回:

    - #### getCityCode

          public int getCityCode()

      获取城市代码
      Get city code
      返回:

    - #### getCityCodes

          public int[] getCityCodes()

      获取城市代码集合
      返回: