Indoor Navigation (indoornavi)
Introduction
The demonstration is based on a two-dimensional indoor map for indoor cross-floor path analysis and navigation.
Operation effect
Figure: Indoor Navigation Operation Effect |
Location
Android Studio
- Product package: Product package\SampleCode\SampleCode_AndroidStudio\AndroidStudioSampleCode\indoornavi
ADT
- Product package: Product package\SampleCode\SampleCode_ADT\IndoorNavi
Data
Storage location
- Product package: Product package\SampleData\IndoorNavigationData
Deployment Location: mobile device internal storage\SampleData\IndoorNavigationData
Resource
Copy the "Product package\Resource\voice" folder to the assets folder in the project directory for navigation voice broadcasting.
License
Offline license, copy the license file to the "mobile device internal storage\SuperMap\License" folder.
Library
jar |
---|
com.supermap.data.jar, com.supermap.mapping.jar, com.supermap.navigation.jar |
so |
libimb2d.so, libAisound.so, libgnustl_shared.so, libQt5Core.so, libQt5Gui.so, libQt5Svg.so, libQt5Widgets.so(Note: Starting from version 11.1, the last five so libraries need to be added.) |
Key types/members
Control/Class | Method |
---|---|
NavigationEx | setStartPoint(), setDestinationPoint(), addWayPoint(), routeAnalyst(), startGuide() |
FloorListView | setCurrentFloorId() |
Basic steps
- Click the [Starting Point], [Endpoint], [Passing Point] button to add the starting point, end point, route point;
- Click the [Analysis] button for indoor path analysis;
- Click the [Navigation] button to start the simulation navigation;
- Click the [Clear] button to clear the analysis path;
- Click on the number of stairs on the right to switch floors.