isClosedWay static method

bool isClosedWay(
  1. List<ILatLong> latLongs
)

Find if this way is closed.

@return true if this way is closed, false otherwise.

Implementation

static bool isClosedWay(List<ILatLong> latLongs) {
  if (latLongs.length < 3) return false;
  return isNear(latLongs.first, latLongs.last);
}