Function spherical2Distance

  • calculates the haversine distance between two mercator coordinates.

    Parameters

    • p1: Coordinate

      in mercator

    • p2: Coordinate

      in mercator

    Returns number