You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you look at example below you can see 3 points.
Two of them are in about 100 miles distance on the same latitude.
One of them is supposed to be 100miles away to the North direction (90 degrees), but clearly it's not 100miles, more like 10000miles.
Why is this happening? Is it a bug or I don't understand something?
I know that in Mercator projection we have the same distance but not angles, however I don't see corelation in calculations here to the projection issue (nevertheles this issue #684 seems to touch similar problem)
@jcimoch Doesn't look like a bug. Leaflet expects coordinates in order (latitude, longitude) but Turf expects them in the order (longitude, latitude). Just reverse them before using in Turf and then reverse them back when using the result in Leaflet.
jcimoch
changed the title
destination and rhumbDestination resulting in wrong distnace the closer to the North/South deviation angle applied
destination and rhumbDestination resulting in wrong distance the closer to the North/South deviation angle applied
Jul 16, 2019
jcimoch
changed the title
destination and rhumbDestination resulting in wrong distance the closer to the North/South deviation angle applied
destination and rhumbDestination resulting in wrong distance when closer to the North/South deviation angle is applied
Jul 16, 2019
When you look at example below you can see 3 points.
Two of them are in about 100 miles distance on the same latitude.
One of them is supposed to be 100miles away to the North direction (90 degrees), but clearly it's not 100miles, more like 10000miles.
Why is this happening? Is it a bug or I don't understand something?

I know that in Mercator projection we have the same distance but not angles, however I don't see corelation in calculations here to the projection issue (nevertheles this issue #684 seems to touch similar problem)
Code example reproducing the problem HERE
The text was updated successfully, but these errors were encountered: