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

Function ReadSegmentEnding

generator/routing_world_roads_generator.cpp:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace routing
24{
25CrossBorderSegmentEnding ReadSegmentEnding(coding::CSVReader::Row const & tokens, size_t fromIndex)
26{
27 ms::LatLon latLon;
28 latLon.m_lat = std::stod(tokens[fromIndex++]);
29 latLon.m_lon = std::stod(tokens[fromIndex++]);
30
31 auto const mwmId = static_cast<NumMwmId>(std::stol(tokens[fromIndex]));
32
33 return CrossBorderSegmentEnding(latLon, mwmId);
34}
35
36std::pair<RegionSegmentId, CrossBorderSegment> ReadSegment(coding::CSVReader::Row const & tokens)
37{

Callers 1

ReadSegmentFunction · 0.85

Calls 1

Tested by

no test coverage detected