In China, the coordinates of the car gotten from mybmw api is in GCJ02(GaoDe Map) format rather than WGS84(GPS) format. This leads to 1~2 km shift of location in HA's map.
Is it possible to convert the GCJ02 coordinates to WGS84 ones to correct the location of the car in HA's map and tracker?
Here is an online coordinates conversion tool
You may use the algorithm in python.
Many thanks!
Expected behavior
Convert the GCJ02 coordinates of the car in HA to WGS84(GPS) format.
Which Home Assistant version are you using?
core-2021.11.5
What was the last working version of Home Assistant Core?
No response
What is your region?
China
ConnectedDrive website
[X] I can still successfully login to the BMW ConnectedDrive website and the car status is available there.
[X] I have ConnectedDrive enabled for my vehicle.
Number of cars
[ ] I have 2 or more cars linked to the ConnectedDrive account.
Describe the issue
In China, the coordinates of the car gotten from mybmw api is in GCJ02(GaoDe Map) format rather than WGS84(GPS) format. This leads to 1~2 km shift of location in HA's map. Is it possible to convert the GCJ02 coordinates to WGS84 ones to correct the location of the car in HA's map and tracker? Here is an online coordinates conversion tool You may use the algorithm in python.
Many thanks!
Expected behavior
Convert the GCJ02 coordinates of the car in HA to WGS84(GPS) format.
Which Home Assistant version are you using?
core-2021.11.5
What was the last working version of Home Assistant Core?
No response
What is your region?
China
ConnectedDrive website
Number of cars
Output of bimmer_connected fingerprint
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response