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

Method GenerateApiBackUrl

libs/map/framework.cpp:2365–2378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2363}
2364
2365string Framework::GenerateApiBackUrl(ApiMarkPoint const & point) const
2366{
2367 string res = m_parsedMapApi.GetGlobalBackUrl();
2368 if (!res.empty())
2369 {
2370 ms::LatLon const ll = point.GetLatLon();
2371 res += "pin?ll=" + strings::to_string(ll.m_lat) + "," + strings::to_string(ll.m_lon);
2372 if (!point.GetName().empty())
2373 res += "&n=" + url::UrlEncode(point.GetName());
2374 if (!point.GetApiID().empty())
2375 res += "&id=" + url::UrlEncode(point.GetApiID());
2376 }
2377 return res;
2378}
2379
2380/*
2381bool Framework::IsDataVersionUpdated()

Callers

nothing calls this directly

Calls 5

to_stringFunction · 0.85
UrlEncodeFunction · 0.85
emptyMethod · 0.45
GetLatLonMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected