request.setRatio(0.5f);
request.setLayerIds(new String[] {LAYER_ID});
// create a rectangle that overlaps 49 %
GeometryFactory factory = new GeometryFactory();
LinearRing half1 = factory.createLinearRing(new Coordinate[] {new Coordinate(0, 0), new Coordinate(1, 0),
new Coordinate(1, 0.49), new Coordinate(0, 0.49), new Coordinate(0, 0)});
Polygon polygon = factory.createPolygon(half1, null);
request.setLocation(converter.toDto(polygon));
// execute
SearchByLocationResponse response = (SearchByLocationResponse) dispatcher.execute(