Odometer interpolation using GPS data
A system to augment the collected odometer data points with more precise location data which provides an indication of a location of a vehicle associated with the odometer at a given time, such as Global Positioning System (GPS) GPS data points. Additionally, the GPS data points may be collected at a higher sampling rate than the odometer data points, thus providing a more precise indication of a distance traveled by a vehicle at any given time.
1. A method comprising:
receiving a first odometer data point that includes a first timestamp, and a second odometer data point that includes a second timestamp;
plotting the first odometer data point and the second odometer data point on a graph based on the first timestamp and the second timestamp, the graph comprising a first axis that represents distance values and a second axis that represents temporal values;
accessing a plurality of GPS data points based on the first timestamp and the second timestamp of the first odometer data point and the second odometer data point, the plurality of GPS data points comprising location data;
plotting the plurality of GPS data points at positions between the first odometer data point and the second odometer data point along the graph;
generating a segment that comprises a length attribute that depicts a represents distance traveled over time based on the plurality of GPS data points; and
causing display of the segment upon the graph based on the length attribute.
2. The method of claim 1 , wherein the first odometer data point and the second odometer data point are collected from an odometer associated with a vehicle, and the receiving the first odometer data point and the second odometer data point includes:
detecting movement at the vehicle associated with the odometer; and
collecting the first odometer data point and the second odometer data point in based on the movement.
3. The method of claim 1 , wherein the receiving the first odometer data point and the second odometer data point includes:
collecting the first odometer data point and the second odometer data point at a predefined sampling rate.
4. The method of claim 3 , wherein the predefined sampling rate includes one or more of a temporal based sampling rate and a distance based sampling rate.
5. The method of claim 1 , wherein the method further comprises:
interpolating a speed value based on the first odometer data point and the second odometer data point.
6. The method of claim 5 , wherein the method further comprises:
determining that the speed value transgresses a threshold value;
detecting an error based on the speed value transgressing the threshold value; and
accessing the plurality of GPS data points in response to the detecting the error.
7. The method of claim 1 , wherein the receiving the first odometer data point and the second odometer data point includes receiving the first odometer data point and the second odometer data point at a first sampling rate, and wherein the accessing the plurality of GPS data points includes accessing the plurality of GPS data points at a second sampling rate.
8. The method of claim 7 , wherein the second sampling rate is at a greater frequency than the first sampling rate.
9. A system comprising:
a memory; and
at least one hardware processor to perform operations comprising:
receiving a first odometer data point that includes a first timestamp, and a second odometer data point that includes a second timestamp;
plotting the first odometer data point and the second odometer data point on a graph based on the first timestamp and the second timestamp, the graph comprising a first axis that represents distance values and a second axis that represents temporal values;
accessing a plurality of GPS data points based on the first timestamp and the second timestamp of the first odometer data point and the second odometer data point, the plurality of GPS data points comprising location data;
plotting the plurality of GPS data points at positions between the first odometer data point and the second odometer data point along the graph;
generating a segment that comprises a length attribute that depicts a distance traveled over time based on the plurality of GPS data points; and
causing display of the segment upon the graph based on the length attribute.
10. The system of claim 9 , wherein the first odometer data point and the second odometer data point are collected from an odometer associated with a vehicle, and the receiving the first odometer data point and the second odometer data point includes:
detecting movement at the vehicle associated with the odometer; and
collecting the first odometer data point and the second odometer data point in based on the movement.
11. The system of claim 9 , wherein the receiving the first odometer data point and the second odometer data point includes:
collecting the first odometer data point and the second odometer data point at a predefined sampling rate.
12. The system of claim 11 , wherein the predefined sampling rate includes one or more of a temporal based sampling rate and a distance based sampling rate.
13. The system of claim 9 , wherein the operations further comprise:
interpolating a speed value based on the first odometer data point and the second odometer data point.
14. The system of claim 13 , wherein the operations further comprise:
determining that the speed value transgresses a threshold value;
detecting an error based on the speed value transgressing the threshold value; and
accessing the plurality of GPS data points in response to the detecting the error.
15. The system of claim 9 , wherein the receiving the first odometer data point and the second odometer data point includes receiving the first odometer data point and the second odometer data point at a first sampling rate, and wherein the accessing the plurality of GPS data points includes accessing the plurality of GPS data points at a second sampling rate.
16. The system of claim 15 , wherein the second sampling rate is at a greater frequency than the first sampling rate.
17. A non-transitory machine-readable storage medium comprising instructions that, when executed by one or more processors of a machine, cause the machine to perform operations comprising:
receiving a first odometer data point that includes a first timestamp, and a second odometer data point that includes a second timestamp;
plotting the first odometer data point and the second odometer data point on a graph based on the first timestamp and the second timestamp, the graph comprising a first axis that represents distance values and a second axis that represents temporal values;
accessing a plurality of GPS data points based on the first timestamp and the second timestamp of the first odometer data point and the second odometer data point, the plurality of GPS data points comprising location data;
plotting the plurality of GPS data points at positions between the first odometer data point and the second odometer data point along the graph;
generating a segment that comprises a length attribute that depicts a distance traveled over time based on the plurality of GPS data points; and
causing display of the segment upon the graph based on the length attribute.
18. The non-transitory machine-readable storage medium of claim 17 , wherein the first odometer data point and the second odometer data point are collected from an odometer associated with a vehicle, and the receiving the first odometer data point and the second odometer data point includes:
detecting movement at the vehicle associated with the odometer; and
collecting the first odometer data point and the second odometer data point in based on the movement.
19. The non-transitory machine-readable storage medium of claim 17 , wherein the receiving the first odometer data point and the second odometer data point includes:
collecting the first odometer data point and the second odometer data point at a predefined sampling rate.
20. The non-transitory machine-readable storage medium of claim 19 , wherein the predefined sampling rate includes one or more of a temporal based sampling rate and a distance based sampling rate.