timdorr / tesla-api

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.
https://tesla-api.timdorr.com/
MIT License
2k stars 534 forks source link

Vehicle data endpoint not providing vehicle location when parked #786

Open armansumn opened 3 months ago

armansumn commented 3 months ago

Hello, has anyone run into this issue? Here is the drive_state response I am getting back when calling the vehicle data endpoint. All other vehicle_data information is available however I am not able to get the long and latitude of the vehicle. However, I've found that it does work when the car is being driven but not when in park.

Any clarification would help. Thanks!

"drive_state": { "power": 0, "shift_state": null, "speed": null, "timestamp": 1723757993740 },