libcity.data.dataset.map_matching_dataset¶
-
class
libcity.data.dataset.map_matching_dataset.
MapMatchingDataset
(config)[source]¶ Bases:
libcity.data.dataset.abstract_dataset.AbstractDataset
路网匹配数据集的基类。
-
_load_dyna
()[source]¶ 加载.dyna文件,格式 [dyna_id,type,time,entity_id,location] self.with_time 用于表示轨迹是否包含时间信息 :returns: 数据数组 :rtype: np.ndarray
-
_load_geo_and_rel
()[source]¶ 加载.geo文件,格式[geo_id, type, coordinates, properties(若干列)] 加载.rel文件,格式[rel_id, type, origin_id, destination_id, properties(若干列)], .rel文件用来表示路网数据
- Returns
networkx.MultiDiGraph
- Return type
self.rd_nwk
-