📄 readme.txt
字号:
说明:
路径分析和公交换乘分析模块,调用RouteAnalysis or RouteAnalysisEX函数进行路径分析。 里面涉及到两个网络,一个是道路网,一个是公交线路网,首先根据参数搜索两点在道路网中的连通行,然后再用找到的连通的线路和公交线路网查找时候有可以连通的公交线路,这两个网络的数据存储结构基本相同,用点,弧结构来描述网络逻辑关系。我用了图论中最简单的深度优先算法实现,这个方法的缺点是,一旦节点数量增加时,查询速度会成几何级数下降。
函数参数说明:
Public Function RouteAnalysis(ByVal sConnStr As String, ByVal iSSID As Long, _
ByVal iESID As Long, ByVal iSearchStyle As Integer, ByRef iShortestIndex As Integer, ByRef iUnionLineCount As Integer, _
ByRef aLineCounts() As Long, ByRef aLines() As Long, _
ByRef aStationCounts() As Long, ByRef aStations() As Long, _
ByRef aSNameCounts() As Long, ByRef aSNames() As String, _
ByRef aLengthCounts() As Long, ByRef aLengths() As Double, _
ByRef aBusLineCounts() As Long, ByRef aBusLines() As String, _
ByRef aCStationCounts() As Long, ByRef aCStations() As String) As Boolean
输入参数:
sConnStr :连接数据库字符串,连接存放节点数据和弧线数据的access数据库
iSSID :起始点ID
iESID :终点ID
iSearchStyle :查询类型
输出参数:
iShortestIndex :查到结果的搜索深度,用它来判断最优
iUnionLineCount :查询结果所经路径的弧线数量
aLines:查询结果所经路径的弧线集合
aStationCounts:查询结果所经路径的节点数量
aStations:查询结果所经路径的节点集合
aSNameCounts:
aSNames:
aLengthCounts:
aLengths:
aBusLineCounts:
aBusLines:
aCStationCounts:
aCStations:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -