def get(self, query, responseformat="<STR_LIT>", verbosity="<STR_LIT:body>", build=True):
<EOL>if build:<EOL><INDENT>full_query = self._construct_ql_query(<EOL>query, responseformat=responseformat, verbosity=verbosity<EOL>)<EOL><DEDENT>else:<EOL><INDENT>full_query = query<EOL><DEDENT>if self.debug:<EOL><INDENT>logging.getLogger().info(query)<EOL><DEDENT>r = self._get_from_overpass(full_query)<EOL>content_type = r.headers.get("<STR_LIT>")<EOL>if self.debug:<EOL><INDENT>print(content_type)<EOL><DEDENT>if content_type == "<STR_LIT>":<EOL><INDENT>result = []<EOL>reader = csv.reader(StringIO(r.text), delimiter="<STR_LIT:\t>")<EOL>for row in reader:<EOL><INDENT>result.append(row)<EOL><DEDENT>return result<EOL><DEDENT>elif content_type in ("<STR_LIT>", "<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>return r.text<EOL><DEDENT>elif content_type == "<STR_LIT:application/json>":<EOL><INDENT>response = json.loads(r.text)<EOL><DEDENT>if not build:<EOL><INDENT>return response<EOL><DEDENT>if "<STR_LIT>" not in response:<EOL><INDENT>raise UnknownOverpassError("<STR_LIT>")<EOL><DEDENT>overpass_remark = response.get("<STR_LIT>", None)<EOL>if overpass_remark and overpass_remark.startswith("<STR_LIT>"):<EOL><INDENT>raise ServerRuntimeError(overpass_remark)<EOL><DEDENT>if responseformat is not "<STR_LIT>":<EOL><INDENT>return response<EOL><DEDENT>return self._as_geojson(response["<STR_LIT>"])<EOL>
Pass in an Overpass query in Overpass QL.