Github user dsmiley commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/246#discussion_r138328277 --- Diff: lucene/spatial-extras/src/java/org/apache/lucene/spatial/spatial4j/Geo3dDistanceCalculator.java --- @@ -70,7 +71,22 @@ public boolean within(Point from, double toX, double toY, double distance) { @Override public Point pointOnBearing(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse) { - throw new UnsupportedOperationException(); + double dist = DistanceUtils.DEGREES_TO_RADIANS * distDEG; + double bearing = DistanceUtils.DEGREES_TO_RADIANS * bearingDEG; + Geo3dPointShape geoFrom = (Geo3dPointShape) from; + GeoPoint point = (GeoPoint)geoFrom.shape; + --- End diff -- Can you please add the name of this formula (if there is one) and/or a URL for further info?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org