We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbccfb3 commit c3537d6Copy full SHA for c3537d6
lib/src/nearest_point_on_line.dart
@@ -183,6 +183,13 @@ _NearestMulti? _nearestPointOnMultiLine(
183
}
184
185
/// Takes a [Point] and a [LineString] and calculates the closest Point on the [LineString].
186
+///
187
+/// The properties of returned [Point] will contain three values:
188
+/// * index: closest point was found on nth line part
189
+/// * dist: distance between [point] and the closest point on line
190
+/// * location: distance along the line between start and the closest point.
191
192
+/// Example:
193
/// ```dart
194
/// var line = LineString(
195
/// coordinates: [
0 commit comments