Skip to content

Commit

Permalink
Update comments to match
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Sep 3, 2024
1 parent 9930b1b commit f527614
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/entur/lamassu/service/impl/GeoUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ private GeoUtils() {}
rangeQueryParameters.setLon(envelope.getCenterX());
rangeQueryParameters.setLat(envelope.getCenterY());

// The diameter of the circle that encloses the envelope is equal to the diameter
// of the envelope itself, hence half the diameter equals the circle's radius
// The diameter of the circle that encloses the envelope is equal to the length
// of the diagonal of the envelope, hence half this length equals the circle's radius
rangeQueryParameters.setRange(getDiagonalLength(envelope) / 2.0);
return rangeQueryParameters;
}

/**
* Find the great circle distance between the southwest and northeast corners of the envelope,
* which we called the diameter of the envelope.
* which we called the diagonal length of the envelope.
* @param envelope
* @return
*/
Expand Down

0 comments on commit f527614

Please sign in to comment.