Map Doc  1.0
iOS-引擎SDK-开放平台
MBPoiItem类 参考

新搜索(PoiSearchSession)的搜索结果 Poi 实体类 更多...

#import <MBPoiItem.h>

类 MBPoiItem 继承关系图:
MBObject MBRegionPoiItem

构造函数

(NSArray< MBPoiItem * > *_Nullable) - subChildPoiItemsByType:
 
(instancetype _Nonnull) - initWithJsonString:
 
(NSString *_Nonnull) - toJsonString
 
- 构造函数 继承自 MBObject
(instancetype) - initWithHandle:
 
(void *) - getHandle
 

属性

MBPoiItemType itemType
 item类型 更多...
 
NSString *_Nonnull name
 Poi 名称 更多...
 
NSString *_Nullable address
 地址 更多...
 
MBPoint entryPoint
 导航坐标(如公园的入口) 更多...
 
MBPoint position
 
double distance
 
NSString *_Nullable typeName
 Poi 类型名 更多...
 
int typeIconId
 
int tagIconId
 
NSString *_Nullable phoneNumber
 电话 更多...
 
BOOL isKindOfRegion
 item是否是行政区 更多...
 
int childPoiCount
 子节点 更多...
 
NSArray< NSString * > *_Nullable childPoiShortNames
 
NSArray< MBPoiItem * > *_Nullable childPoiItems
 

详细描述

新搜索(PoiSearchSession)的搜索结果 Poi 实体类

函数文档

◆ initWithJsonString:()

- (instancetype _Nonnull) initWithJsonString: (NSString *_Nonnull)  json

由 category MBPoiItem(JSON) 提供.

◆ subChildPoiItemsByType:()

- (NSArray<MBPoiItem *> *_Nullable) subChildPoiItemsByType: (MBChildPoiType type

◆ toJsonString()

- (NSString *_Nonnull) toJsonString

由 category MBPoiItem(JSON) 提供.

属性说明

◆ address

- (NSString* _Nullable) address
readwritenonatomiccopy

地址

◆ childPoiCount

- (int) childPoiCount
readnonatomicassign

子节点

◆ childPoiItems

- (NSArray<MBPoiItem *>* _Nullable) childPoiItems
readnonatomiccopy

◆ childPoiShortNames

- (NSArray<NSString *>* _Nullable) childPoiShortNames
readnonatomiccopy

◆ distance

- (double) distance
readwritenonatomicassign

与搜索中心点的距离

单位:米。注意:如果是通过 MBPoiSuggest 搜索返回的结果该字段无效。

◆ entryPoint

- (MBPoint) entryPoint
readwritenonatomicassign

导航坐标(如公园的入口)

◆ isKindOfRegion

- (BOOL) isKindOfRegion
readnonatomicassign

item是否是行政区

◆ itemType

- (MBPoiItemType) itemType
readwritenonatomicassign

item类型

◆ name

- (NSString* _Nonnull) name
readwritenonatomiccopy

Poi 名称

◆ phoneNumber

- (NSString* _Nullable) phoneNumber
readwritenonatomiccopy

电话

◆ position

- (MBPoint) position
readwritenonatomicassign

显示坐标(如公园的中心点)

与导航坐标可能一致也可能不一致

◆ tagIconId

- (int) tagIconId
readwritenonatomicassign

◆ typeIconId

- (int) typeIconId
readwritenonatomicassign

◆ typeName

- (NSString* _Nullable) typeName
readwritenonatomiccopy

Poi 类型名


该类的文档由以下文件生成: