-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support of GPS coordinates #10
Comments
+1 |
To convert Lat, Long coordinates to X, Y, Z coordinates, you can use the following steps:
Here is an example code snippet in python that demonstrates how to convert Star Citizen Lat, Long coordinates to X, Y, Z coordinates:
This code will convert the latitude and longitude coordinates for San Francisco (37.7749, -122.4194) to X, Y, Z coordinates using the radius of the Earth (6371 km). The output should be:
Note that the X, Y, and Z coordinates are in meters. You may need to adjust the radius value depending on the planet or celestial body you are working with. |
Thanks, you all for the comment, I will add that in the next update. |
You probably can just add the altitude, save the radius of each moon/planet, and addition the altitude to the radius to get the radius to use in the formula of my previous comment. I think that'll work. OM still a good way, because used by many databases but it's disabled in your app currently. I don't think you need If you need help for the algorithm, you can mention me with your needs. |
You do because doing triangulation with 3 spheres still gives you 2 possible points |
@Valalol You're right, that's needed. |
Is your feature request related to a problem? Please describe.
Nope
Describe the solution you'd like
Possibility to use GPS coordinates like :
24.59017° S, 104.89785° E
or24.59017° N, 104.89785° O
Describe alternatives you've considered
No alternative, but maybe use mathematical equation like : https://stackoverflow.com/a/1185413/8714792
The text was updated successfully, but these errors were encountered: