@@ -7,11 +7,21 @@ coordinates.
77
88## Information
99
10- | Attribute | Remarks |
11- | :-------------| :---------------------------------------------------------------|
12- | ` Id ` | An integer value for identifying the coordinate. |
13- | ` Coordiante ` | Geographical information presented as ` Lat/long ` of a ` Point ` . |
10+ ``` {eval-rst}
11+ .. list-table::
12+ :widths: 33 33
13+ :header-rows: 1
14+
15+ * - Attribute
16+ - Remarks
17+
18+ * - Id
19+ - An integer value for identifying the coordinate.
20+
21+ * - Coordinate
22+ - Geographical information presented as `Lat/long` of a `Point`.
1423
24+ ```
1525
1626
1727## Known implementations:
@@ -74,19 +84,17 @@ return less than n coordinates.
7484
7585
7686## Finding and returning the closest corner coordinates:
77- In most cases we need four corner coordinates for our given coordinate. Therefor the
78- IdCoordinateSource contains a method that will use the calculated distances to find the closest
79- corner coordinates for the given coordinate .
87+ In most cases we need four corner coordinates for our given coordinate. Therefor the IdCoordinateSource contains methods
88+ that tries to return the corner points for a given coordinate. The max. number of corner points is specified by the
89+ implementation of the second method .
8090
8191``` java
82- List<CoordinateDistance > restrictToBoundingBox(
83- Point coordinate,
84- Collection<CoordinateDistance > distances,
85- int numberOfPoints
86- )
92+ List<CoordinateDistance > findCornerPoints(Point coordinate, ComparableQuantity<Length > distance)
93+ List<CoordinateDistance > findCornerPoints(Point coordinate, Collection<CoordinateDistance > distances)
8794```
8895
89- For a given set of coordinates, the closest four corner coordinates plus more close points if n > 4
90- are returned. If n < 4 the method will return the closest n corner coordinates. If the set of
91- coordinates contains a coordinate that matches the given coordinate, only this one coordinate is
92- returned. If n > number of coordinates in the set, all coordinates are returned.
96+ 1 . This method can be used to return the corner points by specifying a maximum search distance.
97+
98+ 2 . If a coordinate matches the given coordinate, only this coordinate is returned. If no coordinate matches the given
99+ coordinate, this method tries to return four corner points.
100+
0 commit comments