Skip to content

Commit 4397d79

Browse files
Improve Javadoc
1 parent 7ddd7f2 commit 4397d79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

application/src/main/java/org/opentripplanner/gtfs/mapping/CompactShape.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
* A representation that stores GTFS shape points in a memory-efficient way and allows you to
99
* iterate over them for further processing.
1010
* <p>
11+
* Shape points are stored in an automatically expanding sparse array of original coordinate values,
12+
* so when they are added out of order, the shape doesn't need to be encoded or sorted again.
1113
* It is a compromise between efficient memory consumption and efficient use of CPU by not compressing
12-
* or encoding the shape but storing the raw coordinate values.
14+
* or encoding the points.
1315
* <p>
1416
* It is package-private but implements Iterable, so you should use that as the return type of the
1517
* mapping process.

0 commit comments

Comments
 (0)