/** * Returns the distance in meters between two given points of interest, P1 and P2 * on our lovely planet earth. * @param P1 * @param P2 * @return The distance between P1 and P2 in meter */ public double distanceTo(final Poi P1, final Poi P2) { return distanceTo(P1.getLon(), P1.getLat(), P2.getLon(), P2.getLat()); }
/** * Returns the distance in meters between two given points of interest, P1 and P2 * on our lovely planet earth. * @param P1 * @param P2 * @return The distance between P1 and P2 in meter */ public double distanceTo(final Poi P1, final Poi P2) { return distanceTo(P1.getLon(), P1.getLat(), P2.getLon(), P2.getLat()); }