@Test public void testBoundingBox() throws Exception { double lat1 = 1.0d; double lon1 = 2.0d; double lat2 = 3.0d; double lon2 = 4.0d; filterQuery.boundingBox(lat1, lon1, lat2, lon2); verify(builder).boundingBox(lat1, lon1, lat2, lon2); }
.amenity("parking") .tagNot("access", "private") .boundingBox( 47.48047027491862, 19.039797484874725, 47.51331674014172, 19.07404761761427 .amenity("parking") .tagNot("access", "private") .boundingBox( 47.48047027491862, 19.039797484874725, 47.51331674014172, 19.07404761761427 .amenity("parking") .tagNot("access", "private") .boundingBox( 47.48047027491862, 19.039797484874725, 47.51331674014172, 19.07404761761427
@Test public void testSimpleFilterQuery() throws Exception { String result = new OverpassQuery() .format(JSON) .timeout(30) .filterQuery() .node() .amenity("parking") .tagNot("access", "private") .boundingBox( 47.48047027491862, 19.039797484874725, 47.51331674014172, 19.07404761761427 ) .end() .output(OutputVerbosity.BODY, OutputModificator.CENTER, OutputOrder.QT, 100) .build() ; String expected = "[out:\"json\"][timeout:\"30\"]; (node[\"amenity\"=\"parking\"][\"access\"!=\"private\"](47.48047027491862,19.039797484874725,47.51331674014172,19.07404761761427);<;); out body center qt 100;"; assertEquals(expected, result); }
.amenity("parking") .tagNot("access", "private") .boundingBox( 47.48047027491862, 19.039797484874725, 47.51331674014172, 19.07404761761427