question: public String urlForPOISearch ( String tag , BoundingBox bb , int limit , int timeout ) { StringBuilder s = new StringBuilder ( ) ; s . append ( mService + "?data=" ) ; String sBB = "(" + bb . getLatSouth ( ) + "," + bb . getLonWest ( ) + "," + bb . getLatNorth ( ) + "," + bb . getLonEast ( ) + ")" ; String data = "[out:json][timeout:" + timeout + "];(" + "node[" + tag + "]" + sBB + ";" + "way[" + tag + "]" + sBB + ";" + "relation[" + tag + "]" + sBB + ";" + ");out qt center " + limit + " tags;" ; Log . d ( BonusPackHelper . LOG_TAG , "data=" + data ) ; s . append ( URLEncoder . encode ( data ) ) ; return s . toString ( ) ; }
target:  Build the URL to search for elements having a specific OSM Tag (key=value), within a bounding box.  Elements will be OSM nodes, ways and relations. Ways and relations will have no geometry, only their center. <br> Usage: urlForPOISearch("amenity=cinema", map.getBoundingBox(), 200, 30);<br>