code: public void getAll(BoundingBox bounds, String search, Handler<Note> handler, int limit,
  					   int hideClosedNoteAfter)
  	{
  		if(limit <= 0 || limit > 10000)
  		{
  			throw new IllegalArgumentException("limit must be within 1 and 10000");
  		}
  		if(bounds.crosses180thMeridian())
  		{
  			throw new IllegalArgumentException("bounds may not cross the 180th meridian");
  		}
  
  		String searchQuery = "";
  		if(search != null && !search.isEmpty())
  		{
  			searchQuery = "&q=" + urlEncode(search);
  		}
  
  		final String call = NOTES + "?bbox=" + bounds.getAsLeftBottomRightTopString() +
  				searchQuery + "&limit=" + limit + "&closed=" + hideClosedNoteAfter;
  
  		try
  		{
  			osm.makeAuthenticatedRequest(call, null, new NotesParser(handler));
  		}
  		catch(OsmBadUserInputException e)
  		{
  			// we can be more specific here
  			throw new OsmQueryTooBigException(e);
  		}
  	}
docs: Retrieve those notes in the given area that match the given search string
  
  @param handler The handler which is fed the incoming notes
  @param bounds the area within the notes should be queried. This is usually limited at 25
  square degrees. Check the server capabilities.
  @param search what to search for. Null to return everything.
  @param limit number of entries returned at maximum. Any value between 1 and 10000
  @param hideClosedNoteAfter number of days until a closed note should not be shown anymore.
  -1 means that all notes should be returned, 0 that only open notes
  are returned.
  
  @throws OsmQueryTooBigException if the bounds area is too large
  @throws IllegalArgumentException if the bounds cross the 180th meridian
  @throws OsmAuthorizationException if not logged in