MCPcopy Create free account
hub / github.com/comaps/comaps / DeserializeFromJson

Method DeserializeFromJson

libs/transit/experimental/transit_data.cpp:509–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509void TransitData::DeserializeFromJson(std::string const & dirWithJsons, OsmIdToFeatureIdsMap const & mapping)
510{
511 ReadData(base::JoinPath(dirWithJsons, kNetworksFile), m_networks);
512 ReadData(base::JoinPath(dirWithJsons, kRoutesFile), m_routes);
513 ReadData(base::JoinPath(dirWithJsons, kLinesFile), m_lines);
514 ReadData(base::JoinPath(dirWithJsons, kLinesMetadataFile), m_linesMetadata);
515 ReadData(base::JoinPath(dirWithJsons, kStopsFile), m_stops, mapping);
516 ReadData(base::JoinPath(dirWithJsons, kShapesFile), m_shapes);
517 ReadData(base::JoinPath(dirWithJsons, kEdgesFile), m_edges, m_edgeFeatureIds);
518 ReadData(base::JoinPath(dirWithJsons, kEdgesTransferFile), m_edges, m_edgeFeatureIds);
519 ReadData(base::JoinPath(dirWithJsons, kTransfersFile), m_transfers);
520 ReadData(base::JoinPath(dirWithJsons, kGatesFile), m_gates, mapping);
521}
522
523void TransitData::Serialize(Writer & writer)
524{

Callers 1

CreateGraphFromJsonFunction · 0.45

Calls 2

ReadDataFunction · 0.85
JoinPathFunction · 0.85

Tested by 1

CreateGraphFromJsonFunction · 0.36