Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use GPS coordinates for users in China #289

Merged
merged 3 commits into from
Oct 22, 2022

Conversation

shred86
Copy link
Collaborator

@shred86 shred86 commented Oct 22, 2022

Based on what I'm seeing in #282 and #233, it appears the Tesla API is already passing GCJ-02 coordinates for users in China in WGS-84 format. This was also confirmed by a user in China.

I'd like to merge this to dev and have some of our users in China test this out for us just to make sure, but everything I'm seeing suggests we can just use the longitude and latitude values passed directly from the Tesla API for all users since it appears to in WGS-84 format which is what Home Assistant uses.

@alandtse
Copy link
Owner

Since you'll be helping to maintain, please start using conventional commit messages. Also, please make sure you always start branches from dev.

Given we need to push out a bunch of bug fixes, my plan will be to just push multiple fixes this weekend without a long dev cycle. Users don't really understand dev so waiting for feedback from there wouldn't iterate very fast.

@alandtse alandtse changed the title Use GPS coordinates from Tesla API for users in China fix: use GPS coordinates for users in China Oct 22, 2022
@alandtse alandtse merged commit 1bc6d7f into alandtse:dev Oct 22, 2022
@shred86 shred86 deleted the china-coords branch October 26, 2022 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants