开发者,即刻体验
只需简单三步完成部署,同时激活安卓和苹果的使用场景

集成 SDK
我们提供原生安卓和苹果 SDK 以及 Unity 和 Cordova 插件。只需几行代码,即可轻松完成集成。请参阅开发指南和API文档,里面有详细的步骤和样例代码。
SDK下载 API文档 开发指南1 - (void)authenticateAndRequestLocation
2 {
3 // Create IALocationManager and point delegate to receiver
4 self.manager = [IALocationManager sharedInstance];
5 self.manager.delegate = self;
6
7 // Set IndoorAtlas API key and secret
8 [self.manager setApiKey:kAPIKey andSecret:kAPISecret];
9
10 // Request location updates
11 [self.manager startUpdatingLocation];
12 }
1 manager = IALocationManager.create(this);
2
3 manager.requestLocationUpdates(IALocationRequest.create(), listener);
4
5 @Override
6 public void onLocationChanged(IALocation location) {
7 android.location.Location l = location.toLocation();
8 }