bimmerconnected / bimmer_connected

🚘 Library to query the status of your BMW or Mini from the ConnectedDrive portal
Apache License 2.0
389 stars 81 forks source link

The coordinates of the car in China shift in homeassistant because the data from mybmw api is not in GPS format #377

Closed muxiachuixue closed 2 years ago

muxiachuixue commented 2 years ago

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

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.