MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / getBoundaryMaxId

Method getBoundaryMaxId

common/map_sdk/map_engine/src/remote_search.cpp:234–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234int RemoteSearch::getBoundaryMaxId(hadmap::laneboundarypkid& boundaryMaxId) {
235 std::string baseUrl = pTrans->location();
236 std::string url = UrlGen(baseUrl).db(dbName).getBoundaryMaxId().url();
237
238 std::string jsonData;
239 if (pTrans->get(url, jsonData)) {
240 neb::CJsonObject jsonParser;
241 jsonParser.Parse(jsonData);
242
243 std::string id;
244 jsonParser.Get("maxId", id);
245
246 boundaryMaxId = laneboundarypkid(std::stoull(id));
247 return TX_HADMAP_DATA_OK;
248 }
249
250 return TX_HADMAP_DATA_ERROR;
251}
252
253int RemoteSearch::getBoundaries(const std::vector<hadmap::laneboundarypkid>& ids,
254 hadmap::txLaneBoundaries& boundaries) {

Callers

nothing calls this directly

Calls 5

urlMethod · 0.80
locationMethod · 0.45
getMethod · 0.45
ParseMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected