Skip to content

Commit

Permalink
add polestar accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne-io committed Aug 16, 2019
1 parent 803f94a commit da701dc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ - (void)didFailWithErrorCode:(DBNAOERRORCODE)errCode andMessage:(NSString *)mess

- (void)didLocationChange:(CLLocation *)location {
ILIndoorLocation* indoorLocation = [[ILIndoorLocation alloc] initWithProvider:self latitude:location.coordinate.latitude longitude:location.coordinate.longitude floor:[NSNumber numberWithDouble:location.altitude/5]];
indoorLocation.accuracy = location.horizontalAccuracy;
if (_floorByAltitude) {
NSNumber* floor = _floorByAltitude[[NSNumber numberWithDouble:location.altitude]];
if (floor) {
Expand Down

0 comments on commit da701dc

Please sign in to comment.