Floor detection

The automatic recognition of floor plans, locations (a.k.a. venues) and indoor-outdoor-transitions are handled in the IndoorAtlas SDK with IARegion events

// Handling region enter events
- (void)indoorLocationManager:(IALocationManager *)manager didEnterRegion:(IARegion *)region
{
    switch (region.type) {
        case kIARegionTypeVenue:
            NSLog(@"Entered venue %@", region.identifier);
            break;
        case kIARegionTypeFloorPlan:
            NSLog(@"Entered floor plan %@", region.identifier);
            break;
        case kIARegionTypeGeofence:
            NSLog(@"Entered geofence %@", region.identifier);
            break;
    }
}

// Handling region exit events
- (void)indoorLocationManager:(IALocationManager *)manager didExitRegion:(IARegion *)region
{
    switch (region.type) {
        case kIARegionTypeVenue:
            NSLog(@"Exit venue %@", region.identifier);
            break;
        case kIARegionTypeFloorPlan:
            NSLog(@"Exit floor plan %@", region.identifier);
            break;
        case kIARegionTypeGeofence:
            NSLog(@"Exit geofence %@", region.identifier);
            break;
    }
}