Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gyjzh committed Nov 18, 2016
0 parents commit b9eea6a
Show file tree
Hide file tree
Showing 1,451 changed files with 61,124 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

.DS_Store
.idea/

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xcuserstate

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md

fastlane/report.xml
fastlane/screenshots

#Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
1 change: 1 addition & 0 deletions AMap/AMapFoundationKit.framework/1.1.0.af5d224
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.0.af5d224
Binary file not shown.
15 changes: 15 additions & 0 deletions AMap/AMapFoundationKit.framework/Headers/AMapFoundationKit.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// AMapFoundationKit.h
// AMapFoundationKit
//
// Created by xiaoming han on 15/10/28.
// Copyright © 2015年 AutoNavi. 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/AMapUtility.h>
19 changes: 19 additions & 0 deletions AMap/AMapFoundationKit.framework/Headers/AMapFoundationVersion.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// AMapFoundationVersion.h
// AMapFoundation
//
// Created by xiaoming han on 15/10/26.
// Copyright © 2015年 AutoNavi. All rights reserved.
//

#import <Foundation/Foundation.h>

#ifndef AMapFoundationVersion_h
#define AMapFoundationVersion_h

#define AMapFoundationVersionNumber 10100

FOUNDATION_EXTERN NSString * const AMapFoundationVersion;
FOUNDATION_EXTERN NSString * const AMapFoundationName;

#endif /* AMapFoundationVersion_h */
33 changes: 33 additions & 0 deletions AMap/AMapFoundationKit.framework/Headers/AMapServices.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//
// AMapSearchServices.h
// AMapSearchKit
//
// Created by xiaoming han on 15/6/18.
// Copyright (c) 2015年 xiaoming han. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AMapServices : NSObject

+ (AMapServices *)sharedServices;

/**
* APIkey。设置key,需要绑定对应的bundle id。
*/
@property (nonatomic, copy) NSString *apiKey;

/**
* 是否开启HTTPS,默认为NO。
* 目前已支持服务:key鉴权、云图(不支持iOS9 SSL限制)、搜索(短串分享除外)。
*/
@property (nonatomic, assign) BOOL enableHTTPS;

/**
* 是否启用崩溃日志上传。默认为YES, 只有在真机上设置有效。
* 开启崩溃日志上传有助于我们更好的了解SDK的状况,可以帮助我们持续优化和改进SDK。
* 需要注意的是,我是通过设置NSUncaughtExceptionHandler来捕获异常的,如果您的APP中使用了其他收集崩溃日志的SDK,或者自己有设置NSUncaughtExceptionHandler的话,请保证 AMapServices 的初始化是在其他设置NSUncaughtExceptionHandler操作之后进行的,我们的handler会再处理完异常后调用前一次设置的handler,保证之前设置的handler会被执行。
*/
@property (nonatomic, assign) BOOL crashReportEnabled;

@end
45 changes: 45 additions & 0 deletions AMap/AMapFoundationKit.framework/Headers/AMapURLSearch.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//
// AMapURLSearch.h
// AMapFoundation
//
// Created by xiaoming han on 15/10/28.
// Copyright © 2015年 AutoNavi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AMapURLSearchConfig.h"

/// 调起高德地图URL进行搜索,若是调起失败,可使用`+ (void)getLatestAMapApp;`方法获取最新版高德地图app.
@interface AMapURLSearch : NSObject

/// 打开高德地图AppStore页面
+ (void)getLatestAMapApp;

/**
* 调起高德地图app驾车导航.
*
* @param config 配置参数.
*
* @return 是否成功.若为YES则成功调起,若为NO则无法调起.
*/
+ (BOOL)openAMapNavigation:(AMapNaviConfig *)config;

/**
* 调起高德地图app进行路径规划.
*
* @param config 配置参数.
*
* @return 是否成功.
*/
+ (BOOL)openAMapRouteSearch:(AMapRouteConfig *)config;

/**
* 调起高德地图app进行POI搜索.
*
* @param config 配置参数.
*
* @return 是否成功.
*/
+ (BOOL)openAMapPOISearch:(AMapPOIConfig *)config;

@end
79 changes: 79 additions & 0 deletions AMap/AMapFoundationKit.framework/Headers/AMapURLSearchConfig.h
Original file line number Diff line number Diff line change
@@ -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

44 changes: 44 additions & 0 deletions AMap/AMapFoundationKit.framework/Headers/AMapURLSearchType.h
Original file line number Diff line number Diff line change
@@ -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, //步行
};


52 changes: 52 additions & 0 deletions AMap/AMapFoundationKit.framework/Headers/AMapUtility.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
//
// AMapUtility.h
// AMapFoundation
//
// Created by xiaoming han on 15/10/27.
// Copyright © 2015年 AutoNavi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

/**
* 工具方法
*/

FOUNDATION_STATIC_INLINE NSString * AMapEmptyStringIfNil(NSString *s)
{
return s ? s : @"";
}


/// 坐标类型枚举
typedef NS_ENUM(NSUInteger, AMapCoordinateType)
{
AMapCoordinateTypeBaidu = 0, // Baidu
AMapCoordinateTypeMapBar, // MapBar
AMapCoordinateTypeMapABC, // MapABC
AMapCoordinateTypeSoSoMap, // SoSoMap
AMapCoordinateTypeAliYun, // AliYun
AMapCoordinateTypeGoogle, // Google
AMapCoordinateTypeGPS, // GPS
};

/**
* 转换目标经纬度为高德坐标系
*
* @param coordinate 待转换的经纬度
* @param type 坐标系类型
*
* @return 高德坐标系经纬度
*/
FOUNDATION_EXTERN CLLocationCoordinate2D AMapCoordinateConvert(CLLocationCoordinate2D coordinate, AMapCoordinateType type);

/**
* 判断目标经纬度是否在大陆以及港、澳地区。输入参数为高德坐标系。
*
* @param coordinate 待判断的目标经纬度
* @return 是否在大陆以及港、澳地区
*/
FOUNDATION_EXTERN BOOL AMapDataAvailableForCoordinate(CLLocationCoordinate2D coordinate);


1 change: 1 addition & 0 deletions AMap/AMapLocationKit.framework/2.1.0.598d05d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.1.0.598d05d
Binary file added AMap/AMapLocationKit.framework/AMapLocationKit
Binary file not shown.
Loading

0 comments on commit b9eea6a

Please sign in to comment.