Closed ChrisWooldridge closed 12 years ago
Did you add the two lines at the end? Can you either create a clone and publish the patch there or create a patch for the fix? It would be a lot easier to see the changes there. This is in fact very simple with git:
$ git diff
Will yield the changes in patch format.
This has in fact been fixed.
If I use:
I get
Exception in thread "main" java.lang.IllegalArgumentException: The supplied coordinates (-3.4624406578435726E-18,180.00798315284126) are out of range. at ch.hsr.geohash.WGS84Point.(WGS84Point.java:26)
at ch.hsr.geohash.util.VincentyGeodesy.moveInDirection(VincentyGeodesy.java:81)
at WeatherLocationTest.(WeatherLocationTest.java:52)
at WeatherLocationTest.main(WeatherLocationTest.java:28)
I believe a quick fix is:
public static WGS84Point moveInDirection(WGS84Point point, double bearingInDegrees, double distanceInMeters) {
}