diff --git a/src/v2i-hub/RSUHealthMonitorPlugin/src/RSUHealthMonitorPlugin.cpp b/src/v2i-hub/RSUHealthMonitorPlugin/src/RSUHealthMonitorPlugin.cpp index e8dda278b..2afe110a6 100755 --- a/src/v2i-hub/RSUHealthMonitorPlugin/src/RSUHealthMonitorPlugin.cpp +++ b/src/v2i-hub/RSUHealthMonitorPlugin/src/RSUHealthMonitorPlugin.cpp @@ -153,8 +153,8 @@ namespace RSUHealthMonitor if (boost::iequals("rsuGpsOutputString", config.field)) { auto gps = ParseGPS(response_str); - rsuStatuJson["rsuGpsOutputStringLatitude"] = gps[0]; - rsuStatuJson["rsuGpsOutputStringLongitude"] = gps[1]; + rsuStatuJson["rsuGpsOutputStringLatitude"] = gps.begin()->first; + rsuStatuJson["rsuGpsOutputStringLongitude"] = gps.begin()->second; } else {