toWaypoints method

String toWaypoints()

Converts the list of LngLat objects to a semicolon-separated string of waypoints.

Returns a String where each LngLat is represented by its string representation, separated by semicolons.

Implementation

String toWaypoints() {
  return map(
    (lngLat) => lngLat.toString(),
  ).reduce((value, element) => "$value;$element");
}