| | 432 | /** |
| | 433 | * Searches for all primitives in the given bounding box |
| | 434 | * |
| | 435 | * @param bbox the bounding box |
| | 436 | * @return List of primitives in the given bbox. Can be empty but not null |
| | 437 | * @since xxx |
| | 438 | */ |
| | 439 | public List<OsmPrimitive> searchPrimitives(BBox bbox) { |
| | 440 | List<OsmPrimitive> primitiveList = new ArrayList<>(); |
| | 441 | primitiveList.addAll(searchNodes(bbox)); |
| | 442 | primitiveList.addAll(searchWays(bbox)); |
| | 443 | primitiveList.addAll(searchRelations(bbox)); |
| | 444 | return primitiveList; |
| | 445 | } |
| | 446 | |