public static boolean nodeOnWay(Coordinate node, Coordinate[] wayCoors) {
		LineIntersector lineIntersector = new RobustLineIntersector();
		for (int i = 1; i < wayCoors.length; i++) {
			Coordinate p0 = wayCoors[i - 1];
			Coordinate p1 = wayCoors[i];
			lineIntersector.computeIntersection(node, p0, p1);
			if (lineIntersector.hasIntersection()) {
				return true;
			}
		}
		return false;
	}