高德地图SDK(定位)  V2.12.2
AMapLocationPolygonRegion Class Reference

#import <AMapLocationRegionObj.h>

Inheritance diagram for AMapLocationPolygonRegion:
AMapLocationRegion

Instance Methods

(instancetype) - initWithCoordinates:count:identifier:
 根据经纬度坐标数据生成闭合多边形范围 Generate a closed polygon area based on latitude and longitude coordinate data More...
 
- Instance Methods inherited from AMapLocationRegion
(instancetype) - initWithIdentifier:
 初始化方法 Initialization method More...
 
(BOOL) - containsCoordinate:
 坐标点是否在范围内 Is the coordinate point within the range More...
 

Properties

CLLocationCoordinate2D * coordinates
 
NSInteger count
 
- Properties inherited from AMapLocationRegion
NSString * identifier
 AMapLocationRegion的identifier. More...
 
BOOL notifyOnEntry
 
BOOL notifyOnExit
 

Detailed Description

AMapLocationCircleRegion类,定义一个闭合多边形范围,点与点之间按顺序尾部相连, 第一个点与最后一个点相连。 The AMapLocationCircleRegion class defines a closed polygonal area, where points are connected in order from tail to head, and the first point is connected to the last point.

Method Documentation

◆ initWithCoordinates:count:identifier:

- (instancetype) initWithCoordinates: (CLLocationCoordinate2D *)  coordinates
count: (NSInteger)  count
identifier: (NSString *)  identifier 

根据经纬度坐标数据生成闭合多边形范围 Generate a closed polygon area based on latitude and longitude coordinate data

Parameters
coordinates经纬度坐标点数据,coordinates对应的内存会拷贝,调用者负责该内存的释放 Latitude and longitude coordinate data, the memory corresponding to coordinates will be copied, the caller is responsible for releasing this memory
count经纬度坐标点的个数,不可小于3个 The number of latitude and longitude coordinate points must not be less than 3
identifier唯一标识符,必填,不可为nil Unique identifier, mandatory, cannot be nil
Returns
AMapLocationCircleRegion类实例 Instance of AMapLocationCircleRegion class

Property Documentation

◆ coordinates

- (CLLocationCoordinate2D*) coordinates
readnonatomicassign

经纬度坐标点数据 Latitude and longitude coordinate point data

◆ count

- (NSInteger) count
readnonatomicassign

经纬度坐标点的个数 Number of latitude and longitude coordinate points


The documentation for this class was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。