This modules allows you to use the Indoor Location provided by Pole Star and connect it to Mapwize in one line of code.
Using this provider requires you to be both a Mapwize and a Pole Star customer. You can sign up for a free Mapwize account at www.mapwize.io. To purchase the Pole Star solution, please visit www.polestar.eu/.
Instanciate the provider using your credentials:
provider = [[ILPolestarIndoorLocationProvider alloc] initWithPolestarKey:@"POLESTAR API KEY"];
Set the provider in your Mapwize SDK:
[self.mapwizePlugin setIndoorLocationProvider:provider];
The Pole Star locationHandle is available as property of the provider so developers can access it directly.
The locations provided by Polestar manages altitude in meters while in IndoorLocation, the elevation is in floors. The default conversion is to divide the altitude by 5 to get the floor. If you need more granularity in the conversion, you can use floorByAltitude
to specify your mapping. The map takes altitudes (NSNumber) as keys and floors (NSNumber) as values.
A simple demo application to test the provider is available in this project.
You will need to set your Mapwize credentials in the info.plist
file and your Pole Star key in ViewController.m
.
Please make sure to call pod install
before running the app.
Contributions are welcome. We will be happy to review your PR.
For any support with this provider, please do not hesitate to contact [email protected] and [email protected]
This IndoorLocation Provider is made available under the MIT.
Mapwize and Pole Star SDKs used in this project are proprietary of their respective suppliers and are not open-source.