private static GeoPrimitive polylineGon(final boolean isPolygon, final Geopoint start, final int lineWidth, final boolean filled, final int ... points) {

        return GeoPrimitive.builder().setType(isPolygon ? POLYGON : POLYLINE)
                .setStyle(GeoStyle.builder().setStrokeWidth((float) lineWidth).setFillColor(filled ? Color.BLACK : Color.TRANSPARENT).build())
                .addPoints(geopointList(start, points)).build();
    }
A fake bitmap provider used for testing touching routines
main/src/test/java/cgeo/geocaching/models/geoitem/GeoItemTest.java