Skip to content

BoundingCoordinates and DistanceTo creates different results #2

@ToFi79

Description

@ToFi79

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions