HLPLocationManager is a BLE beacon-based localization Framework for iOS.
- blelocpp (MIT License)
- Install Carthage.
- Add below to your
Cartfile
:
github "hulop/HLPLocationManager"
- In your project directory, run
carthage update
.
- Implement HLPLocationManagerDelegate
This delegate enables to receive location information. You should implement methods below.
- (void)locationManager:(HLPLocationManager*)manager didLocationUpdate:(HLPLocation*)location;
- (void)locationManager:(HLPLocationManager*)manager didLocationStatusUpdate:(HLPLocationStatus)status;
- (void)locationManager:(HLPLocationManager*)manager didUpdateOrientation:(double)orientation withAccuracy:(double)accuracy;
- Setup HLPLocationManager
HLPLocationManager *manager = [HLPLocationManager sharedManager];
manager.delegate = self;
[manager setModelPath:modelPath];
[manager start];
isActive
- readonly IfYES
, Localization started.isBackground
- Set to allow background location updates.YES
- AllowNO
(default) - Disallow
isAccelerationEnabled
- set to use Accelerometer.YES
(default) - Use AccelerometerNO
- Don't use Accelerometer
currentStatus
- readonly Current LocationManager status.(void)setModelPath:(NSString*)modelPath;
- set path to a model file for localization.
(void)start;
- Start localization.
(void)restart;
- Restart localization.
(void)stop;
- Stop localization.
(void)makeStatusUnknown;
- Set bleloc Status to Status::UNKNOWN.
(void)resetLocation:(HLPLocation*)loc;
- Set location forced.
This Human Scale Localization Platform library is intended solely for use with an Apple iOS product and intended to be used in conjunction with officially licensed Apple development tools and further customized and distributed under the terms and conditions of your licensed Apple developer program.