def build_bbox_response(self, nodes, ways, relations, bbox):

        # Create a new response element.
        osm = new_osm_response()

        # Add a <bounds> element.
        bb = ET.SubElement(osm, C.BOUNDS)
        (bb.attrib[C.MINLON], bb.attrib[C.MINLAT],
         bb.attrib[C.MAXLON], bb.attrib[C.MAXLAT]) = map(str, bbox)

        # Add nodes, ways and relations in that order.
        for n in nodes:
            n.build_response(osm)
        for w in ways:
            w.build_response(osm)
        for r in relations:
            r.build_response(osm)

        return osm
Return the contents of an object as a dict.
dataset/ETHPy150Open MapQuest/mapquest-osm-server/src/python/frontend/maphandler.py/MapHandler.build_bbox_response--crossover with--dataset/ETHPy150Open JoelBender/bacpypes/py27/bacpypes/bvll.py/RegisterForeignDevice.bvlpdu_contents