| 232 | } |
| 233 | |
| 234 | int 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 | |
| 253 | int RemoteSearch::getBoundaries(const std::vector<hadmap::laneboundarypkid>& ids, |
| 254 | hadmap::txLaneBoundaries& boundaries) { |