| 235 | } |
| 236 | |
| 237 | util::json::Object |
| 238 | makeWaypoint(const util::Coordinate &location, const double &distance, std::string name) |
| 239 | { |
| 240 | util::json::Object waypoint; |
| 241 | waypoint.values.reserve(3); |
| 242 | |
| 243 | waypoint.values.emplace("location", detail::coordinateToLonLat(location)); |
| 244 | waypoint.values.emplace("name", std::move(name)); |
| 245 | waypoint.values.emplace("distance", distance); |
| 246 | return waypoint; |
| 247 | } |
| 248 | |
| 249 | util::json::Object makeWaypoint(const util::Coordinate &location, |
| 250 | const double &distance, |
no test coverage detected