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

Line arc extreme on long distances #21

Open
ghost opened this issue Oct 15, 2021 · 3 comments
Open

Line arc extreme on long distances #21

ghost opened this issue Oct 15, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 15, 2021

Greetings. I would like to address an issue that is problematic to me using the library.

I create a journey that is from eastern Europe to the western USA.

The line, post-Mercator projection is so high that it covers Greenland.

Is there any way to adjust the height of the arc or is it only ever relative to the curvature of the earth between the distance of the to/from coordinates?

@flopp
Copy link
Owner

flopp commented Nov 6, 2021

The line drawn between two points is the shortest surface path between those points and thus is a segment of a "great circle" (see https://en.wikipedia.org/wiki/Great_circle). Due to the mercator projection, these direct paths end up as curves.

Here's an example for the direct path between Kiev and San Francisco (you can switch between a 3D globe view and the mercator projection using the top right icons):

https://www.greatcirclemap.com/globe?routes=KBP-SFO

The direct path indeed goes across greenland, so the "extreme arc" drawn by py-staticmaps is correct.

3d-globe
mercator

@flopp
Copy link
Owner

flopp commented Nov 6, 2021

BTW, sorry for my late reply...

@ghost
Copy link
Author

ghost commented Nov 8, 2021

Thanks for the reply. I was just trying to make it more aesthetically pleasing.

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

1 participant