class RoadPolyline extends MapPolyline implements RoadSegment {

	@Override
	@Pure
	public double getDistanceToEnd(double ratio) {
		if (ratio > 1) {
			return 0.;
		}
		final double segmentLength = getLength();
		if (ratio < 0) {
			return segmentLength;
		}
		return segmentLength - (ratio * segmentLength);
	}

	public  RoadPolyline();
	public  RoadPolyline(AttributeCollection attributeProvider);
	public  RoadPolyline(UUID id);
	public  RoadPolyline(UUID id, AttributeCollection attributeProvider);

}