I need a help!!, I try to make a manual map, but it sends me an error when trying to save the map.
What can do I do in this situation?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
let locationBuilder = EILLocationBuilder()
locationBuilder.setLocationName("Oficina")
locationBuilder.setLocationBoundaryPoints([
EILPoint(x: 0.00, y: 0.00),
EILPoint(x: 0.00, y: 9.85),
EILPoint(x: 4.56, y: 9.85),
EILPoint(x: 4.56, y: 0.00)])
locationBuilder.addBeacon(withIdentifier: "97702a5fd61e5bc1079cedb4ccb6fa04", atBoundarySegmentIndex: 0, inDistance: 3.00, from: .leftSide)
locationBuilder.addBeacon(withIdentifier: "62b1675c57363c3dcc0d7b74cc074c31", atBoundarySegmentIndex: 1, inDistance: 2.50, from: .rightSide)
locationBuilder.addBeacon(withIdentifier: "69b5beb11608ae5ce7dae496012e002c", atBoundarySegmentIndex: 2, inDistance: 3.00, from: .leftSide)
locationBuilder.addBeacon(withIdentifier: "fac544a9e2e587fb6811fb901f3ba713", atBoundarySegmentIndex: 3, inDistance: 2.50, from: .rightSide)
locationBuilder.setLocationOrientation(50)
let location = locationBuilder.build()
ESTConfig.setupAppID("appId", andAppToken: "appToken")
let addLocationRequest = EILRequestAddLocation(location: location!)
addLocationRequest.sendRequest { (location, error) in
if error != nil {
NSLog("Error when saving location: \(error)")
} else {
NSLog("Location saved successfully: \(location?.identifier)")
}
}
return true
}
THE ERROR:
Indoor[4366:2006999] Error when saving location: Optional(Error Domain=ESTRequestBaseErrorDomain Code=500 “Estimote Cloud failed to handle request.” UserInfo={NSLocalizedDescription=Estimote Cloud failed to handle request., NSLocalizedRecoverySuggestion=Check reason field to verify what kind of error happened.})