#NEWLINE# def _filter_in_bbox( bbox , geodocs ) : #NEWLINE# #INDENT# 'Return the list of nodes that fall into the given bounding box.' #NEWLINE# ( w , s , e , n ) = map ( encode_coordinate , lat ) #NEWLINE# nodeset = set ( ) #NEWLINE# for gd in geodocs : #NEWLINE# #INDENT# for ( nid , lat , lon ) in gd . get_node_info ( ) : #NEWLINE# #INDENT# if ( ( w <= lon < e ) and ( s <= lat < n ) ) : #NEWLINE# #INDENT# nodeset . add ( nid ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return nodeset