public class PoiTypeManager
extends java.lang.Object
PoiQuery.init(PoiQueryInitParams)
之后,否则接口调用无效。限定符和类型 | 字段和说明 |
---|---|
static int |
ALL_TYPES
所有类型码。
|
限定符和类型 | 方法和说明 |
---|---|
int[] |
excludeTypeCode(int[] ids,
int toBeExclude)
从一组POI类型码中取出指定的某个类型码
|
int |
getFirstChild(int index)
获取POI类型树中指定节点的第一个子节点,如果指定节点没有子节点,那么返回
PoiType.INVALID_TYPE_ID |
int |
getIndexByName(java.lang.String name)
返回POI类型树中具有指定名称的节点ID
由于不同数据中的类型名称会有所差异,所以最好不要使用这个方法 |
int |
getIndexByType(int type)
获取指定的POI类型码在类型树"周边更多类型"节点之下对应的节点索引
|
static PoiTypeManager |
getInstance() |
int |
getKeyQueryTypeRoot()
返回表示"周边更多类型"的POI类型索引
|
int[] |
getNaviInfoIds(int index,
int maxNum,
boolean includeTrivial)
获取类型树中指定节点所包含的POI类型码
|
int |
getNextSibling(int index)
获取类型树中指定节点的下一个兄弟节点
如果指定节点没有兄弟节点,那么返回 PoiType.INVALID_TYPE_ID |
PoiType |
getObjectById(int id)
根据POI类型索引获取POI类型对象
|
int |
getObjectNumber()
获取POI类型树中的节点总数
|
int |
getParent(int index)
获取POI类型树中指定节点的父节点
如果指定节点没有父节点,那么返回 PoiType.INVALID_TYPE_ID |
int |
getRoot()
返回表示"周边快捷类型"的POI类型索引值,即,整个POI类型树的根节点
|
java.lang.String |
getTypeName(int typeCode)
获取指定POI类型码对应的类型名称
|
public static final int ALL_TYPES
getIndexByType(int)
.public static PoiTypeManager getInstance()
public int getRoot()
public int getFirstChild(int index)
PoiType.INVALID_TYPE_ID
index
- 指定的节点IDpublic int getNextSibling(int index)
PoiType.INVALID_TYPE_ID
index
- 指定的POI类型节点IDpublic int getParent(int index)
PoiType.INVALID_TYPE_ID
index
- 指定POI节点IDpublic java.lang.String getTypeName(int typeCode)
typeCode
- 指定的POI类型码public PoiType getObjectById(int id)
public int getObjectNumber()
public int[] getNaviInfoIds(int index, int maxNum, boolean includeTrivial)
index
- POI类型索引maxNum
- 获取的最大数目includeTrivial
- 一个没有用到的参数public int[] excludeTypeCode(int[] ids, int toBeExclude)
ids
- 已有的一系列POI类型码toBeExclude
- 需要取出的类型码public int getIndexByName(java.lang.String name)
name
- 类型名称public int getKeyQueryTypeRoot()
public int getIndexByType(int type)
type
- 指定的POI类型码PoiType.INVALID_TYPE_ID
©Mapbar Engine Team;All Rights Reserved