Latest 1.0.2
Homepage https://github.com/ipsmap/IpsLocation-iOS
License MIT
Platforms ios 8.0
Frameworks UIKit, Foundation, SystemConfiguration, CoreGraphics, CoreLocation
Authors

IpsLocation-iOS

IpsLocation-iOS 是一套基于 iOS 8.0 及以上版本的室内地图应用程序开发接口,供开发者在自己的iOS应用中加入室内定位功能。

获取AppKey

请给[email protected]邮件联系获取AppKey、mapId、

使用CocoaPods部署

在Podfile中使用命令如下:

pod 'IpsLocation', '~> 1.0.2'

然后运行以下命令

$ pod install

注意

导入IpsmapLocation后需要

  • Build Settings中将Enable Bitcode 默认为YES无需修改成NO(IpsmapSDK为了兼容科大许飞SDK才使用NO)。
  • 在Info.plist中添加授权申明
    <key>NSBluetoothPeripheralUsageDescription</key>
    <string>App需要您的同意,才能访问蓝牙</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>App需要您的同意,才能在使用期间访问位置 </string>

使用说明  

是否在地图范围内的接口

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];

    self.manger = [IpsmapLocationManger new];
    self.manger.locationTimeOut = 20;
    self.manger.delegate = self;

    [self.manger startLocationEngine:@"lGaWCUtqoj"];
}

- (void)ipsmapLocationManager:(IpsmapLocationManger *_Nullable)manager didUpdateLocation:(IpsLocation *_Nullable)location 
{
    if (location.inThisMap) {
        NSLog(@"在医院里面");
    }
}

Latest podspec

{
    "name": "IpsLocation",
    "version": "1.0.2",
    "summary": "u5ba4u5185u5b9au4f4dSDK.",
    "description": "u5ba4u5185u5b9au4f4d IpsLocation Indoor location map ibeacon hospital",
    "homepage": "https://github.com/ipsmap/IpsLocation-iOS",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ipsmap": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ipsmap/IpsLocation-iOS.git",
        "tag": "1.0.2"
    },
    "vendored_frameworks": "IpsLocation/IpsLocation.framework",
    "frameworks": [
        "UIKit",
        "Foundation",
        "SystemConfiguration",
        "CoreGraphics",
        "CoreLocation"
    ],
    "libraries": [
        "z",
        "z.1.2.5",
        "xml2"
    ]
}

Pin It on Pinterest

Share This