Skip to content

Commit 48ccb90

Browse files
committed
fixed javadoc errors
1 parent 63e482c commit 48ccb90

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

core/src/main/java/com/graphhopper/routing/util/MotorcycleFlagEncoder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,9 @@ protected double discriminateSlowStreets( double bendiness, double speed )
386386

387387
/**
388388
* A really small bendiness or a bendiness greater than 1 indicates an error in the calculation.
389-
* Just ignore them. We use bendiness > 1.2 since the beelineDistance is only approximated,
390-
* therefore it can happen on straight roads, that the beeline is longer than the road.
389+
* Just ignore them. We use bendiness greater 1.2 since the beelineDistance is only
390+
* approximated, therefore it can happen on straight roads, that the beeline is longer than the
391+
* road.
391392
*/
392393
protected double correctErrors( double bendiness )
393394
{

core/src/main/java/com/graphhopper/util/DistanceCalc.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ public interface DistanceCalc
6363
* r
6464
* .
6565
* a-------b
66-
* <p>
66+
* </pre>
67+
* <pre>
6768
* case 2:
6869
* r
6970
* .
@@ -94,7 +95,7 @@ GHPoint calcCrossingPointToEdge( double r_lat_deg, double r_lon_deg,
9495

9596
/**
9697
* This methods projects a point given in lat and long (in degrees) into a direction, given as
97-
* heading, measured clockwise from north in degrees. The distance is passed in km.
98+
* heading, measured clockwise from north in degrees. The distance is passed in km.
9899
*/
99100
public GHPoint projectCoordinate( double lat_deg, double lon_deg,
100101
double distanceInMeter, double headingClockwiseFromNorth );

core/src/main/java/com/graphhopper/util/DistanceCalcEarth.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class DistanceCalcEarth implements DistanceCalc
4343

4444
/**
4545
* Calculates distance of (from, to) in meter.
46-
* <p/>
46+
* <p>
4747
* http://en.wikipedia.org/wiki/Haversine_formula a = sin²(Δlat/2) +
4848
* cos(lat1).cos(lat2).sin²(Δlong/2) c = 2.atan2(√a, √(1−a)) d = R.c
4949
*/
@@ -118,7 +118,7 @@ public double calcNormalizedEdgeDistance( double r_lat_deg, double r_lon_deg,
118118

119119
/**
120120
* New edge distance calculation where no validEdgeDistance check would be necessary
121-
* <p/>
121+
* <p>
122122
* @return the normalized distance of the query point "r" to the project point "c" onto the line
123123
* segment a-b
124124
*/

0 commit comments

Comments
 (0)