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

Function LatLonsToString

libs/routing/routing_quality/api/mapbox/mapbox_api.cpp:34–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34std::string LatLonsToString(std::vector<ms::LatLon> const & coords)
35{
36 std::ostringstream oss;
37 auto const size = coords.size();
38 for (size_t i = 0; i < size; ++i)
39 {
40 auto const & ll = coords[i];
41 oss << ll.m_lon << "," << ll.m_lat;
42 if (i + 1 != size)
43 oss << ";";
44 }
45
46 oss << ".json";
47 return url::UrlEncode(oss.str());
48}
49} // namespace
50
51namespace routing_quality::api::mapbox

Callers 1

GetDirectionsURLMethod · 0.85

Calls 2

UrlEncodeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected