/[projects]/dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/GeoPointHelper.java
ViewVC logotype

Diff of /dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/GeoPointHelper.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2706 by torben, Sun Jun 14 14:28:21 2015 UTC revision 2707 by torben, Sun Sep 27 13:21:45 2015 UTC
# Line 66  public class GeoPointHelper { Line 66  public class GeoPointHelper {
66                  return (dist);                  return (dist);
67          }          }
68    
69          public static double beregnAfstand(GeoPoint p1, GeoPoint p2) {          public static double beregnAfstand(Adresse p1, Adresse p2) {
70                  if (p1.latitude == p2.latitude && p1.longitude == p2.longitude) {                  if (p1.latitude == p2.latitude && p1.longitude == p2.longitude) {
71                          return 0.00; //Haversine går i baglås hvis p1 og p2 er samme position                          return 0.00; //Haversine går i baglås hvis p1 og p2 er samme position
72                  }                  }

Legend:
Removed from v.2706  
changed lines
  Added in v.2707

  ViewVC Help
Powered by ViewVC 1.1.20