Parent Directory | Revision Log | Patch
revision 2585 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 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |