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

latitude, logitude reversed #78

Closed
MichiBB opened this issue Jun 14, 2023 · 1 comment
Closed

latitude, logitude reversed #78

MichiBB opened this issue Jun 14, 2023 · 1 comment

Comments

@MichiBB
Copy link

MichiBB commented Jun 14, 2023

Hello,
API parameters are latitude,longitude.
In the response the latitude,longitude are reversed. Please try your own sample:
https://api.open-elevation.com/api/v1/lookup?locations=41.161758,-8.583933
Response:
{"results":[{"latitude":-8.583933,"longitude":41.161758,"elevation":117.0}]}

Do I have a mistake in thinking?

Best regards
MichBB

@Jorl17
Copy link
Owner

Jorl17 commented Jun 14, 2023

Thank you for pointing this out!

As part of our continued efforts in increasing the performance of the public API, we recently released an internal update of the open-elevation code. We accidentally swapped the latitude and longitude parameters in the response. Note, however, that the elevation value is correct -- it's merely a matter of the output of those two values.

The issue is now fixed. Sorry for the troubles.

@Jorl17 Jorl17 closed this as completed Jun 14, 2023
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

No branches or pull requests

2 participants