@ -0,0 +1,48 @@
|
||||
//
|
||||
// AMapFoundationConst.h
|
||||
// AMapFoundationKit
|
||||
//
|
||||
// Created by JL on 2019/7/22.
|
||||
// Copyright © 2019 Amap.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h> |
||||
|
||||
NS_ASSUME_NONNULL_BEGIN |
||||
|
||||
typedef NSInteger AMapFoundationNSErrorCode; |
||||
|
||||
//ErrorDomain:文件不存在 错误码:-555555
|
||||
extern NSErrorDomain const AMapFoundationNSErrorFileDonotExist; |
||||
extern AMapFoundationNSErrorCode const AMapFoundationNSErrorFileDonotExistCode; |
||||
|
||||
//ErrorDomain:文件路径不合法 错误码:-555556
|
||||
extern NSErrorDomain const AMapFoundationNSErrorFilePathInvaild; |
||||
extern AMapFoundationNSErrorCode const AMapFoundationNSErrorFilePathInvaildCode; |
||||
|
||||
//ErrorDomain:指定类型的日志文件不存在 错误码:-555557
|
||||
extern NSErrorDomain const AMapFoundationNSErrorTypeLogDonotExist; |
||||
extern AMapFoundationNSErrorCode const AMapFoundationNSErrorTypeLogDonotExistCode; |
||||
|
||||
//ErrorDomain:待上传的数据为空(可能是组装/压缩时出错) 错误码:-555558
|
||||
extern NSErrorDomain const AMapFoundationNSErrorUploadDataIsEmpty; |
||||
extern AMapFoundationNSErrorCode const AMapFoundationNSErrorUploadDataIsEmptyCode; |
||||
|
||||
//ErrorDomain:参数错误 错误码:-444444
|
||||
extern NSErrorDomain const AMapFoundationNSErrorParametersInvalid; |
||||
extern AMapFoundationNSErrorCode const AMapFoundationNSErrorParametersInvalidCode; |
||||
|
||||
|
||||
extern NSErrorDomain const AMapFoundationNSErrorCloudConfigDisable; |
||||
extern AMapFoundationNSErrorCode const AMapFoundationNSErrorCloudConfigDisableCode; |
||||
|
||||
extern NSErrorDomain const AMapFoundationNSErrorNetworkUnusable; |
||||
extern AMapFoundationNSErrorCode const AMapFoundationNSErrorNetworkUnusableCode; |
||||
|
||||
extern NSErrorDomain const AMapFoundationNSErrorCurrentworkIsRunning; |
||||
extern AMapFoundationNSErrorCode const AMapFoundationNSErrorCurrentworkIsRunningCode; |
||||
|
||||
extern NSErrorDomain const AMapFoundationNSErrorCurrentUploadSizeHaveExcess; |
||||
extern AMapFoundationNSErrorCode const AMapFoundationNSErrorCurrentUploadSizeHaveExcessCode; |
||||
|
||||
NS_ASSUME_NONNULL_END |
@ -0,0 +1,16 @@
|
||||
//
|
||||
// AMapFoundationKit.h
|
||||
// AMapFoundationKit
|
||||
//
|
||||
// Created by xiaoming han on 15/10/28.
|
||||
// Copyright © 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <AMapFoundationKit/AMapFoundationVersion.h> |
||||
#import <AMapFoundationKit/AMapServices.h> |
||||
#import <AMapFoundationKit/AMapURLSearchConfig.h> |
||||
#import <AMapFoundationKit/AMapURLSearchType.h> |
||||
#import <AMapFoundationKit/AMapURLSearch.h> |
||||
#import <AMapFoundationKit/AMapFoundationConst.h> |
||||
|
||||
#import <AMapFoundationKit/AMapUtility.h> |
@ -0,0 +1,19 @@
|
||||
//
|
||||
// AMapFoundationVersion.h
|
||||
// AMapFoundation
|
||||
//
|
||||
// Created by xiaoming han on 15/10/26.
|
||||
// Copyright © 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h> |
||||
|
||||
#ifndef AMapFoundationVersion_h |
||||
#define AMapFoundationVersion_h |
||||
|
||||
#define AMapFoundationVersionNumber 10604 |
||||
|
||||
FOUNDATION_EXTERN NSString * const AMapFoundationVersion; |
||||
FOUNDATION_EXTERN NSString * const AMapFoundationName; |
||||
|
||||
#endif /* AMapFoundationVersion_h */ |
@ -0,0 +1,39 @@
|
||||
//
|
||||
// AMapSearchServices.h
|
||||
// AMapSearchKit
|
||||
//
|
||||
// Created by xiaoming han on 15/6/18.
|
||||
// Copyright (c) 2015年 xiaoming han. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h> |
||||
|
||||
|
||||
/**
|
||||
* 是否为海外用户...海外用户,SDK内部会屏蔽一些操作 默认为NO. |
||||
* @warning AMapServices初始化之前,设置才能生效 |
||||
*/ |
||||
extern BOOL _amapLocationOverseas; |
||||
|
||||
///高德SDK服务类
|
||||
@interface AMapServices : NSObject |
||||
|
||||
/**
|
||||
* @brief 获取单例 |
||||
*/ |
||||
+ (AMapServices *)sharedServices; |
||||
|
||||
|
||||
///APIkey。设置key,需要在高德官网控制台绑定对应的bundleid。
|
||||
@property (nonatomic, copy) NSString *apiKey; |
||||
|
||||
///是否开启HTTPS,从1.3.3版本开始默认为YES。
|
||||
@property (nonatomic, assign) BOOL enableHTTPS; |
||||
|
||||
///是否启用崩溃日志上传。默认为YES, 只有在真机上设置有效。\n开启崩溃日志上传有助于我们更好的了解SDK的状况,可以帮助我们持续优化和改进SDK。需要注意的是,SDK内部是通过设置NSUncaughtExceptionHandler来捕获异常的,如果您的APP中使用了其他收集崩溃日志的SDK,或者自己有设置NSUncaughtExceptionHandler的话,请保证 AMapServices 的初始化是在其他设置NSUncaughtExceptionHandler操作之后进行的,我们的handler会再处理完异常后调用前一次设置的handler,保证之前设置的handler会被执行。
|
||||
@property (nonatomic, assign) BOOL crashReportEnabled __attribute__((deprecated("从v1.5.7开始废弃,调用无任何作用"))); |
||||
|
||||
///设备标识,取自idfv。用于排查问题时提供。
|
||||
@property (nonatomic, readonly) NSString *identifier; |
||||
|
||||
@end |
@ -0,0 +1,41 @@
|
||||
//
|
||||
// AMapURLSearch.h
|
||||
// AMapFoundation
|
||||
//
|
||||
// Created by xiaoming han on 15/10/28.
|
||||
// Copyright © 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h> |
||||
#import "AMapURLSearchConfig.h" |
||||
|
||||
///调起高德地图URL进行搜索,若是调起失败,可使用`+ (void)getLatestAMapApp;`方法获取最新版高德地图app.
|
||||
@interface AMapURLSearch : NSObject |
||||
|
||||
/**
|
||||
* @brief 打开高德地图AppStore页面 |
||||
*/ |
||||
+ (void)getLatestAMapApp; |
||||
|
||||
/**
|
||||
* @brief 调起高德地图app驾车导航. |
||||
* @param config 配置参数. |
||||
* @return 是否成功.若为YES则成功调起,若为NO则无法调起. |
||||
*/ |
||||
+ (BOOL)openAMapNavigation:(AMapNaviConfig *)config; |
||||
|
||||
/**
|
||||
* @brief 调起高德地图app进行路径规划. |
||||
* @param config 配置参数. |
||||
* @return 是否成功. |
||||
*/ |
||||
+ (BOOL)openAMapRouteSearch:(AMapRouteConfig *)config; |
||||
|
||||
/**
|
||||
* @brief 调起高德地图app进行POI搜索. |
||||
* @param config 配置参数. |
||||
* @return 是否成功. |
||||
*/ |
||||
+ (BOOL)openAMapPOISearch:(AMapPOIConfig *)config; |
||||
|
||||
@end |
@ -0,0 +1,79 @@
|
||||
//
|
||||
// MAMapURLSearchConfig.h
|
||||
// MAMapKitNew
|
||||
//
|
||||
// Created by xiaoming han on 15/5/25.
|
||||
// Copyright (c) 2015年 xiaoming han. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h> |
||||
#import <CoreLocation/CoreLocation.h> |
||||
#import "AMapURLSearchType.h" |
||||
|
||||
///导航配置信息
|
||||
@interface AMapNaviConfig : NSObject |
||||
|
||||
///应用返回的Scheme
|
||||
@property (nonatomic, copy) NSString *appScheme; |
||||
|
||||
///应用名称
|
||||
@property (nonatomic, copy) NSString *appName; |
||||
|
||||
///终点
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D destination; |
||||
|
||||
///导航策略
|
||||
@property (nonatomic, assign) AMapDrivingStrategy strategy; |
||||
|
||||
@end |
||||
|
||||
#pragma mark - |
||||
|
||||
///路径搜索配置信息
|
||||
@interface AMapRouteConfig : NSObject |
||||
|
||||
///应用返回的Scheme
|
||||
@property (nonatomic, copy) NSString *appScheme; |
||||
|
||||
///应用名称
|
||||
@property (nonatomic, copy) NSString *appName; |
||||
|
||||
///起点坐标
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D startCoordinate; |
||||
|
||||
///终点坐标
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D destinationCoordinate; |
||||
|
||||
///驾车策略
|
||||
@property (nonatomic, assign) AMapDrivingStrategy drivingStrategy; |
||||
|
||||
///公交策略
|
||||
@property (nonatomic, assign) AMapTransitStrategy transitStrategy; |
||||
|
||||
///路径规划类型
|
||||
@property (nonatomic, assign) AMapRouteSearchType routeType; |
||||
|
||||
@end |
||||
|
||||
#pragma mark - |
||||
|
||||
///POI搜索配置信息
|
||||
@interface AMapPOIConfig : NSObject |
||||
|
||||
///应用返回的Scheme
|
||||
@property (nonatomic, copy) NSString *appScheme; |
||||
|
||||
///应用名称
|
||||
@property (nonatomic, copy) NSString *appName; |
||||
|
||||
///搜索关键字
|
||||
@property (nonatomic, copy) NSString *keywords; |
||||
|
||||
///左上角坐标
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D leftTopCoordinate; |
||||
|
||||
///右下角坐标
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D rightBottomCoordinate; |
||||
|
||||
@end |
||||
|
@ -0,0 +1,44 @@
|
||||
//
|
||||
// MAMapURLSearchType.h
|
||||
// MAMapKitNew
|
||||
//
|
||||
// Created by xiaoming han on 15/5/25.
|
||||
// Copyright (c) 2015年 xiaoming han. All rights reserved.
|
||||
//
|
||||
|
||||
///驾车策略
|
||||
typedef NS_ENUM(NSInteger, AMapDrivingStrategy) |
||||
{ |
||||
AMapDrivingStrategyFastest = 0, ///<速度最快
|
||||
AMapDrivingStrategyMinFare = 1, ///<避免收费
|
||||
AMapDrivingStrategyShortest = 2, ///<距离最短
|
||||
|
||||
AMapDrivingStrategyNoHighways = 3, ///<不走高速
|
||||
AMapDrivingStrategyAvoidCongestion = 4, ///<躲避拥堵
|
||||
|
||||
AMapDrivingStrategyAvoidHighwaysAndFare = 5, ///<不走高速且避免收费
|
||||
AMapDrivingStrategyAvoidHighwaysAndCongestion = 6, ///<不走高速且躲避拥堵
|
||||
AMapDrivingStrategyAvoidFareAndCongestion = 7, ///<躲避收费和拥堵
|
||||
AMapDrivingStrategyAvoidHighwaysAndFareAndCongestion = 8 ///<不走高速躲避收费和拥堵
|
||||
}; |
||||
|
||||
///公交策略
|
||||
typedef NS_ENUM(NSInteger, AMapTransitStrategy) |
||||
{ |
||||
AMapTransitStrategyFastest = 0,///<最快捷
|
||||
AMapTransitStrategyMinFare = 1,///<最经济
|
||||
AMapTransitStrategyMinTransfer = 2,///<最少换乘
|
||||
AMapTransitStrategyMinWalk = 3,///<最少步行
|
||||
AMapTransitStrategyMostComfortable = 4,///<最舒适
|
||||
AMapTransitStrategyAvoidSubway = 5,///<不乘地铁
|
||||
}; |
||||
|
||||
///路径规划类型
|
||||
typedef NS_ENUM(NSInteger, AMapRouteSearchType) |
||||
{ |
||||
AMapRouteSearchTypeDriving = 0, ///<驾车
|
||||
AMapRouteSearchTypeTransit = 1, ///<公交
|
||||
AMapRouteSearchTypeWalking = 2, ///<步行
|
||||
}; |
||||
|
||||
|
@ -0,0 +1,50 @@
|
||||
//
|
||||
// AMapUtility.h
|
||||
// AMapFoundation
|
||||
//
|
||||
// Created by xiaoming han on 15/10/27.
|
||||
// Copyright © 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h> |
||||
#import <CoreLocation/CoreLocation.h> |
||||
|
||||
//工具方法
|
||||
|
||||
/**
|
||||
* @brief 如果字符串为nil则返回空字符串 |
||||
*/ |
||||
FOUNDATION_STATIC_INLINE NSString * AMapEmptyStringIfNil(NSString *s) |
||||
{ |
||||
return s ? s : @""; |
||||
} |
||||
|
||||
///坐标类型枚举
|
||||
typedef NS_ENUM(NSInteger, AMapCoordinateType) |
||||
{ |
||||
AMapCoordinateTypeAMap = -1, ///<AMap
|
||||
AMapCoordinateTypeBaidu = 0, ///<Baidu
|
||||
AMapCoordinateTypeMapBar, ///<MapBar
|
||||
AMapCoordinateTypeMapABC, ///<MapABC
|
||||
AMapCoordinateTypeSoSoMap, ///<SoSoMap
|
||||
AMapCoordinateTypeAliYun, ///<AliYun
|
||||
AMapCoordinateTypeGoogle, ///<Google
|
||||
AMapCoordinateTypeGPS, ///<GPS
|
||||
}; |
||||
|
||||
/**
|
||||
* @brief 转换目标经纬度为高德坐标系,不在枚举范围内的经纬度将直接返回。 |
||||
* @param coordinate 待转换的经纬度 |
||||
* @param type 坐标系类型 |
||||
* @return 高德坐标系经纬度 |
||||
*/ |
||||
FOUNDATION_EXTERN CLLocationCoordinate2D AMapCoordinateConvert(CLLocationCoordinate2D coordinate, AMapCoordinateType type); |
||||
|
||||
/**
|
||||
* @brief 判断目标经纬度处是否有高德数据。输入参数为高德坐标系。此方法为粗略判断,在边界地区可能会不准确。 |
||||
* @param coordinate 待判断的目标经纬度 |
||||
* @return 布尔值。YES:有数据,NO:没数据 |
||||
*/ |
||||
FOUNDATION_EXTERN BOOL AMapDataAvailableForCoordinate(CLLocationCoordinate2D coordinate); |
||||
|
||||
|
@ -0,0 +1,6 @@
|
||||
framework module AMapFoundationKit { |
||||
umbrella header "AMapFoundationKit.h" |
||||
|
||||
export * |
||||
module * { export * } |
||||
} |
@ -0,0 +1 @@
|
||||
1.6.4+foundation-no-idfa.f7f9056 |
@ -0,0 +1,27 @@
|
||||
//
|
||||
// AMapGeoFenceError.h
|
||||
// AMapLocationKit
|
||||
//
|
||||
// Created by eidan on 16/12/15.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef AMapGeoFenceError_h |
||||
#define AMapGeoFenceError_h |
||||
|
||||
|
||||
///AMapGeoFence errorDomain
|
||||
extern NSString * const AMapGeoFenceErrorDomain; |
||||
|
||||
///地理围栏错误码
|
||||
typedef NS_ENUM(NSInteger, AMapGeoFenceErrorCode) { |
||||
AMapGeoFenceErrorUnknown = 1, ///< 未知错误
|
||||
AMapGeoFenceErrorInvalidParameter = 2, ///< 参数错误
|
||||
AMapGeoFenceErrorFailureConnection = 3, ///< 网络连接异常
|
||||
AMapGeoFenceErrorFailureAuth = 4, ///< 鉴权失败
|
||||
AMapGeoFenceErrorNoValidFence = 5, ///< 无可用围栏
|
||||
AMapGeoFenceErroFailureLocating = 6, ///< 定位错误
|
||||
AMapGeoFenceErroFailureFullAccuracyLocating = 7, ///< 精确定位错误
|
||||
}; |
||||
|
||||
#endif /* AMapGeoFenceError_h */ |
@ -0,0 +1,234 @@
|
||||
//
|
||||
// AMapGeoFenceManager.h
|
||||
// AMapLocationKit
|
||||
//
|
||||
// Created by hanxiaoming on 16/12/5.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h> |
||||
#import "AMapGeoFenceRegionObj.h" |
||||
|
||||
// 以下类涉及的坐标需要使用高德坐标系坐标(GCJ02)
|
||||
|
||||
@protocol AMapGeoFenceManagerDelegate; |
||||
|
||||
///地理围栏监听状态类型
|
||||
typedef NS_OPTIONS(NSUInteger, AMapGeoFenceActiveAction) |
||||
{ |
||||
AMapGeoFenceActiveActionNone = 0, ///< 不进行监听
|
||||
AMapGeoFenceActiveActionInside = 1 << 0, ///< 在范围内
|
||||
AMapGeoFenceActiveActionOutside = 1 << 1, ///< 在范围外
|
||||
AMapGeoFenceActiveActionStayed = 1 << 2, ///< 停留(在范围内超过10分钟)
|
||||
}; |
||||
|
||||
///地理围栏任务状态类型
|
||||
typedef NS_OPTIONS(NSUInteger, AMapGeoFenceRegionActiveStatus) |
||||
{ |
||||
AMapGeoFenceRegionActiveUNMonitor = 0, ///< 未注册
|
||||
AMapGeoFenceRegionActiveMonitoring = 1 << 0, ///< 正在监控
|
||||
AMapGeoFenceRegionActivePaused = 1 << 1, ///< 暂停监控
|
||||
}; |
||||
|
||||
///地理围栏管理类(since 2.3.0)
|
||||
@interface AMapGeoFenceManager : NSObject |
||||
|
||||
|
||||
///实现了 AMapGeoFenceManagerDelegate 协议的类指针。
|
||||
@property (nonatomic, weak) id<AMapGeoFenceManagerDelegate> delegate; |
||||
|
||||
|
||||
///需要进行通知的行为,默认为AMapGeoFenceActiveActionInside。
|
||||
@property (nonatomic, assign) AMapGeoFenceActiveAction activeAction; |
||||
|
||||
|
||||
///指定定位是否会被系统自动暂停。默认为NO。
|
||||
@property (nonatomic, assign) BOOL pausesLocationUpdatesAutomatically; |
||||
|
||||
|
||||
///是否允许后台定位。默认为NO。只在iOS 9.0及之后起作用。设置为YES的时候必须保证 Background Modes 中的 Location updates 处于选中状态,否则会抛出异常。
|
||||
@property (nonatomic, assign) BOOL allowsBackgroundLocationUpdates; |
||||
|
||||
///检测是否存在虚拟定位风险,默认为NO,即不检测。 \n如果设置为YES,检测到风险后,会通过amapGeoFenceManager:didGeoFencesStatusChangedForRegion:customID:error: 的error给出风险提示,error的格式为error.domain==AMapGeoFenceErrorDomain; error.code==AMapGeoFenceErroFailureLocating;
|
||||
@property (nonatomic, assign) BOOL detectRiskOfFakeLocation; |
||||
|
||||
|
||||
/**
|
||||
* @brief 添加一个圆形围栏 |
||||
* @param center 围栏的中心点经纬度坐标 |
||||
* @param radius 围栏的半径,单位:米,要求大于0 |
||||
* @param customID 用户自定义ID,可选,SDK原值返回 |
||||
*/ |
||||
- (void)addCircleRegionForMonitoringWithCenter:(CLLocationCoordinate2D)center radius:(CLLocationDistance)radius customID:(NSString *)customID; |
||||
|
||||
|
||||
/**
|
||||
* @brief 根据经纬度坐标数据添加一个闭合的多边形围栏,点与点之间按顺序尾部相连, 第一个点与最后一个点相连 |
||||
* @param coordinates 经纬度坐标点数据,coordinates对应的内存会拷贝,调用者负责该内存的释放 |
||||
* @param count 经纬度坐标点的个数,不可小于3个 |
||||
* @param customID 用户自定义ID,可选,SDK原值返回 |
||||
*/ |
||||
- (void)addPolygonRegionForMonitoringWithCoordinates:(CLLocationCoordinate2D *)coordinates count:(NSInteger)count customID:(NSString *)customID; |
||||
|
||||
|
||||
/**
|
||||
* @brief 根据要查询的关键字,类型,城市等信息,添加一个或者多个POI地理围栏 |
||||
* @param keyword 要查询的关键字,多个关键字用“|”分割,必填,keyword和type两者至少必选其一 |
||||
* @param type 要查询的POI类型,多个类型用“|”分割,必填,keyword和type两者至少必选其一,具体分类编码和规则详见: http://lbs.amap.com/api/webservice/guide/api/search/#text
|
||||
* @param city 要查询的城市 |
||||
* @param size 要查询的数据的条数,(0,25],传入<=0的值为10,传入大于25的值为25,默认10 |
||||
* @param customID 用户自定义ID,可选,SDK原值返回 |
||||
*/ |
||||
- (void)addKeywordPOIRegionForMonitoringWithKeyword:(NSString *)keyword POIType:(NSString *)type city:(NSString *)city size:(NSInteger)size customID:(NSString *)customID; |
||||
|
||||
|
||||
/**
|
||||
* @brief 根据要查询的点的经纬度,搜索半径等信息,添加一个或者多个POI围栏 |
||||
* @param locationPoint 点的经纬度坐标,必填 |
||||
* @param aroundRadius 查询半径,单位:米,(0,50000],超出范围取3000,默认3000 |
||||
* @param keyword 要查询的关键字,多个关键字用“|”分割,可选 |
||||
* @param type 要查询的POI类型,多个类型用“|”分割,可选 |
||||
* @param size 要查询的数据的条数,(0,25],传入<=0的值为10,传入大于25的值为25,默认10 |
||||
* @param customID 用户自定义ID,可选,SDK原值返回 |
||||
*/ |
||||
- (void)addAroundPOIRegionForMonitoringWithLocationPoint:(CLLocationCoordinate2D)locationPoint aroundRadius:(NSInteger)aroundRadius keyword:(NSString *)keyword POIType:(NSString *)type size:(NSInteger)size customID:(NSString *)customID; |
||||
|
||||
|
||||
/**
|
||||
* @brief 根据要查询的行政区域关键字,添加一个或者多个行政区域围栏 |
||||
* @param districtName 行政区域关键字,必填,只支持单个关键词语:行政区名称、citycode、adcode,规则详见: http://lbs.amap.com/api/webservice/guide/api/district/#district
|
||||
* @param customID 用户自定义ID,可选,SDK原值返回 |
||||
*/ |
||||
- (void)addDistrictRegionForMonitoringWithDistrictName:(NSString *)districtName customID:(NSString *)customID; |
||||
|
||||
/**
|
||||
* @brief 获取指定围栏的运行状态 |
||||
* @param region 要获取运行状态的围栏 |
||||
* @return 返回指定围栏的运行状态 |
||||
*/ |
||||
- (AMapGeoFenceRegionActiveStatus)statusWithGeoFenceRegion:(AMapGeoFenceRegion *)region; |
||||
|
||||
/**
|
||||
* @brief 根据customID获得所有已经注册的围栏,如果customID传nil,则返回全部已注册围栏 |
||||
* @param customID 用户执行添加围栏函数时传入的customID |
||||
* @return 获得的围栏构成的数组,如果没有结果,返回nil |
||||
*/ |
||||
- (NSArray *)geoFenceRegionsWithCustomID:(NSString *)customID; |
||||
|
||||
/**
|
||||
* @brief 根据customID获得所有正在监控的围栏,如果customID传nil,则返回全部正在监控的围栏 |
||||
* @param customID 用户执行添加围栏函数时传入的customID |
||||
* @return 获得的围栏构成的数组,如果没有结果,返回nil |
||||
*/ |
||||
- (NSArray *)monitoringGeoFenceRegionsWithCustomID:(NSString *)customID; |
||||
|
||||
/**
|
||||
* @brief 根据customID获得所有已经暂停的围栏,如果customID传nil,则返回全部已经暂停的围栏 |
||||
* @param customID 用户执行添加围栏函数时传入的customID |
||||
* @return 获得的围栏构成的数组,如果没有结果,返回nil |
||||
*/ |
||||
- (NSArray *)pausedGeoFenceRegionsWithCustomID:(NSString *)customID; |
||||
|
||||
|
||||
/**
|
||||
* @brief 暂停指定customID的围栏 |
||||
* @param customID 用户执行添加围栏函数时传入的customID |
||||
* @return 返回被暂停围栏的数组,如果没有围栏被暂停,返回nil |
||||
*/ |
||||
- (NSArray *)pauseGeoFenceRegionsWithCustomID:(NSString *)customID; |
||||
|
||||
|
||||
/**
|
||||
* @brief 暂停指定围栏 |
||||
* @param region 要暂停监控的围栏 |
||||
* @return 返回指定围栏是否被暂停,如果指定围栏没有注册,则返回NO |
||||
*/ |
||||
- (BOOL)pauseTheGeoFenceRegion:(AMapGeoFenceRegion *)region; |
||||
|
||||
/**
|
||||
* @brief 根据customID开始监控已经暂停的围栏 |
||||
* @param customID 用户执行添加围栏函数时传入的customID |
||||
* @return 返回开始监控的围栏构成的数组 |
||||
*/ |
||||
- (NSArray *)startGeoFenceRegionsWithCustomID:(NSString *)customID; |
||||
|
||||
/**
|
||||
* @brief 开始监控指定围栏 |
||||
* @param region 要开始监控的围栏 |
||||
* @return 返回指定围栏是否开始监控,如果指定围栏没有注册,则返回NO |
||||
*/ |
||||
- (BOOL)startTheGeoFenceRegion:(AMapGeoFenceRegion *)region; |
||||
|
||||
/**
|
||||
* @brief 移除指定围栏 |
||||
* @param region 要停止监控的围栏 |
||||
*/ |
||||
- (void)removeTheGeoFenceRegion:(AMapGeoFenceRegion *)region; |
||||
|
||||
/**
|
||||
* @brief 移除指定customID的围栏 |
||||
* @param customID 用户执行添加围栏函数时传入的customID |
||||
*/ |
||||
- (void)removeGeoFenceRegionsWithCustomID:(NSString *)customID; |
||||
|
||||
/**
|
||||
* @brief 移除所有围栏 |
||||
*/ |
||||
- (void)removeAllGeoFenceRegions; |
||||
|
||||
@end |
||||
|
||||
///地理围栏代理协议(since 2.3.0),该协议定义了获取地理围栏相关回调方法,包括添加、状态改变等。
|
||||
@protocol AMapGeoFenceManagerDelegate <NSObject> |
||||
|
||||
@required |
||||
|
||||
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 140000 |
||||
|
||||
/**
|
||||
* @brief iOS14及以上版本使用地理围栏功能,需要在plist中配置NSLocationTemporaryUsageDescriptionDictionary字典描述,且添加自定义Key描述地理围栏的使用场景,此描述会在申请临时精确定位权限的弹窗中展示。该回调触发条件:拥有定位权限,但是没有获得精确定位权限的情况下,会触发该回调。此方法实现调用申请临时精确定位权限API即可: |
||||
* [manager requestTemporaryFullAccuracyAuthorizationWithPurposeKey:@"PurposeKey" completion:^(NSError *error){ |
||||
* if(completion){ |
||||
* completion(error); |
||||
* } |
||||
* }]; (必须调用,不然无法正常获取临时精确定位权限) |
||||
* @param manager 地理围栏管理类。 |
||||
* @param locationManager 需要申请临时精确定位权限的locationManager。 |
||||
* @param completion 临时精确定位权限API回调结果。直接返回系统error即可 |
||||
* @since 2.6.7 |
||||
*/ |
||||
- (void)amapLocationManager:(AMapGeoFenceManager *)manager doRequireTemporaryFullAccuracyAuth:(CLLocationManager*)locationManager completion:(void(^)(NSError *error))completion; |
||||
|
||||
#endif |
||||
|
||||
@optional |
||||
|
||||
/**
|
||||
* @brief 当plist配置NSLocationAlwaysUsageDescription或者NSLocationAlwaysAndWhenInUseUsageDescription,并且[CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined,会调用代理的此方法。 |
||||
此方法实现申请后台权限API即可:[locationManager requestAlwaysAuthorization](必须调用,不然无法正常获取定位权限) |
||||
* @param manager 地理围栏管理类。 |
||||
* @param locationManager 需要申请后台定位权限的locationManager。 |
||||
* @since 2.6.2 |
||||
*/ |
||||
- (void)amapGeoFenceManager:(AMapGeoFenceManager *)manager doRequireLocationAuth:(CLLocationManager*)locationManager; |
||||
|
||||
/**
|
||||
* @brief 添加地理围栏完成后的回调,成功与失败都会调用 |
||||
* @param manager 地理围栏管理类 |
||||
* @param regions 成功添加的一个或多个地理围栏构成的数组 |
||||
* @param customID 用户执行添加围栏函数时传入的customID |
||||
* @param error 添加失败的错误信息 |
||||
*/ |
||||
- (void)amapGeoFenceManager:(AMapGeoFenceManager *)manager didAddRegionForMonitoringFinished:(NSArray <AMapGeoFenceRegion *> *)regions customID:(NSString *)customID error:(NSError *)error; |
||||
|
||||
|
||||
/**
|
||||
* @brief 地理围栏状态改变时回调,当围栏状态的值发生改变,定位失败都会调用 |
||||
* @param manager 地理围栏管理类 |
||||
* @param region 状态改变的地理围栏 |
||||
* @param customID 用户执行添加围栏函数时传入的customID |
||||
* @param error 错误信息,如定位相关的错误 |
||||
*/ |
||||
- (void)amapGeoFenceManager:(AMapGeoFenceManager *)manager didGeoFencesStatusChangedForRegion:(AMapGeoFenceRegion *)region customID:(NSString *)customID error:(NSError *)error; |
||||
|
||||
@end |
@ -0,0 +1,120 @@
|
||||
//
|
||||
// AMapGeoFenceRegionObj.h
|
||||
// AMapLocationKit
|
||||
//
|
||||
// Created by hanxiaoming on 16/12/5.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapLocationCommonObj.h" |
||||
|
||||
|
||||
///AMapGeoFence Region State
|
||||
typedef NS_ENUM(NSInteger, AMapGeoFenceRegionStatus) |
||||
{ |
||||
AMapGeoFenceRegionStatusUnknown = 0, ///< 未知
|
||||
AMapGeoFenceRegionStatusInside = 1, ///< 在范围内
|
||||
AMapGeoFenceRegionStatusOutside = 2, ///< 在范围外
|
||||
AMapGeoFenceRegionStatusStayed = 3, ///< 停留(在范围内超过10分钟)
|
||||
}; |
||||
|
||||
typedef NS_ENUM(NSInteger, AMapGeoFenceRegionType) |
||||
{ |
||||
AMapGeoFenceRegionTypeCircle = 0, /// 圆形地理围栏
|
||||
AMapGeoFenceRegionTypePolygon = 1, /// 多边形地理围栏
|
||||
AMapGeoFenceRegionTypePOI = 2, /// 兴趣点(POI)地理围栏
|
||||
AMapGeoFenceRegionTypeDistrict = 3, /// 行政区划地理围栏
|
||||
}; |
||||
|
||||
#pragma mark - AMapGeoFenceRegion |
||||
|
||||
|
||||
///地理围栏基类,不可直接使用。(since 2.3.0)
|
||||
@interface AMapGeoFenceRegion : NSObject<NSCopying> |
||||
|
||||
|
||||
///AMapGeoFenceRegion的唯一标识符
|
||||
@property (nonatomic, copy, readonly) NSString *identifier; |
||||
|
||||
|
||||
///用户自定义ID,可为nil。
|
||||
@property (nonatomic, copy, readonly) NSString *customID; |
||||
|
||||
|
||||
///坐标点和围栏的关系,比如用户的位置和围栏的关系
|
||||
@property (nonatomic, assign) AMapGeoFenceRegionStatus fenceStatus; |
||||
|
||||
///用户自定义ID,可为nil。
|
||||
@property (nonatomic, assign) AMapGeoFenceRegionType regionType; |
||||
|
||||
///缓存最近获取的定位信息,可能会存在延时,可为nil,会在获取定位时更新
|
||||
@property (nonatomic, copy) CLLocation *currentLocation; |
||||
|
||||
@end |
||||
|
||||
|
||||
#pragma mark - AMapLocationCircleRegion |
||||
|
||||
|
||||
///圆形地理围栏(since 2.3.0)
|
||||
@interface AMapGeoFenceCircleRegion : AMapGeoFenceRegion |
||||
|
||||
|
||||
///中心点的经纬度坐标
|
||||
@property (nonatomic, readonly) CLLocationCoordinate2D center; |
||||
|
||||
|
||||
///半径,单位:米
|
||||
@property (nonatomic, readonly) CLLocationDistance radius; |
||||
|
||||
@end |
||||
|
||||
|
||||
#pragma mark -AMapGeoFencePolygonRegion |
||||
|
||||
|
||||
///多边形地理围栏(since 2.3.0)
|
||||
@interface AMapGeoFencePolygonRegion : AMapGeoFenceRegion |
||||
|
||||
|
||||
///经纬度坐标点数据
|
||||
@property (nonatomic, readonly) CLLocationCoordinate2D *coordinates; |
||||
|
||||
|
||||
///经纬度坐标点的个数
|
||||
@property (nonatomic, readonly) NSInteger count; |
||||
|
||||
|
||||
@end |
||||
|
||||
|
||||
#pragma mark -AMapGeoFencePOIRegion |
||||
|
||||
|
||||
///兴趣点(POI)地理围栏(since 2.3.0)
|
||||
@interface AMapGeoFencePOIRegion : AMapGeoFenceCircleRegion |
||||
|
||||
|
||||
///POI信息
|
||||
@property (nonatomic, strong, readonly) AMapLocationPOIItem *POIItem; |
||||
|
||||
|
||||
@end |
||||
|
||||
|
||||
#pragma mark -AMapGeoFenceDistrictRegion |
||||
|
||||
|
||||
///行政区划地理围栏(since 2.3.0)
|
||||
@interface AMapGeoFenceDistrictRegion : AMapGeoFenceRegion |
||||
|
||||
|
||||
///行政区域信息
|
||||
@property (nonatomic, strong, readonly) AMapLocationDistrictItem *districtItem; |
||||
|
||||
|
||||
///行政区域轮廓坐标点,每个行政区可能有多个模块,每个模块的坐标点数组由AMapLocationPoint构成
|
||||
@property (nonatomic, copy, readonly) NSArray <NSArray<AMapLocationPoint *> *> *polylinePoints; |
||||
|
||||
|
||||
@end |
@ -0,0 +1,202 @@
|
||||
//
|
||||
// AMapLocationCommonObj.h
|
||||
// AMapLocationKit
|
||||
//
|
||||
// Created by AutoNavi on 15/10/22.
|
||||
// Copyright © 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h> |
||||
#import <CoreLocation/CoreLocation.h> |
||||
#import <UIKit/UIKit.h> |
||||
|
||||
|
||||
///AMapLocation errorDomain
|
||||
extern NSString * const AMapLocationErrorDomain; |
||||
|
||||
///AMapLocation errorCode
|
||||
typedef NS_ENUM(NSInteger, AMapLocationErrorCode) |
||||
{ |
||||
AMapLocationErrorUnknown = 1, ///<未知错误
|
||||
AMapLocationErrorLocateFailed = 2, ///<定位错误
|
||||
AMapLocationErrorReGeocodeFailed = 3, ///<逆地理错误
|
||||
AMapLocationErrorTimeOut = 4, ///<超时
|
||||
AMapLocationErrorCanceled = 5, ///<取消
|
||||
AMapLocationErrorCannotFindHost = 6, ///<找不到主机
|
||||
AMapLocationErrorBadURL = 7, ///<URL异常
|
||||
AMapLocationErrorNotConnectedToInternet = 8,///<连接异常
|
||||
AMapLocationErrorCannotConnectToHost = 9, ///<服务器连接失败
|
||||
AMapLocationErrorRegionMonitoringFailure=10,///<地理围栏错误
|
||||
AMapLocationErrorRiskOfFakeLocation = 11, ///<存在虚拟定位风险
|
||||
AMapLocationErrorNoFullAccuracyAuth = 12, ///<精确定位权限异常
|
||||
}; |
||||
|
||||
///AMapLocation Region State
|
||||
typedef NS_ENUM(NSInteger, AMapLocationRegionState) |
||||
{ |
||||
AMapLocationRegionStateUnknow = 0, ///<未知
|
||||
AMapLocationRegionStateInside = 1, ///<在范围内
|
||||
AMapLocationRegionStateOutside = 2, ///<在范围外
|
||||
}; |
||||
|
||||
///AMapLocation Region Language
|
||||
typedef NS_ENUM(NSInteger, AMapLocationReGeocodeLanguage) |
||||
{ |
||||
AMapLocationReGeocodeLanguageDefault = 0, ///<默认,根据地区选择语言
|
||||
AMapLocationReGeocodeLanguageChinse = 1, ///<中文
|
||||
AMapLocationReGeocodeLanguageEnglish = 2, ///<英文
|
||||
}; |
||||
|
||||
///AMapLocation Accuracy Mode
|
||||
typedef NS_ENUM(NSInteger, AMapLocationAccuracyMode) { |
||||
AMapLocationFullAndReduceAccuracy = 0, |
||||
AMapLocationFullAccuracy, |
||||
AMapLocationReduceAccuracy |
||||
}; |
||||
|
||||
///逆地理信息
|
||||
@interface AMapLocationReGeocode : NSObject<NSCopying,NSCoding> |
||||
|
||||
///格式化地址
|
||||
@property (nonatomic, copy) NSString *formattedAddress; |
||||
|
||||
///国家
|
||||
@property (nonatomic, copy) NSString *country; |
||||
|
||||
///省/直辖市
|
||||
@property (nonatomic, copy) NSString *province; |
||||
|
||||
///市
|
||||
@property (nonatomic, copy) NSString *city; |
||||
|
||||
///区
|
||||
@property (nonatomic, copy) NSString *district; |
||||
|
||||
///乡镇
|
||||
@property (nonatomic, copy) NSString *township __attribute__((deprecated("该字段从v2.2.0版本起不再返回数据,建议您使用AMapSearchKit的逆地理功能获取."))); |
||||
|
||||
///社区
|
||||
@property (nonatomic, copy) NSString *neighborhood __attribute__((deprecated("该字段从v2.2.0版本起不再返回数据,建议您使用AMapSearchKit的逆地理功能获取."))); |
||||
|
||||
///建筑
|
||||
@property (nonatomic, copy) NSString *building __attribute__((deprecated("该字段从v2.2.0版本起不再返回数据,建议您使用AMapSearchKit的逆地理功能获取."))); |
||||
|
||||
///城市编码
|
||||
@property (nonatomic, copy) NSString *citycode; |
||||
|
||||
///区域编码
|
||||
@property (nonatomic, copy) NSString *adcode; |
||||
|
||||
///街道名称
|
||||
@property (nonatomic, copy) NSString *street; |
||||
|
||||
///门牌号
|
||||
@property (nonatomic, copy) NSString *number; |
||||
|
||||
///兴趣点名称
|
||||
@property (nonatomic, copy) NSString *POIName; |
||||
|
||||
///所属兴趣点名称
|
||||
@property (nonatomic, copy) NSString *AOIName; |
||||
|
||||
@end |
||||
|
||||
#pragma mark - AMapLocationPoint |
||||
|
||||
///经纬度坐标点对象
|
||||
@interface AMapLocationPoint : NSObject<NSCopying,NSCoding> |
||||
|
||||
///纬度
|
||||
@property (nonatomic, assign) CGFloat latitude; |
||||
|
||||
///经度
|
||||
@property (nonatomic, assign) CGFloat longitude; |
||||
|
||||
/**
|
||||
* @brief AMapNaviPoint类对象的初始化函数 |
||||
* @param lat 纬度 |
||||
* @param lon 经度 |
||||
* @return AMapNaviPoint类对象id |
||||
*/ |
||||
+ (AMapLocationPoint *)locationWithLatitude:(CGFloat)lat longitude:(CGFloat)lon; |
||||
|
||||
@end |
||||
|
||||
///POI信息
|
||||
@interface AMapLocationPOIItem : NSObject <NSCopying, NSCoding> |
||||
|
||||
///id
|
||||
@property (nonatomic, copy) NSString *pId; |
||||
|
||||
///名称
|
||||
@property (nonatomic, copy) NSString *name; |
||||
|
||||
///类型
|
||||
@property (nonatomic, copy) NSString *type; |
||||
|
||||
///类型编码
|
||||
@property (nonatomic, copy) NSString *typeCode; |
||||
|
||||
///地址信息
|
||||
@property (nonatomic, copy) NSString *address; |
||||
|
||||
///经纬度
|
||||
@property (nonatomic, strong) AMapLocationPoint *location; |
||||
|
||||
///电话号码
|
||||
@property (nonatomic, copy) NSString *tel; |
||||
|
||||
///省份
|
||||
@property (nonatomic, copy) NSString *province; |
||||
|
||||
///城市
|
||||
@property (nonatomic, copy) NSString *city; |
||||
|
||||
///区
|
||||
@property (nonatomic, copy) NSString *district; |
||||
|
||||
@end |
||||
|
||||
///行政区域信息
|
||||
@interface AMapLocationDistrictItem : NSObject <NSCopying, NSCoding> |
||||
|
||||
///城市编码
|
||||
@property (nonatomic, copy) NSString *cityCode; |
||||
|
||||
///区域编码
|
||||
@property (nonatomic, copy) NSString *districtCode; |
||||
|
||||
///区名
|
||||
@property (nonatomic, copy) NSString *district; |
||||
|
||||
///行政区域轮廓坐标点,每个行政区可能有多个模块,每个模块的坐标点数组由AMapLocationPoint构成
|
||||
@property (nonatomic, copy) NSArray <NSArray<AMapLocationPoint *> *> *polylinePoints; |
||||
|
||||
@end |
||||
|
||||
///AMapLocation CoordinateType
|
||||
typedef NS_ENUM(NSUInteger, AMapLocationCoordinateType) |
||||
{ |
||||
AMapLocationCoordinateTypeBaidu = 0, ///<Baidu
|
||||
AMapLocationCoordinateTypeMapBar, ///<MapBar
|
||||
AMapLocationCoordinateTypeMapABC, ///<MapABC
|
||||
AMapLocationCoordinateTypeSoSoMap, ///<SoSoMap
|
||||
AMapLocationCoordinateTypeAliYun, ///<AliYun
|
||||
AMapLocationCoordinateTypeGoogle, ///<Google
|
||||
AMapLocationCoordinateTypeGPS, ///<GPS
|
||||
}; |
||||
|
||||
/**
|
||||
* @brief 转换目标经纬度为高德坐标系 |
||||
* @param coordinate 待转换的经纬度 |
||||
* @param type 坐标系类型 |
||||
* @return 高德坐标系经纬度 |
||||
*/ |
||||
FOUNDATION_EXTERN CLLocationCoordinate2D AMapLocationCoordinateConvert(CLLocationCoordinate2D coordinate, AMapLocationCoordinateType type); |
||||
|
||||
/**
|
||||
* @brief 判断目标经纬度是否在大陆以及港、澳地区。输入参数为高德坐标系。 |
||||
* @param coordinate 待判断的目标经纬度 |
||||
* @return 是否在大陆以及港、澳地区 |
||||
*/ |
||||
FOUNDATION_EXTERN BOOL AMapLocationDataAvailableForCoordinate(CLLocationCoordinate2D coordinate); |
@ -0,0 +1,17 @@
|
||||
//
|
||||
// AMapLocationKit.h
|
||||
// AMapLocationKit
|
||||
//
|
||||
// Created by AutoNavi on 15/10/22.
|
||||
// Copyright © 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <AMapLocationKit/AMapLocationVersion.h> |
||||
|
||||
#import <AMapLocationKit/AMapLocationManager.h> |
||||
#import <AMapLocationKit/AMapLocationCommonObj.h> |
||||
#import <AMapLocationKit/AMapLocationRegionObj.h> |
||||
|
||||
#import <AMapLocationKit/AMapGeoFenceRegionObj.h> |
||||
#import <AMapLocationKit/AMapGeoFenceManager.h> |
||||
#import <AMapLocationKit/AMapGeoFenceError.h> |
@ -0,0 +1,90 @@
|
||||
//
|
||||
// AMapLocationRegionObj.h
|
||||
// AMapLocationKit
|
||||
//
|
||||
// Created by AutoNavi on 15/11/27.
|
||||
// Copyright © 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AMapLocationCommonObj.h" |
||||
|
||||
// 以下类涉及的坐标需要使用高德坐标系坐标(GCJ02)
|
||||
|
||||
#pragma mark - AMapLocationRegion |
||||
|
||||
|
||||
///AMapLocationRegion类,该类提供范围类的基本信息,并无具体实现,不要直接使用。
|
||||
@interface AMapLocationRegion : NSObject<NSCopying> |
||||
|
||||
///AMapLocationRegion的identifier
|
||||
@property (nonatomic, copy, readonly) NSString *identifier; |
||||
|
||||
///当进入region范围时是否通知,默认YES
|
||||
@property (nonatomic, assign) BOOL notifyOnEntry; |
||||
|
||||
///当离开region范围时是否通知,默认YES
|
||||
@property (nonatomic, assign) BOOL notifyOnExit; |
||||
|
||||
/**
|
||||
* @brief 初始化方法 |
||||
* @param identifier 唯一标识符,必填,不可为nil |
||||
*/ |
||||
- (instancetype)initWithIdentifier:(NSString *)identifier; |
||||
|
||||
/**
|
||||
* @brief 坐标点是否在范围内 |
||||
* @param coordinate 要判断的坐标点 |
||||
* @return 是否在范围内 |
||||
*/ |
||||
- (BOOL)containsCoordinate:(CLLocationCoordinate2D)coordinate; |
||||
|
||||
@end |
||||
|
||||
#pragma mark - AMapLocationCircleRegion |
||||
|
||||
|
||||
///AMapLocationCircleRegion类,定义一个圆形范围。
|
||||
@interface AMapLocationCircleRegion : AMapLocationRegion |
||||
|
||||
///中心点的经纬度坐标
|
||||
@property (nonatomic, readonly) CLLocationCoordinate2D center; |
||||
|
||||
///半径,单位:米
|
||||
@property (nonatomic, readonly) CLLocationDistance radius; |
||||
|
||||
/**
|
||||
* @brief 根据中心点和半径生成圆形范围 |
||||
* @param center 中心点的经纬度坐标 |
||||
* @param radius 半径,单位:米 |
||||
* @param identifier 唯一标识符,必填,不可为nil |
||||
* @return AMapLocationCircleRegion类实例 |
||||
*/ |
||||
- (instancetype)initWithCenter:(CLLocationCoordinate2D)center radius:(CLLocationDistance)radius identifier:(NSString *)identifier; |
||||
|
||||
|
||||
@end |
||||
|
||||
#pragma mark - AMapLocationPolygonRegion |
||||
|
||||
|
||||
///AMapLocationCircleRegion类,定义一个闭合多边形范围,点与点之间按顺序尾部相连, 第一个点与最后一个点相连。
|
||||
@interface AMapLocationPolygonRegion : AMapLocationRegion |
||||
|
||||
///经纬度坐标点数据
|
||||
@property (nonatomic, readonly) CLLocationCoordinate2D *coordinates; |
||||
|
||||
///经纬度坐标点的个数
|
||||
@property (nonatomic, readonly) NSInteger count; |
||||
|
||||
/**
|
||||
* @brief 根据经纬度坐标数据生成闭合多边形范围 |
||||
* @param coordinates 经纬度坐标点数据,coordinates对应的内存会拷贝,调用者负责该内存的释放 |
||||
* @param count 经纬度坐标点的个数,不可小于3个 |
||||
* @param identifier 唯一标识符,必填,不可为nil |
||||
* @return AMapLocationCircleRegion类实例 |
||||
*/ |
||||
- (instancetype)initWithCoordinates:(CLLocationCoordinate2D *)coordinates count:(NSInteger)count identifier:(NSString *)identifier; |
||||
|
||||
|
||||
|
||||
@end |
@ -0,0 +1,26 @@
|
||||
//
|
||||
// AMapLoctionVersion.h
|
||||
// AMapLocationKit
|
||||
//
|
||||
// Created by AutoNavi on 16/1/22.
|
||||
// Copyright © 2016年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h> |
||||
#import <AMapFoundationKit/AMapFoundationVersion.h> |
||||
|
||||
#ifndef AMapLoctionVersion_h |
||||
#define AMapLoctionVersion_h |
||||
|
||||
#define AMapLocationVersionNumber 20607 |
||||
#define AMapLocationFoundationVersionMinRequired 10604 |
||||
|
||||
// 依赖库版本检测
|
||||
#if AMapFoundationVersionNumber < AMapLocationFoundationVersionMinRequired |
||||
#error "The AMapFoundationKit version is less than minimum required, please update! Any questions please to visit http://lbs.amap.com"
|
||||
#endif |
||||
|
||||
FOUNDATION_EXTERN NSString * const AMapLocationVersion; |
||||
FOUNDATION_EXTERN NSString * const AMapLocationName; |
||||
|
||||
#endif /* AMapLoctionVersion_h */ |
@ -0,0 +1,6 @@
|
||||
framework module AMapLocationKit { |
||||
umbrella header "AMapLocationKit.h" |
||||
|
||||
export * |
||||
module * { export * } |
||||
} |
@ -0,0 +1 @@
|
||||
2.6.7+loc.ec398d6 |
@ -0,0 +1,864 @@
|
||||
//
|
||||
// AMapCommonObj.h
|
||||
// AMapSearchKit
|
||||
//
|
||||
// Created by xiaoming han on 15/7/22.
|
||||
// Copyright (c) 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
/* 该文件定义了搜索结果的基础数据类型。*/ |
||||
|
||||
#import <Foundation/Foundation.h> |
||||
#import <UIKit/UIKit.h> |
||||
|
||||
#pragma mark - AMapSearchObject |
||||
|
||||
///搜索SDK基础类, 通用数据结构和response支持copy和coding(since 4.4.1)。
|
||||
@interface AMapSearchObject : NSObject<NSCopying, NSCoding> |
||||
|
||||
/**
|
||||
* @brief 返回格式化的描述信息。通用数据结构和response类型有效。 |
||||
*/ |
||||
- (NSString *)formattedDescription; |
||||
|
||||
@end |
||||
|
||||
#pragma mark - 通用数据结构 |
||||
|
||||
///经纬度, description中格式为 <经度,纬度>
|
||||
@interface AMapGeoPoint : AMapSearchObject |
||||
///纬度(垂直方向)
|
||||
@property (nonatomic, assign) CGFloat latitude; |
||||
///经度(水平方向)
|
||||
@property (nonatomic, assign) CGFloat longitude; |
||||
|
||||
/**
|
||||
* @brief 实例化一个AMapGeoPoint对象 |
||||
* @param lat 纬度 |
||||
* @param lon 经度 |
||||
*/ |
||||
+ (AMapGeoPoint *)locationWithLatitude:(CGFloat)lat longitude:(CGFloat)lon; |
||||
@end |
||||
|
||||
///多边形, 当传入两个点的时候,当做矩形处理:左下-右上两个顶点;其他情况视为多边形,几个点即为几边型。
|
||||
@interface AMapGeoPolygon : AMapSearchObject |
||||
///坐标集, AMapGeoPoint 数组
|
||||
@property (nonatomic, strong) NSArray<AMapGeoPoint *> *points; |
||||
|
||||
/**
|
||||
* @brief 实例化一个多边形对象 |
||||
* @param points 坐标集, AMapGeoPoint 数组 |
||||
*/ |
||||
+ (AMapGeoPolygon *)polygonWithPoints:(NSArray *)points; |
||||
@end |
||||
|
||||
@class AMapDistrict; |
||||
///城市
|
||||
@interface AMapCity : AMapSearchObject |
||||
///城市名称
|
||||
@property (nonatomic, copy) NSString *city; |
||||
///城市编码
|
||||
@property (nonatomic, copy) NSString *citycode; |
||||
///城市区域编码
|
||||
@property (nonatomic, copy) NSString *adcode; |
||||
///此区域的建议结果数目, AMapSuggestion 中使用
|
||||
@property (nonatomic, assign) NSInteger num; |
||||
///途径区域 AMapDistrict 数组,AMepStep中使用,只有name和adcode。
|
||||
@property (nonatomic, strong) NSArray<AMapDistrict *> *districts; |
||||
@end |
||||
|
||||
///建议信息
|
||||
@interface AMapSuggestion : AMapSearchObject |
||||
///NSString 数组
|
||||
@property (nonatomic, strong) NSArray<NSString *> *keywords; |
||||
///AMapCity 数组
|
||||
@property (nonatomic, strong) NSArray<AMapCity *> *cities; |
||||
@end |
||||
|
||||
#pragma mark - 输入提示 |
||||
|
||||
///输入提示
|
||||
@interface AMapTip : AMapSearchObject |
||||
///poi的id
|
||||
@property (nonatomic, copy) NSString *uid; |
||||
///名称
|
||||
@property (nonatomic, copy) NSString *name; |
||||
///区域编码
|
||||
@property (nonatomic, copy) NSString *adcode; |
||||
///所属区域
|
||||
@property (nonatomic, copy) NSString *district; |
||||
///地址
|
||||
@property (nonatomic, copy) NSString *address; |
||||
///位置
|
||||
@property (nonatomic, copy) AMapGeoPoint *location; |
||||
///类型码, since 4.5.0. 对应描述可下载参考官网文档 http://a.amap.com/lbs/static/zip/AMap_API_Table.zip。
|
||||
@property (nonatomic, copy) NSString *typecode; |
||||
@end |
||||
|
||||
#pragma mark - POI |
||||
|
||||
///POI图片信息
|
||||
@interface AMapImage : AMapSearchObject |
||||
///标题
|
||||
@property (nonatomic, copy) NSString *title; |
||||
///url
|
||||
@property (nonatomic, copy) NSString *url; |
||||
@end |
||||
|
||||
///POI扩展信息
|
||||
@interface AMapPOIExtension : AMapSearchObject |
||||
///评分
|
||||
@property (nonatomic, assign) CGFloat rating; |
||||
///人均消费
|
||||
@property (nonatomic, assign) CGFloat cost; |
||||
///营业时间
|
||||
@property (nonatomic, copy) NSString *openTime; |
||||
@end |
||||
|
||||
///POI室内地图信息
|
||||
@interface AMapIndoorData : AMapSearchObject |
||||
///楼层,为0时为POI本身
|
||||
@property (nonatomic, assign) NSInteger floor; |
||||
///楼层名称
|
||||
@property (nonatomic, copy) NSString *floorName; |
||||
///建筑物ID
|
||||
@property (nonatomic, copy) NSString *pid; |
||||
@end |
||||
|
||||
///子POI
|
||||
@interface AMapSubPOI : AMapSearchObject |
||||
///POI全局唯一ID
|
||||
@property (nonatomic, copy) NSString *uid; |
||||
///名称
|
||||
@property (nonatomic, copy) NSString *name; |
||||
///名称简写
|
||||
@property (nonatomic, copy) NSString *sname; |
||||
///经纬度
|
||||
@property (nonatomic, copy) AMapGeoPoint *location; |
||||
///地址
|
||||
@property (nonatomic, copy) NSString *address; |
||||
///距中心点距离
|
||||
@property (nonatomic, assign) NSInteger distance; |
||||
///子POI类型
|
||||
@property (nonatomic, copy) NSString *subtype; |
||||
@end |
||||
|
||||
///沿途POI
|
||||
@interface AMapRoutePOI : AMapSearchObject |
||||
///POI全局唯一ID
|
||||
@property (nonatomic, copy) NSString *uid; |
||||
///名称
|
||||
@property (nonatomic, copy) NSString *name; |
||||
///经纬度
|
||||
@property (nonatomic, copy) AMapGeoPoint *location; |
||||
///用户起点经过途经点再到终点的距离,单位是米
|
||||
@property (nonatomic, assign) NSInteger distance; |
||||
///用户起点经过途经点再到终点的时间,单位为秒
|
||||
@property (nonatomic, assign) NSInteger duration; |
||||
@end |
||||
|
||||
///POI
|
||||
@interface AMapPOI : AMapSearchObject |
||||
///POI全局唯一ID
|
||||
@property (nonatomic, copy) NSString *uid; |
||||
///名称
|
||||
@property (nonatomic, copy) NSString *name; |
||||
///兴趣点类型
|
||||
@property (nonatomic, copy) NSString *type; |
||||
///类型编码
|
||||
@property (nonatomic, copy) NSString *typecode; |
||||
///经纬度
|
||||
@property (nonatomic, copy) AMapGeoPoint *location; |
||||
///地址
|
||||
@property (nonatomic, copy) NSString *address; |
||||
///电话
|
||||
@property (nonatomic, copy) NSString *tel; |
||||
///距中心点的距离,单位米。在周边搜索时有效
|
||||
@property (nonatomic, assign) NSInteger distance; |
||||
///停车场类型,地上、地下、路边
|
||||
@property (nonatomic, copy) NSString *parkingType; |
||||
///商铺id
|
||||
@property (nonatomic, copy) NSString *shopID; |
||||
|
||||
///邮编
|
||||
@property (nonatomic, copy) NSString *postcode; |
||||
///网址
|
||||
@property (nonatomic, copy) NSString *website; |
||||
///电子邮件
|
||||
@property (nonatomic, copy) NSString *email; |
||||
///省
|
||||
@property (nonatomic, copy) NSString *province; |
||||
///省编码
|
||||
@property (nonatomic, copy) NSString *pcode; |
||||
///城市名称
|
||||
@property (nonatomic, copy) NSString *city; |
||||
///城市编码
|
||||
@property (nonatomic, copy) NSString *citycode; |
||||
///区域名称
|
||||
@property (nonatomic, copy) NSString *district; |
||||
///区域编码
|
||||
@property (nonatomic, copy) NSString *adcode; |
||||
///地理格ID
|
||||
@property (nonatomic, copy) NSString *gridcode; |
||||
///入口经纬度
|
||||
@property (nonatomic, copy) AMapGeoPoint *enterLocation; |
||||
///出口经纬度
|
||||
@property (nonatomic, copy) AMapGeoPoint *exitLocation; |
||||
///方向
|
||||
@property (nonatomic, copy) NSString *direction; |
||||
///是否有室内地图
|
||||
@property (nonatomic, assign) BOOL hasIndoorMap; |
||||
///所在商圈
|
||||
@property (nonatomic, copy) NSString *businessArea; |
||||
///室内信息
|
||||
@property (nonatomic, strong) AMapIndoorData *indoorData; |
||||
///子POI列表
|
||||
@property (nonatomic, strong) NSArray<AMapSubPOI *> *subPOIs; |
||||
///图片列表
|
||||
@property (nonatomic, strong) NSArray<AMapImage *> *images; |
||||
|
||||
///扩展信息只有在ID查询时有效
|
||||
@property (nonatomic, strong) AMapPOIExtension *extensionInfo; |
||||
@end |
||||
|
||||
#pragma mark - 逆地理编码 && 地理编码 |
||||
|
||||
///兴趣区域
|
||||
@interface AMapAOI : AMapSearchObject |
||||
///AOI全局唯一ID
|
||||
@property (nonatomic, copy) NSString *uid; |
||||
///名称
|
||||
@property (nonatomic, copy) NSString *name; |
||||
///所在区域编码
|
||||
@property (nonatomic, copy) NSString *adcode; |
||||
///中心点经纬度
|
||||
@property (nonatomic, copy) AMapGeoPoint *location; |
||||
///面积,单位平方米
|
||||
@property (nonatomic, assign) CGFloat area; |
||||
@end |
||||
|
||||
///道路
|
||||
@interface AMapRoad : AMapSearchObject |
||||
///道路ID
|
||||
@property (nonatomic, copy) NSString *uid;
|
||||
///道路名称
|
||||
@property (nonatomic, copy) NSString *name;
|
||||
///距离(单位:米)
|
||||
@property (nonatomic, assign) NSInteger distance;
|
||||
///方向
|
||||
@property (nonatomic, copy) NSString *direction;
|
||||
///坐标点
|
||||
@property (nonatomic, copy) AMapGeoPoint *location; |
||||
@end |
||||
|
||||
///道路交叉口
|
||||
@interface AMapRoadInter : AMapSearchObject |
||||
///距离(单位:米)
|
||||
@property (nonatomic, assign) NSInteger distance;
|
||||
///方向
|
||||
@property (nonatomic, copy) NSString *direction;
|
||||
///经纬度
|
||||
@property (nonatomic, copy) AMapGeoPoint *location;
|
||||
///第一条道路ID
|
||||
@property (nonatomic, copy) NSString *firstId;
|
||||
///第一条道路名称
|
||||
@property (nonatomic, copy) NSString *firstName;
|
||||
///第二条道路ID
|
||||
@property (nonatomic, copy) NSString *secondId;
|
||||
///第二条道路名称
|
||||
@property (nonatomic, copy) NSString *secondName; |
||||
@end |
||||
|
||||
///门牌信息
|
||||
@interface AMapStreetNumber : AMapSearchObject |
||||
///街道名称
|
||||
@property (nonatomic, copy) NSString *street;
|
||||
///门牌号
|
||||
@property (nonatomic, copy) NSString *number;
|
||||
///坐标点
|
||||
@property (nonatomic, copy) AMapGeoPoint *location;
|
||||
///距离(单位:米)
|
||||
@property (nonatomic, assign) NSInteger distance;
|
||||
///方向
|
||||
@property (nonatomic, copy) NSString *direction; |
||||
@end |
||||
|
||||
///商圈
|
||||
@interface AMapBusinessArea : AMapSearchObject |
||||
///名称
|
||||
@property (nonatomic, strong) NSString *name;
|
||||
///中心坐标
|
||||
@property (nonatomic, copy) AMapGeoPoint *location; |
||||
@end |
||||
|
||||
///地址组成要素
|
||||
@interface AMapAddressComponent : AMapSearchObject |
||||
///国家(since 5.7.0)
|
||||
@property (nonatomic, copy) NSString *country; |
||||
///国家简码(since 7.4.0)仅海外生效
|
||||
@property (nonatomic, copy) NSString *countryCode; |
||||
///省/直辖市
|
||||
@property (nonatomic, copy) NSString *province;
|
||||
///市
|
||||
@property (nonatomic, copy) NSString *city;
|
||||
///城市编码
|
||||
@property (nonatomic, copy) NSString *citycode;
|
||||
///区
|
||||
@property (nonatomic, copy) NSString *district;
|
||||
///区域编码
|
||||
@property (nonatomic, copy) NSString *adcode;
|
||||
///乡镇街道
|
||||
@property (nonatomic, copy) NSString *township;
|
||||
///乡镇街道编码
|
||||
@property (nonatomic, copy) NSString *towncode;
|
||||
///社区
|
||||
@property (nonatomic, copy) NSString *neighborhood;
|
||||
///建筑
|
||||
@property (nonatomic, copy) NSString *building;
|
||||
///门牌信息
|
||||
@property (nonatomic, strong) AMapStreetNumber *streetNumber;
|
||||
///商圈列表 AMapBusinessArea 数组
|
||||
@property (nonatomic, strong) NSArray<AMapBusinessArea *> *businessAreas; |
||||
@end |
||||
|
||||
///逆地理编码
|
||||
@interface AMapReGeocode : AMapSearchObject |
||||
///格式化地址
|
||||
@property (nonatomic, copy) NSString *formattedAddress;
|
||||
///地址组成要素
|
||||
@property (nonatomic, strong) AMapAddressComponent *addressComponent;
|
||||
|
||||
///道路信息 AMapRoad 数组
|
||||
@property (nonatomic, strong) NSArray<AMapRoad *> *roads;
|
||||
///道路路口信息 AMapRoadInter 数组
|
||||
@property (nonatomic, strong) NSArray<AMapRoadInter *> *roadinters;
|
||||
///兴趣点信息 AMapPOI 数组
|
||||
@property (nonatomic, strong) NSArray<AMapPOI *> *pois;
|
||||
///兴趣区域信息 AMapAOI 数组
|
||||
@property (nonatomic, strong) NSArray<AMapAOI *> *aois; |
||||
@end |
||||
|
||||
///地理编码
|
||||
@interface AMapGeocode : AMapSearchObject |
||||
///格式化地址
|
||||
@property (nonatomic, copy) NSString *formattedAddress;
|
||||
///所在省/直辖市
|
||||
@property (nonatomic, copy) NSString *province;
|
||||
///城市名
|
||||
@property (nonatomic, copy) NSString *city;
|
||||
///城市编码
|
||||
@property (nonatomic, copy) NSString *citycode;
|
||||
///区域名称
|
||||
@property (nonatomic, copy) NSString *district;
|
||||
///区域编码
|
||||
@property (nonatomic, copy) NSString *adcode;
|
||||
///乡镇街道
|
||||
@property (nonatomic, copy) NSString *township;
|
||||
///社区
|
||||
@property (nonatomic, copy) NSString *neighborhood;
|
||||
///楼
|
||||
@property (nonatomic, copy) NSString *building;
|
||||
///坐标点
|
||||
@property (nonatomic, copy) AMapGeoPoint *location;
|
||||
///匹配的等级
|
||||
@property (nonatomic, copy) NSString *level; |
||||
///国家(since 7.4.0)仅海外生效
|
||||
@property (nonatomic, copy) NSString *country; |
||||
///国家简码(since 7.4.0)仅海外生效
|
||||
@property (nonatomic, copy) NSString *postcode; |
||||
@end |
||||
|
||||
#pragma mark - 公交查询 |
||||
@class AMapBusLine; |
||||
|
||||
///公交站
|
||||
@interface AMapBusStop : AMapSearchObject |
||||
///公交站点ID
|
||||
@property (nonatomic, copy) NSString *uid;
|
||||
///区域编码
|
||||
@property (nonatomic, copy) NSString *adcode;
|
||||
///公交站名
|
||||
@property (nonatomic, copy) NSString *name;
|
||||
///城市编码
|
||||
@property (nonatomic, copy) NSString *citycode;
|
||||
///经纬度坐标
|
||||
@property (nonatomic, copy) AMapGeoPoint *location;
|
||||
///途径此站的公交路线 AMapBusLine 数组
|
||||
@property (nonatomic, strong) NSArray<AMapBusLine *> *buslines;
|
||||
///查询公交线路时的第几站
|
||||
@property (nonatomic, copy) NSString *sequence; |
||||
@end |
||||
|
||||
///公交线路
|
||||
@interface AMapBusLine : AMapSearchObject |
||||
///公交线路ID
|
||||
@property (nonatomic, copy) NSString *uid;
|
||||
///公交类型
|
||||
@property (nonatomic, copy) NSString *type;
|
||||
///公交线路名称
|
||||
@property (nonatomic, copy) NSString *name;
|
||||
///坐标集合
|
||||
@property (nonatomic, copy) NSString *polyline;
|
||||
///城市编码
|
||||
@property (nonatomic, copy) NSString *citycode;
|
||||
///首发站
|
||||
@property (nonatomic, copy) NSString *startStop;
|
||||
///终点站
|
||||
@property (nonatomic, copy) NSString *endStop;
|
||||
///当查询公交站点时,返回的 AMapBusLine 中含有该字段
|
||||
@property (nonatomic, copy) AMapGeoPoint *location;
|
||||
|
||||
///首班车时间
|
||||
@property (nonatomic, copy) NSString *startTime;
|
||||
///末班车时间
|
||||
@property (nonatomic, copy) NSString *endTime;
|
||||
///所属公交公司
|
||||
@property (nonatomic, copy) NSString *company;
|
||||
///距离。在公交线路查询时,该值为此线路的全程距离,单位为千米; 在公交路径规划时,该值为乘坐此路公交车的行驶距离,单位为米
|
||||
@property (nonatomic, assign) CGFloat distance;
|
||||
///起步价
|
||||
@property (nonatomic, assign) CGFloat basicPrice;
|
||||
///全程票价
|
||||
@property (nonatomic, assign) CGFloat totalPrice;
|
||||
///矩形区域左下、右上顶点坐标
|
||||
@property (nonatomic, copy) AMapGeoPolygon *bounds;
|
||||
///本线路公交站 AMapBusStop 数组
|
||||
@property (nonatomic, strong) NSArray<AMapBusStop *> *busStops;
|
||||
|
||||
///起程站
|
||||
@property (nonatomic, strong) AMapBusStop *departureStop;
|
||||
///下车站
|
||||
@property (nonatomic, strong) AMapBusStop *arrivalStop;
|
||||
///途径公交站 AMapBusStop 数组
|
||||
@property (nonatomic, strong) NSArray<AMapBusStop *> *viaBusStops;
|
||||
///预计行驶时间(单位:秒)
|
||||
@property (nonatomic, assign) NSInteger duration; |
||||
@end |
||||
|
||||
#pragma mark - 行政区划 |
||||
///行政区划
|
||||
@interface AMapDistrict : AMapSearchObject |
||||
///区域编码
|
||||
@property (nonatomic, copy) NSString *adcode;
|
||||
///城市编码
|
||||
@property (nonatomic, copy) NSString *citycode;
|
||||
///行政区名称
|
||||
@property (nonatomic, copy) NSString *name;
|
||||
///级别
|
||||
@property (nonatomic, copy) NSString *level;
|
||||
///城市中心点
|
||||
@property (nonatomic, copy) AMapGeoPoint *center;
|
||||
///下级行政区域数组
|
||||
@property (nonatomic, strong) NSArray<AMapDistrict *> *districts;
|
||||
///行政区边界坐标点, NSString 数组
|
||||
@property (nonatomic, strong) NSArray<NSString *> *polylines; |
||||
@end |
||||
|
||||
#pragma mark - 路径规划 |
||||
|
||||
///实时路况信息
|
||||
@interface AMapTMC : AMapSearchObject |
||||
///长度(单位:米)
|
||||
@property (nonatomic, assign) NSInteger distance;
|
||||
///路况状态描述:0 未知,1 畅通,2 缓行,3 拥堵,4 严重拥堵
|
||||
@property (nonatomic, copy) NSString *status;
|
||||
///此路段坐标点串
|
||||
@property (nonatomic, copy) NSString *polyline; |
||||
@end |
||||
|
||||
///路段基本信息
|
||||
@interface AMapStep : AMapSearchObject |
||||
///行走指示
|
||||
@property (nonatomic, copy) NSString *instruction;
|
||||
///方向
|
||||
@property (nonatomic, copy) NSString *orientation;
|
||||
///道路名称
|
||||
@property (nonatomic, copy) NSString *road;
|
||||
///此路段长度(单位:米)
|
||||
@property (nonatomic, assign) NSInteger distance;
|
||||
///此路段预计耗时(单位:秒)
|
||||
@property (nonatomic, assign) NSInteger duration;
|
||||
///此路段坐标点串
|
||||
@property (nonatomic, copy) NSString *polyline;
|
||||
///导航主要动作
|
||||
@property (nonatomic, copy) NSString *action;
|
||||
///导航辅助动作
|
||||
@property (nonatomic, copy) NSString *assistantAction;
|
||||
///此段收费(单位:元)
|
||||
@property (nonatomic, assign) CGFloat tolls;
|
||||
///收费路段长度(单位:米)
|
||||
@property (nonatomic, assign) NSInteger tollDistance;
|
||||
///主要收费路段
|
||||
@property (nonatomic, copy) NSString *tollRoad; |
||||
|
||||
///途径城市 AMapCity 数组,只有驾车路径规划时有效
|
||||
@property (nonatomic, strong) NSArray<AMapCity *> *cities; |
||||
///路况信息数组,只有驾车路径规划时有效
|
||||
@property (nonatomic, strong) NSArray<AMapTMC *> *tmcs; |
||||
@end |
||||
|
||||
///步行、骑行、驾车方案
|
||||
@interface AMapPath : AMapSearchObject |
||||
///起点和终点的距离
|
||||
@property (nonatomic, assign) NSInteger distance;
|
||||
///预计耗时(单位:秒)
|
||||
@property (nonatomic, assign) NSInteger duration;
|
||||
///导航策略
|
||||
@property (nonatomic, copy) NSString *strategy;
|
||||
///导航路段 AMapStep 数组
|
||||
@property (nonatomic, strong) NSArray<AMapStep *> *steps;
|
||||
///此方案费用(单位:元)
|
||||
@property (nonatomic, assign) CGFloat tolls;
|
||||
///此方案收费路段长度(单位:米)
|
||||
@property (nonatomic, assign) NSInteger tollDistance;
|
||||
///此方案交通信号灯个数
|
||||
@property (nonatomic, assign) NSInteger totalTrafficLights; |
||||
|
||||
/**
|
||||
限行信息,仅在驾车和货车路径规划时有效。(since 6.0.0) |
||||
驾车路径规划时: |
||||
0 代表限行已规避或未限行; 1 代表限行无法规避。 |
||||
货车路径规划时: |
||||
0,未知(未输入完整/正确车牌号信息时候显示) |
||||
1,已规避限行 |
||||
2,起点限行 |
||||
3,途径点在限行区域内(设置途径点才出现此报错) |
||||
4,途径限行区域 |
||||
5,终点限行 |
||||
*/ |
||||
@property (nonatomic, assign) NSInteger restriction; |
||||
///规划路径完整坐标点串集合(since 7.4.0)
|
||||
@property (nonatomic, copy) NSString *polyline; |
||||
|
||||
@end |
||||
|
||||
@interface AMapFutureTimeInfoElement : AMapSearchObject |
||||
|
||||
///总时长(分钟)
|
||||
@property (nonatomic, assign) NSInteger duration; |
||||
///对应的路径规划方案中的路线
|
||||
@property (nonatomic, assign) NSInteger pathindex; |
||||
/**
|
||||
0:代表限行已规避或未限行,即该路线没有限行路段 |
||||
1:代表限行无法规避,即该线路有限行路段 |
||||
*/ |
||||
@property (nonatomic, assign) NSInteger restriction; |
||||
///路况信息数组,只会返回AMapTMC中的status、polyline
|
||||
@property (nonatomic, strong) NSArray<AMapTMC *> *tmcs; |
||||
|
||||
@end |
||||
|
||||
@interface AMapFutureTimeInfo : AMapSearchObject |
||||
|
||||
///出发时间
|
||||
@property (nonatomic, copy) NSString *startTime; |
||||
///路线列表 AMapFutureTimeInfoElement 数组
|
||||
@property (nonatomic, strong) NSArray<AMapFutureTimeInfoElement *> *elements; |
||||
@end |
||||
|
||||
///步行换乘信息
|
||||
@interface AMapWalking : AMapSearchObject |
||||
///起点坐标
|
||||
@property (nonatomic, copy) AMapGeoPoint *origin;
|
||||
///终点坐标
|
||||
@property (nonatomic, copy) AMapGeoPoint *destination;
|
||||
///起点和终点的步行距离
|
||||
@property (nonatomic, assign) NSInteger distance;
|
||||
///步行预计时间
|
||||
@property (nonatomic, assign) NSInteger duration;
|
||||
///步行路段 AMapStep 数组
|
||||
@property (nonatomic, strong) NSArray<AMapStep *> *steps;
|
||||
@end |
||||
|
||||
///出租车信息
|
||||
@interface AMapTaxi : AMapSearchObject |
||||
///起点坐标
|
||||
@property (nonatomic, copy) AMapGeoPoint *origin;
|
||||
///终点坐标
|
||||
@property (nonatomic, copy) AMapGeoPoint *destination;
|
||||
///距离,单位米
|
||||
@property (nonatomic, assign) NSInteger distance;
|
||||
///耗时,单位秒
|
||||
@property (nonatomic, assign) NSInteger duration;
|
||||
///起点名称
|
||||
@property (nonatomic, copy) NSString *sname;
|
||||
///终点名称
|
||||
@property (nonatomic, copy) NSString *tname;
|
||||
@end |
||||
|
||||
///火车站
|
||||
@interface AMapRailwayStation : AMapSearchObject |
||||
///火车站ID
|
||||
@property (nonatomic, copy) NSString *uid;
|
||||
///名称
|
||||
@property (nonatomic, copy) NSString *name;
|
||||
///经纬度坐标
|
||||
@property (nonatomic, copy) AMapGeoPoint *location;
|
||||
///区域编码
|
||||
@property (nonatomic, copy) NSString *adcode;
|
||||
///发车、到站时间,途径站时则为进站时间
|
||||
@property (nonatomic, copy) NSString *time;
|
||||
///途径站点的停靠时间,单位为分钟
|
||||
@property (nonatomic, assign) NSInteger wait;
|
||||
///是否是始发站,为出发站时有效
|
||||
@property (nonatomic, assign) BOOL isStart;
|
||||
///是否是终点站,为到达站时有效
|
||||
@property (nonatomic, assign) BOOL isEnd;
|
||||
@end |
||||
|
||||
///火车仓位及价格信息
|
||||
@interface AMapRailwaySpace : AMapSearchObject |
||||
///类型,硬卧、硬座等
|
||||
@property (nonatomic, copy) NSString *code;
|
||||
///票价,单位元
|
||||
@property (nonatomic, assign) CGFloat cost;
|
||||
@end |
||||
|
||||
///火车信息
|
||||
@interface AMapRailway : AMapSearchObject |
||||
///火车线路ID
|
||||
@property (nonatomic, copy) NSString *uid;
|
||||
///名称
|
||||
@property (nonatomic, copy) NSString *name;
|
||||
///车次
|
||||
@property (nonatomic, copy) NSString *trip;
|
||||
///类型
|
||||
@property (nonatomic, copy) NSString *type;
|
||||
///该换乘段行车总距离,单位为米
|
||||
@property (nonatomic, assign) NSInteger distance;
|
||||
///该线路车段耗时,单位为秒
|
||||
@property (nonatomic, assign) NSInteger time;
|
||||
///出发站
|
||||
@property (nonatomic, strong) AMapRailwayStation *departureStation;
|
||||
///到达站
|
||||
@property (nonatomic, strong) AMapRailwayStation *arrivalStation;
|
||||
///仓位及价格信息
|
||||
@property (nonatomic, strong) NSArray<AMapRailwaySpace *> *spaces;
|
||||
|
||||
///途径站点信息
|
||||
@property (nonatomic, strong) NSArray<AMapRailwayStation *> *viaStops;
|
||||
///备选路线信息, 目前只有id和name
|
||||
@property (nonatomic, strong) NSArray<AMapRailway *> *alters; |
||||
@end |
||||
|
||||
|
||||
///公交换乘路段,如果walking和buslines同时有值,则是先walking后buslines
|
||||
@interface AMapSegment : AMapSearchObject |
||||
///此路段步行导航信息
|
||||
@property (nonatomic, strong) AMapWalking *walking;
|
||||
///此路段可供选择的不同公交线路 AMapBusLine 数组
|
||||
@property (nonatomic, strong) NSArray<AMapBusLine *> *buslines;
|
||||
///出租车信息,跨城时有效
|
||||
@property (nonatomic, strong) AMapTaxi *taxi;
|
||||
///火车信息,跨城时有效
|
||||
@property (nonatomic, strong) AMapRailway *railway;
|
||||
///入口名称
|
||||
@property (nonatomic, copy) NSString *enterName;
|
||||
///入口经纬度
|
||||
@property (nonatomic, copy) AMapGeoPoint *enterLocation;
|
||||
///出口名称
|
||||
@property (nonatomic, copy) NSString *exitName;
|
||||
///出口经纬度
|
||||
@property (nonatomic, copy) AMapGeoPoint *exitLocation;
|
||||
@end |
||||
|
||||
///公交方案
|
||||
@interface AMapTransit : AMapSearchObject |
||||
///此公交方案价格(单位:元)
|
||||
@property (nonatomic, assign) CGFloat cost;
|
||||
///此换乘方案预期时间(单位:秒)
|
||||
@property (nonatomic, assign) NSInteger duration;
|
||||
///是否是夜班车
|
||||
@property (nonatomic, assign) BOOL nightflag;
|
||||
///此方案总步行距离(单位:米)
|
||||
@property (nonatomic, assign) NSInteger walkingDistance;
|
||||
///换乘路段 AMapSegment 数组
|
||||
@property (nonatomic, strong) NSArray<AMapSegment *> *segments;
|
||||
///当前方案的总距离
|
||||
@property (nonatomic, assign) NSInteger distance;
|
||||
@end |
||||
|
||||
///路径规划信息
|
||||
@interface AMapRoute : AMapSearchObject |
||||
///起点坐标
|
||||
@property (nonatomic, copy) AMapGeoPoint *origin;
|
||||
///终点坐标
|
||||
@property (nonatomic, copy) AMapGeoPoint *destination;
|
||||
///出租车费用(单位:元)
|
||||
@property (nonatomic, assign) CGFloat taxiCost;
|
||||
///步行、骑行、驾车方案列表 AMapPath 数组
|
||||
@property (nonatomic, strong) NSArray<AMapPath *> *paths;
|
||||
///公交换乘方案列表 AMapTransit 数组
|
||||
@property (nonatomic, strong) NSArray<AMapTransit *> *transits;
|
||||
@end |
||||
|
||||
///距离测量结果
|
||||
@interface AMapDistanceResult : AMapSearchObject |
||||
///起点坐标,起点坐标序列号(从1开始)
|
||||
@property (nonatomic, assign) NSInteger originID; |
||||
///终点坐标,终点坐标序列号(从1开始)
|
||||
@property (nonatomic, assign) NSInteger destID; |
||||
///路径距离,单位:米
|
||||
@property (nonatomic, assign) NSInteger distance; |
||||
///预计行驶时间,单位:秒
|
||||
@property (nonatomic, assign) NSInteger duration; |
||||
///错误信息,建议用此字段判断请求是否成功
|
||||
@property (nonatomic, copy) NSString *info; |
||||
///在驾车模式下有效。默认为0;1:指定地点之间没有可以行车的道路;2:起点/终点 距离所有道路均距离过远(例如在海洋/矿业);3;起点/终点不在中国境内;
|
||||
@property (nonatomic, assign) NSInteger code; |
||||
@end |
||||
|
||||
#pragma mark - 天气查询 |
||||
|
||||
///实况天气,仅支持中国部分地区数据(台湾省目前没有数据)返回
|
||||
@interface AMapLocalWeatherLive : AMapSearchObject |
||||
///区域编码
|
||||
@property (nonatomic, copy) NSString *adcode;
|
||||
///省份名
|
||||
@property (nonatomic, copy) NSString *province;
|
||||
///城市名
|
||||
@property (nonatomic, copy) NSString *city;
|
||||
///天气现象
|
||||
@property (nonatomic, copy) NSString *weather;
|
||||
///实时温度
|
||||
@property (nonatomic, copy) NSString *temperature;
|
||||
///风向
|
||||
@property (nonatomic, copy) NSString *windDirection;
|
||||
///风力,单位:级
|
||||
@property (nonatomic, copy) NSString *windPower;
|
||||
///空气湿度
|
||||
@property (nonatomic, copy) NSString *humidity;
|
||||
///数据发布时间
|
||||
@property (nonatomic, copy) NSString *reportTime;
|
||||
@end |
||||
|
||||
///某一天的天气预报信息
|
||||
@interface AMapLocalDayWeatherForecast : AMapSearchObject |
||||
///日期
|
||||
@property (nonatomic, copy) NSString *date;
|
||||
///星期
|
||||
@property (nonatomic, copy) NSString *week;
|
||||
///白天天气现象
|
||||
@property (nonatomic, copy) NSString *dayWeather;
|
||||
///晚上天气现象
|
||||
@property (nonatomic, copy) NSString *nightWeather; |
||||
///白天温度
|
||||
@property (nonatomic, copy) NSString *dayTemp;
|
||||
///晚上温度
|
||||
@property (nonatomic, copy) NSString *nightTemp;
|
||||
///白天风向
|
||||
@property (nonatomic, copy) NSString *dayWind;
|
||||
///晚上风向
|
||||
@property (nonatomic, copy) NSString *nightWind;
|
||||
///白天风力
|
||||
@property (nonatomic, copy) NSString *dayPower;
|
||||
///晚上风力
|
||||
@property (nonatomic, copy) NSString *nightPower;
|
||||
@end |
||||
|
||||
///天气预报类,支持当前时间在内的3天的天气进行预报
|
||||
@interface AMapLocalWeatherForecast : AMapSearchObject |
||||
///区域编码
|
||||
@property (nonatomic, copy) NSString *adcode;
|
||||
///省份名
|
||||
@property (nonatomic, copy) NSString *province;
|
||||
///城市名
|
||||
@property (nonatomic, copy) NSString *city;
|
||||
///数据发布时间
|
||||
@property (nonatomic, copy) NSString *reportTime;
|
||||
///天气预报AMapLocalDayWeatherForecast数组
|
||||
@property (nonatomic, strong) NSArray<AMapLocalDayWeatherForecast *> *casts;
|
||||
@end |
||||
|
||||
#pragma mark - 附近搜索 |
||||
///附近搜索返回的用户信息
|
||||
@interface AMapNearbyUserInfo : AMapSearchObject |
||||
///用户ID
|
||||
@property (nonatomic, copy) NSString *userID;
|
||||
///最后更新位置
|
||||
@property (nonatomic, copy) AMapGeoPoint *location;
|
||||
///与搜索点的距离,由搜索时searchType决定
|
||||
@property (nonatomic, assign) CGFloat distance;
|
||||
///最后更新的时间戳,单位秒
|
||||
@property (nonatomic, assign) NSTimeInterval updatetime;
|
||||
@end |
||||
|
||||
#pragma mark - 交通态势 |
||||
|
||||
///道路路况评价 since 5.1.0
|
||||
@interface AMapTrafficEvaluation : AMapSearchObject |
||||
///综述
|
||||
@property (nonatomic, copy) NSString *evaluationDescription; |
||||
///0:未知;1:畅通;2:缓行;3:拥堵
|
||||
@property (nonatomic, assign) NSInteger status; |
||||
///畅通所占百分比
|
||||
@property (nonatomic, copy) NSString *expedite; |
||||
///缓行所占百分比
|
||||
@property (nonatomic, copy) NSString *congested; |
||||
///拥堵所占百分比
|
||||
@property (nonatomic, copy) NSString *blocked; |
||||
///未知路段所占百分比
|
||||
@property (nonatomic, copy) NSString *unknown; |
||||
@end |
||||
|
||||
///道路路况返回的道路信息 since 5.1.0
|
||||
@interface AMapTrafficRoad : AMapSearchObject |
||||
///道路名称
|
||||
@property (nonatomic, copy) NSString *name; |
||||
///0:未知;1:畅通;2:缓行;3:拥堵
|
||||
@property (nonatomic, assign) NSInteger status; |
||||
///方向描述
|
||||
@property (nonatomic, copy) NSString *direction; |
||||
///车行角度,判断道路正反向使用。 以正东方向为0度,逆时针方向为正,取值范围:[0,360]
|
||||
@property (nonatomic, assign) float angle; |
||||
///速度 单位:千米/小时
|
||||
@property (nonatomic, assign) float speed; |
||||
///道路坐标集,经度和纬度使用","分隔,坐标之间使用";"分隔。例如:x1,y1;x2,y2
|
||||
@property (nonatomic, copy) NSString *polyline; |
||||
@end |
||||
|
||||
///道路路况信息 since 5.1.0
|
||||
@interface AMapTrafficInfo : AMapSearchObject |
||||
///路况综述
|
||||
@property (nonatomic, copy) NSString *statusDescription; |
||||
///路况评价
|
||||
@property (nonatomic, strong) AMapTrafficEvaluation *evaluation; |
||||
///道路信息
|
||||
@property (nonatomic, strong) NSArray<AMapTrafficRoad*>* roads; |
||||
|
||||
@end |
||||
|
||||
#pragma mark - 企业地图基础数据类型 |
||||
|
||||
///POI点的图片信息
|
||||
@interface AMapCloudImage : AMapSearchObject |
||||
///图片的id标识
|
||||
@property (nonatomic, copy) NSString *uid;
|
||||
///图片压缩后的url串
|
||||
@property (nonatomic, copy) NSString *preurl;
|
||||
///图片原始的url
|
||||
@property (nonatomic, copy) NSString *url;
|
||||
@end |
||||
|
||||
///POI信息
|
||||
@interface AMapCloudPOI : AMapSearchObject |
||||
///唯一标识
|
||||
@property (nonatomic, assign) NSInteger uid;
|
||||
///名称
|
||||
@property (nonatomic, copy) NSString *name;
|
||||
///坐标位置
|
||||
@property (nonatomic, copy) AMapGeoPoint *location;
|
||||
///地址
|
||||
@property (nonatomic, copy) NSString *address;
|
||||
///用户自定义字段
|
||||
@property (nonatomic, strong) NSDictionary *customFields;
|
||||
///创建时间
|
||||
@property (nonatomic, copy) NSString *createTime;
|
||||
///更新时间
|
||||
@property (nonatomic, copy) NSString *updateTime;
|
||||
///离当前位置的距离(只在企业地图周边搜索时有效)
|
||||
@property (nonatomic, assign) NSInteger distance;
|
||||
///图片信息
|
||||
@property (nonatomic, strong) NSArray<AMapCloudImage *> *images __attribute((deprecated("已废弃 since 7.4.0"))); |
||||
|
||||
@end |
@ -0,0 +1,85 @@
|
||||
//
|
||||
// AMapNearbySearchManager.h
|
||||
// AMapSearchKit
|
||||
//
|
||||
// Created by xiaoming han on 15/8/31.
|
||||
// Copyright (c) 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h> |
||||
#import "AMapNearbyUploadInfo.h" |
||||
|
||||
@class AMapNearbySearchManager; |
||||
|
||||
///附近搜索代理
|
||||
@protocol AMapNearbySearchManagerDelegate <NSObject> |
||||
@optional |
||||
|
||||
/**
|
||||
* @brief 开启自动上传,需实现该回调。 |
||||
*/ |
||||
- (AMapNearbyUploadInfo *)nearbyInfoForUploading:(AMapNearbySearchManager *)manager; |
||||
|
||||
/**
|
||||
* @brief 用户信息上传完毕回调。 |
||||
* @param error 错误,为空时表示成功。 |
||||
*/ |
||||
- (void)onNearbyInfoUploadedWithError:(NSError *)error; |
||||
|
||||
/**
|
||||
* @brief 用户信息清除完毕回调。 |
||||
* @param error 错误,为空时表示成功。 |
||||
*/ |
||||
- (void)onUserInfoClearedWithError:(NSError *)error; |
||||
|
||||
@end |
||||
|
||||
///附近搜索管理类,同时只能有一个实例开启,否则可能会出现错误。
|
||||
@interface AMapNearbySearchManager : NSObject |
||||
|
||||
///上传最小间隔,默认15s,最小7s。自动上传的过程中设置无效。
|
||||
@property (nonatomic, assign) NSTimeInterval uploadTimeInterval; |
||||
|
||||
///代理对象。
|
||||
@property (nonatomic, weak) id<AMapNearbySearchManagerDelegate> delegate; |
||||
|
||||
///是否正在自动上传状态中。
|
||||
@property (nonatomic, readonly) BOOL isAutoUploading; |
||||
|
||||
/**
|
||||
* @brief manager单例. |
||||
* 初始化之前请设置key,否则将无法正常使用该服务. |
||||
* @return nearbySearch实例。 |
||||
*/ |
||||
+ (instancetype)sharedInstance; |
||||
|
||||
/**
|
||||
* @brief 请使用单例。 |
||||
*/ |
||||
- (instancetype)init __attribute__((unavailable)); |
||||
|
||||
/**
|
||||
* @brief 启动自动上传。 |
||||
*/ |
||||
- (void)startAutoUploadNearbyInfo; |
||||
|
||||
/**
|
||||
* @brief 关闭自动上传。 |
||||
*/ |
||||
- (void)stopAutoUploadNearbyInfo; |
||||
|
||||
/**
|
||||
* @brief 执行单次上传,执行间隔不低于uploadTimeInterval最小值,否则执行失败。 |
||||
* @param info 需要上传的信息。 |
||||
* @return 成功执行返回YES,否则返回NO。 |
||||
*/ |
||||
- (BOOL)uploadNearbyInfo:(AMapNearbyUploadInfo *)info __attribute((deprecated("已废弃 since 7.4.0,该功能不再支持"))); |
||||
|
||||
/**
|
||||
* @brief 清除服务器上某一用户的信息。 |
||||
* @param userID 指定的用户ID |
||||
* @return 成功执行返回YES,否则返回NO。 |
||||
*/ |
||||
- (BOOL)clearUserInfoWithID:(NSString *)userID __attribute((deprecated("已废弃 since 7.4.0,该功能不再支持"))); |
||||
|
||||
@end |
@ -0,0 +1,32 @@
|
||||
//
|
||||
// AMapNearbyUploadInfo.h
|
||||
// AMapSearchKit
|
||||
//
|
||||
// Created by xiaoming han on 15/9/6.
|
||||
// Copyright (c) 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h> |
||||
#import <CoreLocation/CoreLocation.h> |
||||
|
||||
///上传经纬度类型
|
||||
typedef NS_ENUM(NSInteger, AMapSearchCoordinateType) |
||||
{ |
||||
AMapSearchCoordinateTypeGPS = 1, ///< 标准GPS坐标
|
||||
AMapSearchCoordinateTypeAMap = 2, ///< 高德坐标
|
||||
}; |
||||
|
||||
|
||||
///附近搜索上传信息
|
||||
@interface AMapNearbyUploadInfo : NSObject<NSCopying> |
||||
|
||||
///用户唯一标识,不能为空,否则上传会失败. 长度不超过32字符,只能包含英文、数字、下划线、短横杠
|
||||
@property (nonatomic, copy) NSString *userID; |
||||
|
||||
///坐标类型,默认是 AMapSearchCoordinateTypeAMap
|
||||
@property (nonatomic, assign) AMapSearchCoordinateType coordinateType; |
||||
|
||||
///用户位置经纬度。
|
||||
@property (nonatomic, assign) CLLocationCoordinate2D coordinate; |
||||
|
||||
@end |
@ -0,0 +1,351 @@
|
||||
//
|
||||
// AMapSearchAPI.h
|
||||
// AMapSearchKit
|
||||
//
|
||||
// Created by xiaoming han on 15/7/22.
|
||||
// Copyright (c) 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h> |
||||
#import "AMapSearchObj.h" |
||||
#import "AMapCommonObj.h" |
||||
|
||||
@protocol AMapSearchDelegate; |
||||
|
||||
///搜索结果语言
|
||||
#define AMapSearchLanguageZhCN @"zh" ///< 中文
|
||||
#define AMapSearchLanguageEn @"en" ///< 英文
|
||||
|
||||
///搜索类
|
||||
@interface AMapSearchAPI : NSObject |
||||
|
||||
///实现了 AMapSearchDelegate 协议的类指针。
|
||||
@property (nonatomic, weak) id<AMapSearchDelegate> delegate; |
||||
|
||||
///查询超时时间,单位秒,默认为20秒。
|
||||
@property (nonatomic, assign) NSInteger timeout; |
||||
|
||||
///查询结果返回语言, 默认为中文。
|
||||
@property (nonatomic, copy) NSString *language; |
||||
|
||||
/**
|
||||
* @brief AMapSearch的初始化函数。 |
||||
* 初始化之前请正确设置key,否则将无法正常使用搜索服务. |
||||
* @return AMapSearch类对象实例 |
||||
*/ |
||||
- (instancetype)init; |
||||
|
||||
/**
|
||||
* @brief 取消所有未回调的请求,触发错误回调。 |
||||
*/ |
||||
- (void)cancelAllRequests; |
||||
|
||||
#pragma mark - 搜索服务接口 |
||||
|
||||
/**
|
||||
* @brief POI ID查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapPOIIDSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapPOIIDSearch:(AMapPOIIDSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief POI 关键字查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapPOIKeywordsSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapPOIKeywordsSearch:(AMapPOIKeywordsSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief POI 周边查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapPOIAroundSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapPOIAroundSearch:(AMapPOIAroundSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief POI 多边形查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapPOIPolygonSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapPOIPolygonSearch:(AMapPOIPolygonSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 沿途查询接口 (v4.3.0) |
||||
* @param request 查询选项。具体属性字段请参考 AMapRoutePOISearchRequest 类。 |
||||
*/ |
||||
- (void)AMapRoutePOISearch:(AMapRoutePOISearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 地址编码查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapGeocodeSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapGeocodeSearch:(AMapGeocodeSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 逆地址编码查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapReGeocodeSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapReGoecodeSearch:(AMapReGeocodeSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 输入提示查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapInputTipsSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapInputTipsSearch:(AMapInputTipsSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 公交站点查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapBusStopSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapBusStopSearch:(AMapBusStopSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 公交线路关键字查询 |
||||
* @param request 查询选项。具体属性字段请参考 AMapBusLineIDSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapBusLineIDSearch:(AMapBusLineIDSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 公交线路关键字查询 |
||||
* @param request 查询选项。具体属性字段请参考 AMapBusLineNameSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapBusLineNameSearch:(AMapBusLineNameSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 行政区域查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapDistrictSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapDistrictSearch:(AMapDistrictSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 驾车路径规划查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapDrivingRouteSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapDrivingRouteSearch:(AMapDrivingRouteSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 步行路径规划查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapWalkingRouteSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapWalkingRouteSearch:(AMapWalkingRouteSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 公交路径规划查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapTransitRouteSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapTransitRouteSearch:(AMapTransitRouteSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 骑行路径规划查询接口 (since 4.3.0) |
||||
* @param request 查询选项。具体属性字段请参考 AMapRidingRouteSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapRidingRouteSearch:(AMapRidingRouteSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 货车路径规划查询接口 (since 6.1.0) |
||||
* @param request 查询选项。具体属性字段请参考 AMapTruckRouteSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapTruckRouteSearch:(AMapTruckRouteSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 未来路线规划查询接口 (since 6.9.0) |
||||
* @param request 查询选项。具体属性字段请参考 AMapTruckRouteSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapFutureRouteSearch:(AMapFutureRouteSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 天气查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapWeatherSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapWeatherSearch:(AMapWeatherSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 距离查询(since 6.1.0) |
||||
* @param request 查询选项。具体属性字段请参考 AMapDistanceSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapDistanceSearch:(AMapDistanceSearchRequest *)request; |
||||
|
||||
#pragma mark - 附近搜索相关 |
||||
|
||||
/**
|
||||
* @brief 附近搜索查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapNearbySearchRequest 类。 |
||||
*/ |
||||
- (void)AMapNearbySearch:(AMapNearbySearchRequest *)request __attribute__((deprecated("已废弃, from 7.4.0,该功能不再支持"))); |
||||
|
||||
#pragma mark - 企业地图搜索相关 |
||||
|
||||
/**
|
||||
* @brief 企业地图周边查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapCloudPOIAroundSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapCloudPOIAroundSearch:(AMapCloudPOIAroundSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 企业地图polygon区域查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapCloudPOIPolygonSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapCloudPOIPolygonSearch:(AMapCloudPOIPolygonSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 企业地图ID查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapCloudPOIIDSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapCloudPOIIDSearch:(AMapCloudPOIIDSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 企业地图本地查询接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapCloudPOILocalSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapCloudPOILocalSearch:(AMapCloudPOILocalSearchRequest *)request; |
||||
|
||||
#pragma mark - 短串分享相关 |
||||
|
||||
/**
|
||||
* @brief 位置短串分享接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapLocationShareSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapLocationShareSearch:(AMapLocationShareSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 兴趣点短串分享接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapPOIShareSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapPOIShareSearch:(AMapPOIShareSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 路线规划短串分享接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapRouteShareSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapRouteShareSearch:(AMapRouteShareSearchRequest *)request; |
||||
|
||||
/**
|
||||
* @brief 导航短串分享接口 |
||||
* @param request 查询选项。具体属性字段请参考 AMapNavigationShareSearchRequest 类。 |
||||
*/ |
||||
- (void)AMapNavigationShareSearch:(AMapNavigationShareSearchRequest *)request; |
||||
|
||||
@end |
||||
|
||||
#pragma mark - AMapSearchDelegate |
||||
|
||||
///AMapSearchDelegate协议, 定义了搜索结果的回调方法,发生错误时的错误回调方法。
|
||||
@protocol AMapSearchDelegate<NSObject> |
||||
@optional |
||||
|
||||
/**
|
||||
* @brief 当请求发生错误时,会调用代理的此方法. |
||||
* @param request 发生错误的请求. |
||||
* @param error 返回的错误. |
||||
*/ |
||||
- (void)AMapSearchRequest:(id)request didFailWithError:(NSError *)error; |
||||
|
||||
/**
|
||||
* @brief POI查询回调函数 |
||||
* @param request 发起的请求,具体字段参考 AMapPOISearchBaseRequest 及其子类。 |
||||
* @param response 响应结果,具体字段参考 AMapPOISearchResponse 。 |
||||
*/ |
||||
- (void)onPOISearchDone:(AMapPOISearchBaseRequest *)request response:(AMapPOISearchResponse *)response; |
||||
|
||||
/**
|
||||
* @brief 沿途查询回调函数 (since v4.3.0) |
||||
* @param request 发起的请求,具体字段参考 AMapRoutePOISearchRequest 及其子类。 |
||||
* @param response 响应结果,具体字段参考 AMapRoutePOISearchResponse 。 |
||||
*/ |
||||
- (void)onRoutePOISearchDone:(AMapRoutePOISearchRequest *)request response:(AMapRoutePOISearchResponse *)response; |
||||
|
||||
/**
|
||||
* @brief 地理编码查询回调函数 |
||||
* @param request 发起的请求,具体字段参考 AMapGeocodeSearchRequest 。 |
||||
* @param response 响应结果,具体字段参考 AMapGeocodeSearchResponse 。 |
||||
*/ |
||||
- (void)onGeocodeSearchDone:(AMapGeocodeSearchRequest *)request response:(AMapGeocodeSearchResponse *)response; |
||||
|
||||
/**
|
||||
* @brief 逆地理编码查询回调函数 |
||||
* @param request 发起的请求,具体字段参考 AMapReGeocodeSearchRequest 。 |
||||
* @param response 响应结果,具体字段参考 AMapReGeocodeSearchResponse 。 |
||||
*/ |
||||
- (void)onReGeocodeSearchDone:(AMapReGeocodeSearchRequest *)request response:(AMapReGeocodeSearchResponse *)response; |
||||
|
||||
/**
|
||||
* @brief 输入提示查询回调函数 |
||||
* @param request 发起的请求,具体字段参考 AMapInputTipsSearchRequest 。 |
||||
* @param response 响应结果,具体字段参考 AMapInputTipsSearchResponse 。 |
||||
*/ |
||||
- (void)onInputTipsSearchDone:(AMapInputTipsSearchRequest *)request response:(AMapInputTipsSearchResponse *)response; |
||||
|
||||
/**
|
||||
* @brief 公交站查询回调函数 |
||||
* @param request 发起的请求,具体字段参考 AMapBusStopSearchRequest 。 |
||||
* @param response 响应结果,具体字段参考 AMapBusStopSearchResponse 。 |
||||
*/ |
||||
- (void)onBusStopSearchDone:(AMapBusStopSearchRequest *)request response:(AMapBusStopSearchResponse *)response; |
||||
|
||||
/**
|
||||
* @brief 公交线路关键字查询回调 |
||||
* @param request 发起的请求,具体字段参考 AMapBusLineSearchRequest 。 |
||||
* @param response 响应结果,具体字段参考 AMapBusLineSearchResponse 。 |
||||
*/ |
||||
- (void)onBusLineSearchDone:(AMapBusLineBaseSearchRequest *)request response:(AMapBusLineSearchResponse *)response; |
||||
|
||||
/**
|
||||
* @brief 行政区域查询回调函数 |
||||
* @param request 发起的请求,具体字段参考 AMapDistrictSearchRequest 。 |
||||
* @param response 响应结果,具体字段参考 AMapDistrictSearchResponse 。 |
||||
*/ |
||||
- (void)onDistrictSearchDone:(AMapDistrictSearchRequest *)request response:(AMapDistrictSearchResponse *)response; |
||||
|
||||
/**
|
||||
* @brief 路径规划查询回调 |
||||
* @param request 发起的请求,具体字段参考 AMapRouteSearchBaseRequest 及其子类。 |
||||
* @param response 响应结果,具体字段参考 AMapRouteSearchResponse 。 |
||||
*/ |
||||
- (void)onRouteSearchDone:(AMapRouteSearchBaseRequest *)request response:(AMapRouteSearchResponse *)response; |
||||
|
||||
/**
|
||||
* @brief 未来路径规划查询回调 since 6.9.0 |
||||
* @param request 发起的请求,具体字段参考 AMapRouteSearchBaseRequest 及其子类。 |
||||
* @param response 响应结果,具体字段参考 AMapRouteSearchResponse 。 |
||||
*/ |
||||
- (void)onFutureRouteSearchDone:(AMapRouteSearchBaseRequest *)request response:(AMapFutureRouteSearchResponse *)response; |
||||
|
||||
/**
|
||||
* @brief 距离查询回调 |
||||
* @param request 发起的请求,具体字段参考 AMapDistanceSearchRequest 及其子类。 |
||||
* @param response 响应结果,具体字段参考 AMapDistanceSearchResponse 。 |
||||
*/ |
||||
- (void)onDistanceSearchDone:(AMapDistanceSearchRequest *)request response:(AMapDistanceSearchResponse *)response; |
||||
|
||||
/**
|
||||
* @brief 天气查询回调 |
||||
* @param request 发起的请求,具体字段参考 AMapWeatherSearchRequest 。 |
||||
* @param response 响应结果,具体字段参考 AMapWeatherSearchResponse 。 |
||||
*/ |
||||
- (void)onWeatherSearchDone:(AMapWeatherSearchRequest *)request response:(AMapWeatherSearchResponse *)response; |
||||
|
||||
#pragma mark - 附近搜索回调 |
||||
|
||||
/**
|
||||
* @brief 附近搜索回调 |
||||
* @param request 发起的请求,具体字段参考 AMapNearbySearchRequest 。 |
||||
* @param response 响应结果,具体字段参考 AMapNearbySearchResponse 。 |
||||
*/ |
||||
- (void)onNearbySearchDone:(AMapNearbySearchRequest *)request response:(AMapNearbySearchResponse *)response; |
||||
|
||||
#pragma mark - 企业地图搜索回调 |
||||
|
||||
/**
|
||||
* @brief 企业地图查询回调函数 |
||||
* @param request 发起的请求,具体字段参考 AMapCloudSearchBaseRequest 。 |
||||
* @param response 响应结果,具体字段参考 AMapCloudPOISearchResponse 。 |
||||
*/ |
||||
- (void)onCloudSearchDone:(AMapCloudSearchBaseRequest *)request response:(AMapCloudPOISearchResponse *)response; |
||||
|
||||
#pragma mark - 短串分享搜索回调 |
||||
|
||||
/**
|
||||
* @brief 短串分享搜索回调 |
||||
* @param request 发起的请求 |
||||
* @param response 相应结果,具体字段参考 AMapShareSearchResponse。 |
||||
*/ |
||||
- (void)onShareSearchDone:(AMapShareSearchBaseRequest *)request response:(AMapShareSearchResponse *)response; |
||||
|
||||
@end |
@ -0,0 +1,73 @@
|
||||
//
|
||||
// AMapSearchError.h
|
||||
// AMapSearchKit
|
||||
//
|
||||
// Created by xiaoming han on 15/7/29.
|
||||
// Copyright (c) 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef AMapSearchKit_AMapSearchError_h |
||||
#define AMapSearchKit_AMapSearchError_h |
||||
|
||||
///AMapSearch errorDomain
|
||||
extern NSString * const AMapSearchErrorDomain; |
||||
|
||||
///AMapSearch errorCode
|
||||
typedef NS_ENUM(NSInteger, AMapSearchErrorCode) |
||||
{ |
||||
AMapSearchErrorOK = 1000,///< 没有错误
|
||||
AMapSearchErrorInvalidSignature = 1001,///< 无效签名
|
||||
AMapSearchErrorInvalidUserKey = 1002,///< key非法或过期
|
||||
AMapSearchErrorServiceNotAvailable = 1003,///< 没有权限使用相应的接口
|
||||
AMapSearchErrorDailyQueryOverLimit = 1004,///< 访问已超出日访问量
|
||||
AMapSearchErrorTooFrequently = 1005,///< 用户访问过于频繁
|
||||
AMapSearchErrorInvalidUserIP = 1006,///< 用户IP无效
|
||||
AMapSearchErrorInvalidUserDomain = 1007,///< 用户域名无效
|
||||
AMapSearchErrorInvalidUserSCode = 1008,///< 安全码验证错误,bundleID与key不对应
|
||||
AMapSearchErrorUserKeyNotMatch = 1009,///< 请求key与绑定平台不符
|
||||
AMapSearchErrorIPQueryOverLimit = 1010,///< IP请求超限
|
||||
AMapSearchErrorNotSupportHttps = 1011,///< 不支持HTTPS请求
|
||||
AMapSearchErrorInsufficientPrivileges = 1012,///< 权限不足,服务请求被拒绝
|
||||
AMapSearchErrorUserKeyRecycled = 1013,///< 开发者key被删除,无法正常使用
|
||||
|
||||
AMapSearchErrorInvalidResponse = 1100,///< 请求服务响应错误
|
||||
AMapSearchErrorInvalidEngineData = 1101,///< 引擎返回数据异常
|
||||
AMapSearchErrorConnectTimeout = 1102,///< 服务端请求链接超时
|
||||
AMapSearchErrorReturnTimeout = 1103,///< 读取服务结果超时
|
||||
AMapSearchErrorInvalidParams = 1200,///< 请求参数非法
|
||||
AMapSearchErrorMissingRequiredParams = 1201,///< 缺少必填参数
|
||||
AMapSearchErrorIllegalRequest = 1202,///< 请求协议非法
|
||||
AMapSearchErrorServiceUnknown = 1203,///< 其他服务端未知错误
|
||||
|
||||
AMapSearchErrorClientUnknown = 1800,///< 客户端未知错误,服务返回结果为空或其他错误
|
||||
AMapSearchErrorInvalidProtocol = 1801,///< 协议解析错误,通常是返回结果无法解析
|
||||
AMapSearchErrorTimeOut = 1802,///< 连接超时
|
||||
AMapSearchErrorBadURL = 1803,///< URL异常
|
||||
AMapSearchErrorCannotFindHost = 1804,///< 找不到主机
|
||||
AMapSearchErrorCannotConnectToHost = 1805,///< 服务器连接失败
|
||||
AMapSearchErrorNotConnectedToInternet = 1806,///< 连接异常,通常为没有网络的情况
|
||||
AMapSearchErrorCancelled = 1807,///< 连接取消
|
||||
|
||||
AMapSearchErrorOverPassPointCount = 1809,///< 途经点个数超限
|
||||
AMapSearchErrorOverPassAreaMaxCount = 1810,///< 避让区域个数超限
|
||||
AMapSearchErrorOverPassAreaMaxArea = 1811,///< 避让区域大小超限
|
||||
AMapSearchErrorOverPassAreaPointCount = 1812,///< 避让区域点个数超限
|
||||
AMapSearchErrorOverPassKeyWordLenth = 1813,///< 搜索关键字长度超限
|
||||
|
||||
AMapSearchErrorTableIDNotExist = 2000,///< table id 格式不正确
|
||||
AMapSearchErrorIDNotExist = 2001,///< id 不存在
|
||||
AMapSearchErrorServiceMaintenance = 2002,///< 服务器维护中
|
||||
AMapSearchErrorEngineTableIDNotExist = 2003,///< key对应的table id 不存在
|
||||
AMapSearchErrorInvalidNearbyUserID = 2100,///< 找不到对应userID的信息
|
||||
AMapSearchErrorNearbyKeyNotBind = 2101,///< key未开通“附近”功能
|
||||
|
||||
AMapSearchErrorOutOfService = 3000,///< 规划点(包括起点、终点、途经点)不在中国范围内
|
||||
AMapSearchErrorNoRoadsNearby = 3001,///< 规划点(包括起点、终点、途经点)附近搜不到道路
|
||||
AMapSearchErrorRouteFailed = 3002,///< 路线计算失败,通常是由于道路连通关系导致
|
||||
AMapSearchErrorOverDirectionRange = 3003,///< 起点终点距离过长
|
||||
|
||||
AMapSearchErrorShareLicenseExpired = 4000,///< 短串分享认证失败
|
||||
AMapSearchErrorShareFailed = 4001,///< 短串请求失败
|
||||
}; |
||||
|
||||
#endif |
@ -0,0 +1,16 @@
|
||||
//
|
||||
// AMapSearchKit.h
|
||||
// AMapSearchKit
|
||||
//
|
||||
// Created by xiaoming han on 15/7/22.
|
||||
// Copyright (c) 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <AMapSearchKit/AMapSearchAPI.h> |
||||
#import <AMapSearchKit/AMapSearchObj.h> |
||||
#import <AMapSearchKit/AMapCommonObj.h> |
||||
#import <AMapSearchKit/AMapSearchError.h> |
||||
#import <AMapSearchKit/AMapNearbySearchManager.h> |
||||
#import <AMapSearchKit/AMapNearbyUploadInfo.h> |
||||
|
||||
#import <AMapSearchKit/AMapSearchVersion.h> |
@ -0,0 +1,26 @@
|
||||
//
|
||||
// AMapSearchVersion.h
|
||||
// AMapSearchKit
|
||||
//
|
||||
// Created by xiaoming han on 15/10/27.
|
||||
// Copyright © 2015年 Amap. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h> |
||||
#import <AMapFoundationKit/AMapFoundationVersion.h> |
||||
|
||||
#ifndef AMapSearchVersion_h |
||||
#define AMapSearchVersion_h |
||||
|
||||
#define AMapSearchVersionNumber 70800 |
||||
#define AMapSearchMinRequiredFoundationVersion 10604 |
||||
|
||||
// 依赖库版本检测
|
||||
#if AMapFoundationVersionNumber < AMapSearchMinRequiredFoundationVersion |
||||
#error "The AMapFoundationKit version is less than minimum required, please update! Any questions please to visit http://lbs.amap.com"
|
||||
#endif |
||||
|
||||
FOUNDATION_EXTERN NSString * const AMapSearchVersion; |
||||
FOUNDATION_EXTERN NSString * const AMapSearchName; |
||||
|
||||
#endif /* AMapSearchVersion_h */ |
@ -0,0 +1,6 @@
|
||||
framework module AMapSearchKit { |
||||
umbrella header "AMapSearchKit.h" |
||||
|
||||
export * |
||||
module * { export * } |
||||
} |
@ -0,0 +1 @@
|
||||
7.8.0+sea.4b6a128 |
@ -0,0 +1,99 @@
|
||||
//
|
||||
// HJDanmakuView.h
|
||||
// HJDanmakuDemo
|
||||
//
|
||||
// Created by haijiao on 2017/7/6.
|
||||
// Copyright © 2017年 olinone. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h> |
||||
#import "HJDanmakuConfiguration.h" |
||||
#import "HJDanmakuModel.h" |
||||
#import "HJDanmakuCell.h" |
||||
|
||||
@class HJDanmakuView; |
||||
@protocol HJDanmakuViewDelegate <NSObject> |
||||
|
||||
@optional |
||||
|
||||
// preparate completed. you can start render after callback
|
||||
- (void)prepareCompletedWithDanmakuView:(HJDanmakuView *)danmakuView; |
||||
|
||||
// called before render. return NO will ignore danmaku
|
||||
- (BOOL)danmakuView:(HJDanmakuView *)danmakuView shouldRenderDanmaku:(HJDanmakuModel *)danmaku; |
||||
|
||||
// display customization
|
||||
- (void)danmakuView:(HJDanmakuView *)danmakuView willDisplayCell:(HJDanmakuCell *)cell danmaku:(HJDanmakuModel *)danmaku; |
||||
- (void)danmakuView:(HJDanmakuView *)danmakuView didEndDisplayCell:(HJDanmakuCell *)cell danmaku:(HJDanmakuModel *)danmaku; |
||||
|
||||
// selection customization
|
||||
- (BOOL)danmakuView:(HJDanmakuView *)danmakuView shouldSelectCell:(HJDanmakuCell *)cell danmaku:(HJDanmakuModel *)danmaku; |
||||
- (void)danmakuView:(HJDanmakuView *)danmakuView didSelectCell:(HJDanmakuCell *)cell danmaku:(HJDanmakuModel *)danmaku; |
||||
|
||||
@end |
||||
|
||||
//_______________________________________________________________________________________________________________
|
||||
|
||||
@protocol HJDanmakuViewDateSource; |
||||
@interface HJDanmakuView : UIView |
||||
|
||||
@property (nonatomic, weak) id <HJDanmakuViewDateSource> dataSource; |
||||
@property (nonatomic, weak) id <HJDanmakuViewDelegate> delegate; |
||||
|
||||
@property (readonly) HJDanmakuConfiguration *configuration; |
||||
@property (readonly) BOOL isPrepared; |
||||
@property (readonly) BOOL isPlaying; |
||||
|
||||
// traverse touches outside of the danmaku view, default NO
|
||||
@property (nonatomic, assign) BOOL traverseTouches; |
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame configuration:(HJDanmakuConfiguration *)configuration; |
||||
|
||||
- (void)registerClass:(Class)cellClass forCellReuseIdentifier:(NSString *)identifier; |
||||
- (__kindof HJDanmakuCell *)dequeueReusableCellWithIdentifier:(NSString *)identifier; |
||||
|
||||
- (__kindof HJDanmakuModel *)danmakuForVisibleCell:(HJDanmakuCell *)danmakuCell; // returns nil if cell is not visible
|
||||
@property (nonatomic, readonly) NSArray<__kindof HJDanmakuCell *> *visibleCells; |
||||
|
||||
// you can prepare with nil when liveModel
|
||||
- (void)prepareDanmakus:(NSArray<HJDanmakuModel *> *)danmakus; |
||||
|
||||
// be sure to call -prepareDanmakus before -play, when isPrepared is NO, call will be invalid
|
||||
- (void)play; |
||||
- (void)pause; |
||||
- (void)stop; |
||||
|
||||
// reset and clear all danmakus, must call -prepareDanmakus before -play once again
|
||||
- (void)reset; |
||||
- (void)clearScreen; |
||||
|
||||
|
||||
/* send customization. when force, renderer will draw the danmaku immediately and ignore the maximum quantity limit.
|
||||
you should call -sendDanmakus: instead of -sendDanmaku:forceRender: to send the danmakus from a remote servers |
||||
*/ |
||||
- (void)sendDanmaku:(HJDanmakuModel *)danmaku forceRender:(BOOL)force; |
||||
- (void)sendDanmakus:(NSArray<HJDanmakuModel *> *)danmakus; |
||||
|
||||
@end |
||||
|
||||
//_______________________________________________________________________________________________________________
|
||||
|
||||
@protocol HJDanmakuViewDateSource <NSObject> |
||||
|
||||
@required |
||||
|
||||
// variable cell width support
|
||||
- (CGFloat)danmakuView:(HJDanmakuView *)danmakuView widthForDanmaku:(HJDanmakuModel *)danmaku; |
||||
|
||||
// cell display. implementers should *always* try to reuse cells by setting each cell's reuseIdentifier and querying for available reusable cells with dequeueReusableCellWithIdentifier:
|
||||
- (HJDanmakuCell *)danmakuView:(HJDanmakuView *)danmakuView cellForDanmaku:(HJDanmakuModel *)danmaku; |
||||
|
||||
@optional |
||||
|
||||
// current play time, unit second, must implementation when videoModel
|
||||
- (float)playTimeWithDanmakuView:(HJDanmakuView *)danmakuView; |
||||
|
||||
// play buffer status, when YES, stop render new danmaku, rendered danmaku in screen will continue anim until disappears, only valid when videoModel
|
||||
- (BOOL)bufferingWithDanmakuView:(HJDanmakuView *)danmakuView; |
||||
|
||||
@end |
@ -0,0 +1,32 @@
|
||||
//
|
||||
// libcomMasonry.h
|
||||
// libcomMasonry
|
||||
//
|
||||
// Created by 4Ndf on 2019/4/15.
|
||||
// Copyright © 2019年 Dcloud. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h> |
||||
|
||||
//! Project version number for libcomMasonry.
|
||||
FOUNDATION_EXPORT double libcomMasonryVersionNumber; |
||||
|
||||
//! Project version string for libcomMasonry.
|
||||
FOUNDATION_EXPORT const unsigned char libcomMasonryVersionString[]; |
||||
|
||||
// In this header, you should import all the public headers of your framework using statements like #import <DCUniVideoPublic/PublicHeader.h>
|
||||
|
||||
|
||||
#import "MASUtilities.h" |
||||
#import "View+MASAdditions.h" |
||||
#import "View+MASShorthandAdditions.h" |
||||
#import "ViewController+MASAdditions.h" |
||||
#import "NSArray+MASAdditions.h" |
||||
#import "NSArray+MASShorthandAdditions.h" |
||||
#import "MASConstraint.h" |
||||
#import "MASCompositeConstraint.h" |
||||
#import "MASViewAttribute.h" |
||||
#import "MASViewConstraint.h" |
||||
#import "MASConstraintMaker.h" |
||||
#import "MASLayoutConstraint.h" |
||||
#import "NSLayoutConstraint+MASDebugAdditions.h" |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 48 KiB |
@ -0,0 +1,112 @@
|
||||
<Xml> |
||||
<XmlVerSion>v1.0</XmlVerSion> |
||||
<NavigationParam> |
||||
<!--横屏:1--> |
||||
<ScreenDirection>1</ScreenDirection> |
||||
<!--相机角度多少帧会跟随道路朝向,单位“帧”,10帧/秒--> |
||||
<InterpolationFrame>30</InterpolationFrame> |
||||
<!--相机默认仰角(20-80)--> |
||||
<DefaultTitle>70</DefaultTitle> |
||||
<!--相机推近后的到地面的默认初始距离(米)--> |
||||
<DefaultCamerah>40</DefaultCamerah> |
||||
<!--相机角度前置车标多少米--> |
||||
<ForwardDis0>50</ForwardDis0> |
||||
<!--相机角度前置车标多少米(针对掉头)--> |
||||
<ForwardDis1>10</ForwardDis1> |
||||
<!--相机角度不可超出阈值--> |
||||
<ForwardDegreeMax>45</ForwardDegreeMax> |
||||
|
||||
<!--距离语音点多少米开始下压,0不检测语音点--> |
||||
<DisBeforeSound>100</DisBeforeSound> |
||||
<!--走过语音点多少米后开始抬起--> |
||||
<DisAfterSound>100</DisAfterSound> |
||||
<!--路口三维推近仰角(20-80)--> |
||||
<SoundTitle>70</SoundTitle> |
||||
<!--相机推近后的到地面的最小距离(米)--> |
||||
<SoundCamerah>40</SoundCamerah> |
||||
|
||||
<!--距离Pick点多少米开始下压,0不检测Pick点--> |
||||
<DisBeforePick>100</DisBeforePick> |
||||
<!--走过Pick点多少米后开始抬起--> |
||||
<DisAfterPick>100</DisAfterPick> |
||||
<!--Pick推近最小仰角(20-80)--> |
||||
<PickTitle>75</PickTitle> |
||||
<!--相机推近后的到地面的最小距离(米)--> |
||||
<PickCamerah>3.0</PickCamerah> |
||||
<!--距离DisBeforePick前的Pick采样间隔(米/帧),实际采样间隔再加上车速--> |
||||
<PickInterval>4</PickInterval> |
||||
|
||||
<!--完成下压的限制距离(米)--> |
||||
<LimitDis>10</LimitDis> |
||||
<!--低速行驶时相机视角是否往回摆--> |
||||
<LowSpeedTurnBack>0</LowSpeedTurnBack> |
||||
|
||||
<!--车道切换、主辅路切换角度阀值(度)--> |
||||
<LaneSwitchAngle>15</LaneSwitchAngle> |
||||
<!--车道切换、主辅路切换中间转弯的方向线长度阀值(米)--> |
||||
<LaneSwitchDis>150</LaneSwitchDis> |
||||
<!--车道切换、主辅路切换忽略普通线也转弯的长度阀值(米)--> |
||||
<LaneSwitchIgnorDis>80</LaneSwitchIgnorDis> |
||||
|
||||
<!--转弯箭头距离车位置多远开始显示--> |
||||
<TrunPicMaxDis>250</TrunPicMaxDis> |
||||
<!--转弯提示文字距离车位置多远开始不显示--> |
||||
<TrunPicMinDis>25</TrunPicMinDis> |
||||
<!--转弯提示文字的大小,单位"像素"--> |
||||
<TrunPicSize>50</TrunPicSize> |
||||
|
||||
<!--10米比例尺车标宽度,单位"米"--> |
||||
<CarWidth>6.5</CarWidth> |
||||
|
||||
<!--车道线宽,单位"米"--> |
||||
<RoadLineWidth>7.0</RoadLineWidth> |
||||
<!--车道线颜色--> |
||||
<LineColorRed>0</LineColorRed> |
||||
<LineColorGreen>174</LineColorGreen> |
||||
<LineColorBlue>255</LineColorBlue> |
||||
<LineColorAlpha>204</LineColorAlpha> |
||||
|
||||
<!--方向线向前长度,单位"米"--> |
||||
<LineforwardLength>30</LineforwardLength> |
||||
<!--方向线向后长度,单位"米"--> |
||||
<LinebackLength>30</LinebackLength> |
||||
<!--方向线宽度,单位"米"--> |
||||
<LineWidth>7.0</LineWidth> |
||||
<!--车道线融合(0-255,0全透,暂无效)--> |
||||
<LineAlpha>100</LineAlpha> |
||||
|
||||
</NavigationParam> |
||||
<AnimateParam> |
||||
<!--二维进入三维,蒙板颜色红色分量[0,255]--> |
||||
<ColorInRed>29</ColorInRed> |
||||
<!--二维进入三维,蒙板颜色绿色分量[0,255]--> |
||||
<ColorInGreed>30</ColorInGreed> |
||||
<!--二维进入三维,蒙板颜色蓝色分量[0,255]--> |
||||
<ColorInBlue>26</ColorInBlue> |
||||
<!--二维动画帧数--> |
||||
<FrameIn2d>4</FrameIn2d> |
||||
<!--三维动画帧数--> |
||||
<FrameIn3d>6</FrameIn3d> |
||||
|
||||
<!--三维退出二维,蒙板颜色红色分量[0,255]--> |
||||
<ColorOutRed>29</ColorOutRed> |
||||
<!--三维退出二维,蒙板颜色绿色分量[0,255]--> |
||||
<ColorOutGreed>30</ColorOutGreed> |
||||
<!--三维退出二维,蒙板颜色蓝色分量[0,255]--> |
||||
<ColorOutBlue>26</ColorOutBlue> |
||||
<!--二维动画帧数--> |
||||
<FrameOut2d>2</FrameOut2d> |
||||
<!--三维动画帧数--> |
||||
<FrameOut3d>3</FrameOut3d> |
||||
|
||||
<!--2d透明度变化范围起始值[0,255]--> |
||||
<AlphaBegin2d>60</AlphaBegin2d> |
||||
<!--2d透明度变化范围结束值[0,255]--> |
||||
<AlphaEnd2d>120</AlphaEnd2d> |
||||
<!--透明度变化范围起始值[0,255]--> |
||||
<AlphaBegin3d>180</AlphaBegin3d> |
||||
<!--透明度变化范围结束值[0,255]--> |
||||
<AlphaEnd3d>100</AlphaEnd3d> |
||||
|
||||
</AnimateParam> |
||||
</Xml> |
@ -0,0 +1,112 @@
|
||||
<Xml> |
||||
<XmlVerSion>v1.0</XmlVerSion> |
||||
<NavigationParam> |
||||
<!--竖屏:0--> |
||||
<ScreenDirection>0</ScreenDirection> |
||||
<!--相机角度多少帧会跟随道路朝向,单位“帧”,10帧/秒--> |
||||
<InterpolationFrame>30</InterpolationFrame> |
||||
<!--相机默认仰角(20-80)--> |
||||
<DefaultTitle>65</DefaultTitle> |
||||
<!--相机推近后的到地面的默认初始距离(米)--> |
||||
<DefaultCamerah>50</DefaultCamerah> |
||||
<!--相机角度前置车标多少米--> |
||||
<ForwardDis0>50</ForwardDis0> |
||||
<!--相机角度前置车标多少米(针对掉头)--> |
||||
<ForwardDis1>10</ForwardDis1> |
||||
<!--相机角度不可超出阈值--> |
||||
<ForwardDegreeMax>45</ForwardDegreeMax> |
||||
|
||||
<!--距离语音点多少米开始下压,0不检测语音点--> |
||||
<DisBeforeSound>100</DisBeforeSound> |
||||
<!--走过语音点多少米后开始抬起--> |
||||
<DisAfterSound>100</DisAfterSound> |
||||
<!--路口三维推近仰角(20-80)--> |
||||
<SoundTitle>65</SoundTitle> |
||||
<!--相机推近后的到地面的最小距离(米)--> |
||||
<SoundCamerah>50</SoundCamerah> |
||||
|
||||
<!--距离Pick点多少米开始下压,0不检测Pick点--> |
||||
<DisBeforePick>100</DisBeforePick> |
||||
<!--走过Pick点多少米后开始抬起--> |
||||
<DisAfterPick>100</DisAfterPick> |
||||
<!--Pick推近最小仰角(20-80)--> |
||||
<PickTitle>70</PickTitle> |
||||
<!--相机推近后的到地面的最小距离(米)--> |
||||
<PickCamerah>3.0</PickCamerah> |
||||
<!--距离DisBeforePick前的Pick采样间隔(米/帧),实际采样间隔再加上车速--> |
||||
<PickInterval>4</PickInterval> |
||||
|
||||
<!--完成下压的限制距离(米)--> |
||||
<LimitDis>10</LimitDis> |
||||
<!--低速行驶时相机视角是否往回摆--> |
||||
<LowSpeedTurnBack>0</LowSpeedTurnBack> |
||||
|
||||
<!--车道切换、主辅路切换角度阀值(度)--> |
||||
<LaneSwitchAngle>15</LaneSwitchAngle> |
||||
<!--车道切换、主辅路切换中间转弯的方向线长度阀值(米)--> |
||||
<LaneSwitchDis>150</LaneSwitchDis> |
||||
<!--车道切换、主辅路切换忽略普通线也转弯的长度阀值(米)--> |
||||
<LaneSwitchIgnorDis>80</LaneSwitchIgnorDis> |
||||
|
||||
<!--转弯箭头距离车位置多远开始显示--> |
||||
<TrunPicMaxDis>250</TrunPicMaxDis> |
||||
<!--转弯提示文字距离车位置多远开始不显示--> |
||||
<TrunPicMinDis>25</TrunPicMinDis> |
||||
<!--转弯提示文字的大小,单位"像素"--> |
||||
<TrunPicSize>50</TrunPicSize> |
||||
|
||||
<!--10米比例尺车标宽度,单位"米"--> |
||||
<CarWidth>6.5</CarWidth> |
||||
|
||||
<!--车道线宽,单位"米"--> |
||||
<RoadLineWidth>7.0</RoadLineWidth> |
||||
<!--车道线颜色--> |
||||
<LineColorRed>0</LineColorRed> |
||||
<LineColorGreen>174</LineColorGreen> |
||||
<LineColorBlue>255</LineColorBlue> |
||||
<LineColorAlpha>204</LineColorAlpha> |
||||
|
||||
<!--方向线向前长度,单位"米"--> |
||||
<LineforwardLength>30</LineforwardLength> |
||||
<!--方向线向后长度,单位"米"--> |
||||
<LinebackLength>30</LinebackLength> |
||||
<!--方向线宽度,单位"米"--> |
||||
<LineWidth>7.0</LineWidth> |
||||
<!--车道线融合(0-255,0全透,暂无效)--> |
||||
<LineAlpha>100</LineAlpha> |
||||
|
||||
</NavigationParam> |
||||
<AnimateParam> |
||||
<!--二维进入三维,蒙板颜色红色分量[0,255]--> |
||||
<ColorInRed>29</ColorInRed> |
||||
<!--二维进入三维,蒙板颜色绿色分量[0,255]--> |
||||
<ColorInGreed>30</ColorInGreed> |
||||
<!--二维进入三维,蒙板颜色蓝色分量[0,255]--> |
||||
<ColorInBlue>26</ColorInBlue> |
||||
<!--二维动画帧数--> |
||||
<FrameIn2d>4</FrameIn2d> |
||||
<!--三维动画帧数--> |
||||
<FrameIn3d>6</FrameIn3d> |
||||
|
||||
<!--三维退出二维,蒙板颜色红色分量[0,255]--> |
||||
<ColorOutRed>29</ColorOutRed> |
||||
<!--三维退出二维,蒙板颜色绿色分量[0,255]--> |
||||
<ColorOutGreed>30</ColorOutGreed> |
||||
<!--三维退出二维,蒙板颜色蓝色分量[0,255]--> |
||||
<ColorOutBlue>26</ColorOutBlue> |
||||
<!--二维动画帧数--> |
||||
<FrameOut2d>2</FrameOut2d> |
||||
<!--三维动画帧数--> |
||||
<FrameOut3d>3</FrameOut3d> |
||||
|
||||
<!--2d透明度变化范围起始值[0,255]--> |
||||
<AlphaBegin2d>60</AlphaBegin2d> |
||||
<!--2d透明度变化范围结束值[0,255]--> |
||||
<AlphaEnd2d>120</AlphaEnd2d> |
||||
<!--透明度变化范围起始值[0,255]--> |
||||
<AlphaBegin3d>180</AlphaBegin3d> |
||||
<!--透明度变化范围结束值[0,255]--> |
||||
<AlphaEnd3d>100</AlphaEnd3d> |
||||
|
||||
</AnimateParam> |
||||
</Xml> |
After Width: | Height: | Size: 108 B |
After Width: | Height: | Size: 108 B |
After Width: | Height: | Size: 348 B |
After Width: | Height: | Size: 276 B |
After Width: | Height: | Size: 73 KiB |
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 111 B |
After Width: | Height: | Size: 111 B |
After Width: | Height: | Size: 169 B |
After Width: | Height: | Size: 169 B |
After Width: | Height: | Size: 82 B |
After Width: | Height: | Size: 82 B |
After Width: | Height: | Size: 88 B |
After Width: | Height: | Size: 88 B |
After Width: | Height: | Size: 99 B |
After Width: | Height: | Size: 82 B |
@ -0,0 +1,191 @@
|
||||
info face="Arial" size=32 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=1 padding=0,0,0,0 spacing=1,1 outline=0 |
||||
common lineHeight=32 base=26 scaleW=256 scaleH=256 pages=1 packed=0 alphaChnl=1 redChnl=0 greenChnl=0 blueChnl=0 |
||||
page id=0 file="anscii_0.png" |
||||
chars count=95 |
||||
char id=32 x=110 y=22 width=3 height=1 xoffset=-1 yoffset=31 xadvance=8 page=0 chnl=15 |
||||
char id=33 x=199 y=63 width=4 height=20 xoffset=2 yoffset=6 xadvance=8 page=0 chnl=15 |
||||
char id=34 x=242 y=79 width=10 height=7 xoffset=0 yoffset=6 xadvance=10 page=0 chnl=15 |
||||
char id=35 x=0 y=48 width=16 height=20 xoffset=-1 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=36 x=94 y=0 width=15 height=23 xoffset=0 yoffset=5 xadvance=15 page=0 chnl=15 |
||||
char id=37 x=161 y=0 width=22 height=20 xoffset=1 yoffset=6 xadvance=24 page=0 chnl=15 |
||||
char id=38 x=132 y=21 width=17 height=20 xoffset=1 yoffset=6 xadvance=18 page=0 chnl=15 |
||||
char id=39 x=0 y=106 width=5 height=7 xoffset=0 yoffset=6 xadvance=5 page=0 chnl=15 |
||||
char id=40 x=47 y=0 width=8 height=25 xoffset=1 yoffset=6 xadvance=9 page=0 chnl=15 |
||||
char id=41 x=56 y=0 width=8 height=25 xoffset=1 yoffset=6 xadvance=9 page=0 chnl=15 |
||||
char id=42 x=230 y=79 width=11 height=8 xoffset=0 yoffset=6 xadvance=11 page=0 chnl=15 |
||||
char id=43 x=187 y=84 width=14 height=12 xoffset=1 yoffset=10 xadvance=16 page=0 chnl=15 |
||||
char id=44 x=6 y=106 width=4 height=6 xoffset=2 yoffset=24 xadvance=8 page=0 chnl=15 |
||||
char id=45 x=53 y=106 width=9 height=2 xoffset=0 yoffset=18 xadvance=9 page=0 chnl=15 |
||||
char id=46 x=209 y=79 width=4 height=2 xoffset=2 yoffset=24 xadvance=8 page=0 chnl=15 |
||||
char id=47 x=153 y=63 width=10 height=20 xoffset=-1 yoffset=6 xadvance=8 page=0 chnl=15 |
||||
char id=48 x=15 y=69 width=14 height=20 xoffset=0 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=49 x=164 y=63 width=9 height=20 xoffset=2 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=50 x=134 y=42 width=14 height=20 xoffset=0 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=51 x=59 y=68 width=13 height=20 xoffset=1 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=52 x=179 y=42 width=14 height=20 xoffset=0 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=53 x=45 y=69 width=13 height=20 xoffset=1 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=54 x=194 y=42 width=14 height=20 xoffset=0 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=55 x=115 y=66 width=13 height=20 xoffset=1 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=56 x=102 y=45 width=15 height=20 xoffset=0 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=57 x=118 y=43 width=15 height=20 xoffset=0 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=58 x=251 y=63 width=4 height=15 xoffset=2 yoffset=11 xadvance=8 page=0 chnl=15 |
||||
char id=59 x=204 y=63 width=4 height=19 xoffset=2 yoffset=11 xadvance=8 page=0 chnl=15 |
||||
char id=60 x=172 y=84 width=14 height=13 xoffset=1 yoffset=10 xadvance=16 page=0 chnl=15 |
||||
char id=61 x=215 y=79 width=14 height=8 xoffset=1 yoffset=12 xadvance=16 page=0 chnl=15 |
||||
char id=62 x=157 y=84 width=14 height=13 xoffset=1 yoffset=10 xadvance=16 page=0 chnl=15 |
||||
char id=63 x=101 y=68 width=13 height=20 xoffset=1 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=64 x=0 y=0 width=26 height=26 xoffset=1 yoffset=6 xadvance=27 page=0 chnl=15 |
||||
char id=65 x=227 y=0 width=19 height=20 xoffset=-1 yoffset=6 xadvance=18 page=0 chnl=15 |
||||
char id=66 x=17 y=48 width=16 height=20 xoffset=1 yoffset=6 xadvance=18 page=0 chnl=15 |
||||
char id=67 x=58 y=26 width=18 height=20 xoffset=1 yoffset=6 xadvance=20 page=0 chnl=15 |
||||
char id=68 x=168 y=21 width=17 height=20 xoffset=2 yoffset=6 xadvance=20 page=0 chnl=15 |
||||
char id=69 x=51 y=47 width=16 height=20 xoffset=1 yoffset=6 xadvance=18 page=0 chnl=15 |
||||
char id=70 x=240 y=21 width=15 height=20 xoffset=2 yoffset=6 xadvance=17 page=0 chnl=15 |
||||
char id=71 x=0 y=27 width=19 height=20 xoffset=1 yoffset=6 xadvance=21 page=0 chnl=15 |
||||
char id=72 x=186 y=21 width=17 height=20 xoffset=1 yoffset=6 xadvance=19 page=0 chnl=15 |
||||
char id=73 x=184 y=63 width=4 height=20 xoffset=2 yoffset=6 xadvance=8 page=0 chnl=15 |
||||
char id=74 x=129 y=64 width=12 height=20 xoffset=0 yoffset=6 xadvance=13 page=0 chnl=15 |
||||
char id=75 x=39 y=26 width=18 height=20 xoffset=1 yoffset=6 xadvance=18 page=0 chnl=15 |
||||
char id=76 x=0 y=69 width=14 height=20 xoffset=1 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=77 x=184 y=0 width=21 height=20 xoffset=1 yoffset=6 xadvance=23 page=0 chnl=15 |
||||
char id=78 x=96 y=24 width=17 height=20 xoffset=1 yoffset=6 xadvance=19 page=0 chnl=15 |
||||
char id=79 x=206 y=0 width=20 height=20 xoffset=1 yoffset=6 xadvance=21 page=0 chnl=15 |
||||
char id=80 x=85 y=47 width=16 height=20 xoffset=1 yoffset=6 xadvance=17 page=0 chnl=15 |
||||
char id=81 x=110 y=0 width=21 height=21 xoffset=0 yoffset=6 xadvance=21 page=0 chnl=15 |
||||
char id=82 x=77 y=26 width=18 height=20 xoffset=2 yoffset=6 xadvance=20 page=0 chnl=15 |
||||
char id=83 x=68 y=47 width=16 height=20 xoffset=1 yoffset=6 xadvance=18 page=0 chnl=15 |
||||
char id=84 x=34 y=48 width=16 height=20 xoffset=0 yoffset=6 xadvance=16 page=0 chnl=15 |
||||
char id=85 x=204 y=21 width=17 height=20 xoffset=1 yoffset=6 xadvance=19 page=0 chnl=15 |
||||
char id=86 x=222 y=21 width=17 height=20 xoffset=0 yoffset=6 xadvance=17 page=0 chnl=15 |
||||
char id=87 x=132 y=0 width=28 height=20 xoffset=0 yoffset=6 xadvance=28 page=0 chnl=15 |
||||
char id=88 x=150 y=21 width=17 height=20 xoffset=0 yoffset=6 xadvance=17 page=0 chnl=15 |
||||
char id=89 x=20 y=27 width=18 height=20 xoffset=0 yoffset=6 xadvance=18 page=0 chnl=15 |
||||
char id=90 x=114 y=22 width=17 height=20 xoffset=0 yoffset=6 xadvance=17 page=0 chnl=15 |
||||
char id=91 x=73 y=0 width=7 height=25 xoffset=1 yoffset=6 xadvance=8 page=0 chnl=15 |
||||
char id=92 x=174 y=63 width=9 height=20 xoffset=-1 yoffset=6 xadvance=8 page=0 chnl=15 |
||||
char id=93 x=65 y=0 width=7 height=25 xoffset=0 yoffset=6 xadvance=8 page=0 chnl=15 |
||||
char id=94 x=202 y=84 width=12 height=10 xoffset=0 yoffset=6 xadvance=12 page=0 chnl=15 |
||||
char id=95 x=35 y=106 width=17 height=2 xoffset=-1 yoffset=29 xadvance=15 page=0 chnl=15 |
||||
char id=96 x=28 y=106 width=6 height=4 xoffset=1 yoffset=6 xadvance=9 page=0 chnl=15 |
||||
char id=97 x=48 y=90 width=14 height=15 xoffset=0 yoffset=11 xadvance=15 page=0 chnl=15 |
||||
char id=98 x=149 y=42 width=14 height=20 xoffset=1 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=99 x=106 y=89 width=13 height=15 xoffset=0 yoffset=11 xadvance=14 page=0 chnl=15 |
||||
char id=100 x=164 y=42 width=14 height=20 xoffset=0 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=101 x=0 y=90 width=15 height=15 xoffset=0 yoffset=11 xadvance=15 page=0 chnl=15 |
||||
char id=102 x=142 y=63 width=10 height=20 xoffset=-1 yoffset=6 xadvance=7 page=0 chnl=15 |
||||
char id=103 x=209 y=42 width=14 height=20 xoffset=0 yoffset=11 xadvance=15 page=0 chnl=15 |
||||
char id=104 x=73 y=68 width=13 height=20 xoffset=1 yoffset=6 xadvance=15 page=0 chnl=15 |
||||
char id=105 x=189 y=63 width=4 height=20 xoffset=1 yoffset=6 xadvance=6 page=0 chnl=15 |
||||
char id=106 x=81 y=0 width=7 height=25 xoffset=-2 yoffset=6 xadvance=6 page=0 chnl=15 |
||||
char id=107 x=87 y=68 width=13 height=20 xoffset=1 yoffset=6 xadvance=14 page=0 chnl=15 |
||||
char id=108 x=194 y=63 width=4 height=20 xoffset=1 yoffset=6 xadvance=6 page=0 chnl=15 |
||||
char id=109 x=209 y=63 width=20 height=15 xoffset=1 yoffset=11 xadvance=22 page=0 chnl=15 |
||||
char id=110 x=78 y=89 width=13 height=15 xoffset=1 yoffset=11 xadvance=15 page=0 chnl=15 |
||||
char id=111 x=16 y=90 width=15 height=15 xoffset=0 yoffset=11 xadvance=15 page=0 chnl=15 |
||||
char id=112 x=30 y=69 width=14 height=20 xoffset=1 yoffset=11 xadvance=15 page=0 chnl=15 |
||||
char id=113 x=224 y=42 width=14 height=20 xoffset=0 yoffset=11 xadvance=15 page=0 chnl=15 |
||||
char id=114 x=147 y=84 width=9 height=15 xoffset=1 yoffset=11 xadvance=9 page=0 chnl=15 |
||||
char id=115 x=63 y=89 width=14 height=15 xoffset=0 yoffset=11 xadvance=14 page=0 chnl=15 |
||||
char id=116 x=247 y=0 width=8 height=20 xoffset=0 yoffset=6 xadvance=8 page=0 chnl=15 |
||||
char id=117 x=92 y=89 width=13 height=15 xoffset=1 yoffset=11 xadvance=15 page=0 chnl=15 |
||||
char id=118 x=32 y=90 width=15 height=15 xoffset=-1 yoffset=11 xadvance=13 page=0 chnl=15 |
||||
char id=119 x=230 y=63 width=20 height=15 xoffset=-1 yoffset=11 xadvance=19 page=0 chnl=15 |
||||
char id=120 x=134 y=85 width=12 height=15 xoffset=0 yoffset=11 xadvance=12 page=0 chnl=15 |
||||
char id=121 x=239 y=42 width=14 height=20 xoffset=0 yoffset=11 xadvance=14 page=0 chnl=15 |
||||
char id=122 x=120 y=87 width=13 height=15 xoffset=0 yoffset=11 xadvance=13 page=0 chnl=15 |
||||
char id=123 x=37 y=0 width=9 height=25 xoffset=0 yoffset=6 xadvance=9 page=0 chnl=15 |
||||
char id=124 x=89 y=0 width=4 height=25 xoffset=1 yoffset=6 xadvance=6 page=0 chnl=15 |
||||
char id=125 x=27 y=0 width=9 height=25 xoffset=0 yoffset=6 xadvance=9 page=0 chnl=15 |
||||
char id=126 x=11 y=106 width=16 height=4 xoffset=0 yoffset=14 xadvance=16 page=0 chnl=15 |
||||
kernings count=91 |
||||
kerning first=32 second=65 amount=-2 |
||||
kerning first=32 second=84 amount=-1 |
||||
kerning first=32 second=89 amount=-1 |
||||
kerning first=121 second=46 amount=-2 |
||||
kerning first=121 second=44 amount=-2 |
||||
kerning first=119 second=46 amount=-2 |
||||
kerning first=119 second=44 amount=-2 |
||||
kerning first=118 second=46 amount=-2 |
||||
kerning first=118 second=44 amount=-2 |
||||
kerning first=114 second=46 amount=-2 |
||||
kerning first=49 second=49 amount=-2 |
||||
kerning first=65 second=32 amount=-2 |
||||
kerning first=65 second=84 amount=-2 |
||||
kerning first=65 second=86 amount=-2 |
||||
kerning first=65 second=87 amount=-1 |
||||
kerning first=65 second=89 amount=-2 |
||||
kerning first=65 second=118 amount=-1 |
||||
kerning first=65 second=119 amount=-1 |
||||
kerning first=65 second=121 amount=-1 |
||||
kerning first=114 second=44 amount=-2 |
||||
kerning first=70 second=44 amount=-3 |
||||
kerning first=70 second=46 amount=-3 |
||||
kerning first=70 second=65 amount=-2 |
||||
kerning first=76 second=32 amount=-1 |
||||
kerning first=76 second=84 amount=-2 |
||||
kerning first=76 second=86 amount=-2 |
||||
kerning first=76 second=87 amount=-2 |
||||
kerning first=76 second=89 amount=-2 |
||||
kerning first=76 second=121 amount=-1 |
||||
kerning first=102 second=102 amount=-1 |
||||
kerning first=80 second=32 amount=-1 |
||||
kerning first=80 second=44 amount=-4 |
||||
kerning first=80 second=46 amount=-4 |
||||
kerning first=80 second=65 amount=-2 |
||||
kerning first=82 second=84 amount=-1 |
||||
kerning first=82 second=86 amount=-1 |
||||
kerning first=82 second=87 amount=-1 |
||||
kerning first=82 second=89 amount=-1 |
||||
kerning first=84 second=32 amount=-1 |
||||
kerning first=84 second=44 amount=-3 |
||||
kerning first=84 second=45 amount=-2 |
||||
kerning first=84 second=46 amount=-3 |
||||
kerning first=84 second=58 amount=-3 |
||||
kerning first=89 second=118 amount=-2 |
||||
kerning first=84 second=65 amount=-2 |
||||
kerning first=84 second=79 amount=-1 |
||||
kerning first=84 second=97 amount=-3 |
||||
kerning first=84 second=99 amount=-3 |
||||
kerning first=84 second=101 amount=-3 |
||||
kerning first=84 second=105 amount=-1 |
||||
kerning first=84 second=111 amount=-3 |
||||
kerning first=84 second=114 amount=-1 |
||||
kerning first=84 second=115 amount=-3 |
||||
kerning first=84 second=117 amount=-1 |
||||
kerning first=84 second=119 amount=-2 |
||||
kerning first=84 second=121 amount=-2 |
||||
kerning first=86 second=44 amount=-3 |
||||
kerning first=86 second=45 amount=-2 |
||||
kerning first=86 second=46 amount=-3 |
||||
kerning first=86 second=58 amount=-1 |
||||
kerning first=89 second=117 amount=-2 |
||||
kerning first=86 second=65 amount=-2 |
||||
kerning first=86 second=97 amount=-2 |
||||
kerning first=86 second=101 amount=-2 |
||||
kerning first=86 second=105 amount=-1 |
||||
kerning first=86 second=111 amount=-2 |
||||
kerning first=86 second=114 amount=-1 |
||||
kerning first=86 second=117 amount=-1 |
||||
kerning first=86 second=121 amount=-1 |
||||
kerning first=87 second=44 amount=-2 |
||||
kerning first=87 second=45 amount=-1 |
||||
kerning first=87 second=46 amount=-2 |
||||
kerning first=87 second=58 amount=-1 |
||||
kerning first=89 second=113 amount=-3 |
||||
kerning first=87 second=65 amount=-1 |
||||
kerning first=87 second=97 amount=-1 |
||||
kerning first=87 second=101 amount=-1 |
||||
kerning first=89 second=112 amount=-2 |
||||
kerning first=87 second=111 amount=-1 |
||||
kerning first=87 second=114 amount=-1 |
||||
kerning first=87 second=117 amount=-1 |
||||
kerning first=89 second=111 amount=-3 |
||||
kerning first=89 second=32 amount=-1 |
||||
kerning first=89 second=44 amount=-4 |
||||
kerning first=89 second=45 amount=-3 |
||||
kerning first=89 second=46 amount=-4 |
||||
kerning first=89 second=58 amount=-2 |
||||
kerning first=89 second=105 amount=-1 |
||||
kerning first=89 second=65 amount=-2 |
||||
kerning first=89 second=97 amount=-2 |
||||
kerning first=89 second=101 amount=-3 |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 109 B |
After Width: | Height: | Size: 109 B |
After Width: | Height: | Size: 996 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 752 B |
After Width: | Height: | Size: 241 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 249 B |