Skip to content

Problem with calculating distance using Vincenty #107

@bjoernffm

Description

@bjoernffm

Hi there,

I try to calculate the distance between two points using this code:

$coordinate1 = new Coordinate(-5.59248, -78.774002);
$coordinate2 = new Coordinate(5.79, 101.15);

$distance = $coordinate1->getDistance($coordinate2, new Vincenty());

It throws an NotConvergingException and I don't understand why.

Is there any solution to this problem or is the vincenty method limited regarding any circumstances?

Thank you!

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