# odometer

## High-Level Explanation

How far the vehicle has driven since it was built, in kilometers

## Enables

`odometer` exists for all Tesla vehicles, but not all other vehicles. `odometer` enables determination of distance travelled, assists in identifying the start and end of trips (based on odometer ceasing to increment), and serves as a data point relevant for vehicle valuation, among other possible uses.&#x20;

Note that because `odometer` is not available for every vehicle, sometimes the haversine distance between sucessive points must be used to estimate things like distance travelled (though the haversine distance would underestimate distance travelled)

## Enabled By

## Known Quirks

There are sometimes nonsensical values in the `odometer` signal values, sometimes due to a different vehicle reporting data for the same `subject` value.&#x20;

One method to deal with these values is to remove records where odometer decrements rather than increments. Additionally, records where the odometer increases so much in a short time that the speed travelled would not be physically possible can be removed, similar to removing records where (the haversine distance between records / time between records) is  results in a speed that is physically impossible, as in [#code-appendix](https://docs.dimo.org/dimo-explorer/latitude-and-longitude#code-appendix "mention").

## Visualizations with Explanations

<figure><img src="https://3212476574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Foh9c3w7RI0Bl5tVCxcyz%2Fuploads%2FSli4GCcEbmSIrpki6dge%2Fimage.png?alt=media&#x26;token=d9ede0d5-4ddd-4ff2-bb41-50f56ca79456" alt=""><figcaption><p>Raw <code>odometer</code> signal values for a sample vehicle</p></figcaption></figure>

<figure><img src="https://3212476574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Foh9c3w7RI0Bl5tVCxcyz%2Fuploads%2F2rI5kdislscBW91UJaB9%2Fimage.png?alt=media&#x26;token=ca6a8034-0f71-4181-bdc2-ab2d9eab1e87" alt=""><figcaption><p>Cleaned up <code>odometer</code> signal values for a sample vehicle</p></figcaption></figure>
