Shortest Path Analysis(findpath)
Introduction
Demonstrate the setting of the starting point, the end point, and the shortest path analysis.
Operation effect展示
Figure: Shortest Path Analysis Operation Effect |
Location
Android Studio
- Product package: Product package\SampleCode\SampleCode_AndroidStudio\AndroidStudioSampleCode\findPath
ADT
- Product package: Product package\SampleCode\SampleCode_ADT\FindPath
Data
Storage location
- Product package: Product package\SampleData\City
Deployment Location: mobile device internal storage\SampleData\City
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.analyst.jar |
so |
libimb2d.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 |
---|---|
TransportationAnalystSetting | setNetworkDataset(), setEdgeIDField(), setNodeIDField(), setEdgeNameField(), setWeightFieldInfos(), setFNodeIDField(), setTNodeIDField() |
TransportationAnalyst | setAnalystSetting(), load(), findPath() |
TransportationAnalystParameter | setPoints(), setNodesReturn(), setEdgesReturn(), setPathGuidesReturn(), setRoutesReturn() |
Basic steps
- Click [Set Start] and press on map to select start point.
- Click [Add Destination] and press on map to select destination points (multiple destinations can be specified).
- Click [Analyze] to perform analysis and display results on the map.
- Click [Clear] to clear the results.
- Click [Reset Start] to perform next analysis.