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

BoundingCoordinates and DistanceTo creates different results #2

Open
ToFi79 opened this issue Aug 3, 2018 · 0 comments
Open

BoundingCoordinates and DistanceTo creates different results #2

ToFi79 opened this issue Aug 3, 2018 · 0 comments

Comments

@ToFi79
Copy link

ToFi79 commented Aug 3, 2018

Hi,

when I create Min Max array of coordinates within a specific distance range e.g. 2km (BoundingCoordinates() and afterwards check the result locations with DistanceTo there is a Distance of 2.8km...

        var loc = GeoLocation.FromDegrees(lat, lon);
        var box = loc.BoundingCoordinates(2.0); // Range 2.0km
        var dist11 = loc.DistanceTo(box[0]); // Result ~2.8km
        var dist21 = loc.DistanceTo(box[1]); // Result ~2.8km

Whats the reason for this ?

Best regards,
Torsten

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