fleet-telemetry icon indicating copy to clipboard operation
fleet-telemetry copied to clipboard

Issue with minimum_delta for Location

Open EmilOlovsson opened this issue 11 months ago • 6 comments

How do I implement minimum_delta correctly for "Location"?

The vehicle is a Model 3 running software V12 (2024.45.32.2)

I've set minimum_delta set to 0.0001 for Location but still receive data that has very small changes:

{"data":[{"key":"Location","value":{"locationValue":{"latitude":YY.609382,"longitude":XX.099705}}}],"createdAt":"2025-01-28T17:04:28.921265359Z","vin":"XXX"}

{"data":[{"key":"Location","value":{"locationValue":{"latitude":YY.609382,"longitude":XX.099704}}}],"createdAt":"2025-01-28T17:06:29.234057117Z","vin":"XXX"}

EmilOlovsson avatar Jan 28 '25 17:01 EmilOlovsson

Location doesn't support minimum_delta yet, we will be shipping that in a new release soon.

patrickdemers6 avatar Jan 28 '25 17:01 patrickdemers6

It will be in meters, so if you pass min delta of 10, it will send when location changes by 10+ meters.

patrickdemers6 avatar Jan 28 '25 17:01 patrickdemers6

can you please consider stop charging for API before a new firmware that supports minimum_delta is pushed to majority of cars? Otherwise, we are charged for data that we have not requested?

rawmean avatar Jan 29 '25 18:01 rawmean

Very happy to hear this @patrickdemers6! Will this require a telemetry server code change also or simply a vehicle telemetry config change?

marklindsey avatar Jan 30 '25 22:01 marklindsey

It will be in meters, so if you pass min delta of 10, it will send when location changes by 10+ meters.

Odd, I expected it to be in decimal degrees (that's how I implemented it). I get it, "location" is a compound of latitude and longitude. At least I'm happy you went with meters as opposed to the "odometer" values. 😉

fredli74 avatar Feb 01 '25 12:02 fredli74

@patrickdemers6 Is this fixed?

According to the fleet telemetry changelog this should now work. https://developer.tesla.com/docs/fleet-api/fleet-telemetry#changelog

  • Location fields now support minimum_delta. Changes in distance are measured in meters.

EmilOlovsson avatar May 24 '25 06:05 EmilOlovsson