Java Distance Calculate distance(double latitude1, double longitude1, double latitude2, double longitude2)

Here you can find the source of distance(double latitude1, double longitude1, double latitude2, double longitude2)

Description

distance

License

Open Source License

Declaration

private static double distance(double latitude1, double longitude1, double latitude2, double longitude2) 

Method Source Code

//package com.java2s;

public class Main {
    private static double distance(double latitude1, double longitude1, double latitude2, double longitude2) {
        return Math.sqrt((latitude1 - latitude2) * (latitude1 - latitude2)
                + (longitude1 - longitude2) * (longitude1 - longitude2));
    }/*w  w w  . j  a va  2 s.co  m*/
}

Related

  1. distance(double lat1, double lon1, double lat2, double lon2)
  2. distance(double lat1, double lon1, double lat2, double lon2)
  3. distance(double lat1, double lon1, double lat2, double lon2)
  4. distance(double latA, double logA, double latB, double logB)
  5. distance(double latDegrees1, double lonDegrees1, double latDegrees2, double lonDegrees2)
  6. distance(double lon1, double lat1, double lon2, double lat2)
  7. distance(double u, double v, double pu, double pv)
  8. distance(double w1, double h1, double w2, double h2, int type)
  9. distance(double x, double y, double xx, double yy)