@@ -88,9 +88,9 @@ class TrafficGPSEncoder
88
88
if (!points.empty ())
89
89
{
90
90
uint64_t const firstTimestamp = points[0 ].m_timestamp ;
91
- uint32_t const firstLat = DoubleToUint32 (points[0 ].m_latLon .lat , ms::LatLon::kMinLat ,
91
+ uint32_t const firstLat = DoubleToUint32 (points[0 ].m_latLon .m_lat , ms::LatLon::kMinLat ,
92
92
ms::LatLon::kMaxLat , kCoordBits );
93
- uint32_t const firstLon = DoubleToUint32 (points[0 ].m_latLon .lon , ms::LatLon::kMinLon ,
93
+ uint32_t const firstLon = DoubleToUint32 (points[0 ].m_latLon .m_lon , ms::LatLon::kMinLon ,
94
94
ms::LatLon::kMaxLon , kCoordBits );
95
95
WriteVarUint (writer, firstTimestamp);
96
96
WriteVarUint (writer, firstLat);
@@ -102,9 +102,9 @@ class TrafficGPSEncoder
102
102
ASSERT_LESS_OR_EQUAL (points[i - 1 ].m_timestamp , points[i].m_timestamp , ());
103
103
104
104
uint64_t const deltaTimestamp = points[i].m_timestamp - points[i - 1 ].m_timestamp ;
105
- uint32_t deltaLat = DoubleToUint32 (points[i].m_latLon .lat - points[i - 1 ].m_latLon .lat ,
105
+ uint32_t deltaLat = DoubleToUint32 (points[i].m_latLon .m_lat - points[i - 1 ].m_latLon .m_lat ,
106
106
kMinDeltaLat , kMaxDeltaLat , kCoordBits );
107
- uint32_t deltaLon = DoubleToUint32 (points[i].m_latLon .lon - points[i - 1 ].m_latLon .lon ,
107
+ uint32_t deltaLon = DoubleToUint32 (points[i].m_latLon .m_lon - points[i - 1 ].m_latLon .m_lon ,
108
108
kMinDeltaLon , kMaxDeltaLon , kCoordBits );
109
109
110
110
WriteVarUint (writer, deltaTimestamp);
@@ -125,9 +125,9 @@ class TrafficGPSEncoder
125
125
if (!points.empty ())
126
126
{
127
127
uint64_t const firstTimestamp = points[0 ].m_timestamp ;
128
- uint32_t const firstLat = DoubleToUint32 (points[0 ].m_latLon .lat , ms::LatLon::kMinLat ,
128
+ uint32_t const firstLat = DoubleToUint32 (points[0 ].m_latLon .m_lat , ms::LatLon::kMinLat ,
129
129
ms::LatLon::kMaxLat , kCoordBits );
130
- uint32_t const firstLon = DoubleToUint32 (points[0 ].m_latLon .lon , ms::LatLon::kMinLon ,
130
+ uint32_t const firstLon = DoubleToUint32 (points[0 ].m_latLon .m_lon , ms::LatLon::kMinLon ,
131
131
ms::LatLon::kMaxLon , kCoordBits );
132
132
uint32_t const traffic = points[0 ].m_traffic ;
133
133
WriteVarUint (writer, firstTimestamp);
@@ -141,9 +141,9 @@ class TrafficGPSEncoder
141
141
ASSERT_LESS_OR_EQUAL (points[i - 1 ].m_timestamp , points[i].m_timestamp , ());
142
142
143
143
uint64_t const deltaTimestamp = points[i].m_timestamp - points[i - 1 ].m_timestamp ;
144
- uint32_t deltaLat = DoubleToUint32 (points[i].m_latLon .lat - points[i - 1 ].m_latLon .lat ,
144
+ uint32_t deltaLat = DoubleToUint32 (points[i].m_latLon .m_lat - points[i - 1 ].m_latLon .m_lat ,
145
145
kMinDeltaLat , kMaxDeltaLat , kCoordBits );
146
- uint32_t deltaLon = DoubleToUint32 (points[i].m_latLon .lon - points[i - 1 ].m_latLon .lon ,
146
+ uint32_t deltaLon = DoubleToUint32 (points[i].m_latLon .m_lon - points[i - 1 ].m_latLon .m_lon ,
147
147
kMinDeltaLon , kMaxDeltaLon , kCoordBits );
148
148
149
149
uint32_t const traffic = points[i - 1 ].m_traffic ;
0 commit comments