catatom2osm.overpass module

Minimum Overpass API interface.

class catatom2osm.overpass.Query(search_area, output='xml', down=True, meta=True)[source]

Bases: object

Class for a query to Overpass.

add(*args)[source]

Add a statement to the query.

Use QL query statements without bbox or area clauses.

Example: node[“name”=”Berlin”]

download(filename, log=False)[source]

Download query results to filename.

get_url(server='http://overpass-api.de/api/interpreter?')[source]

Return the url for the query.

read()[source]

Return query results.

set_search_area(search_area)[source]

Set the area to search in.

It could be either the osm id of a named area or a bounding box (bottom, left, top, right) clause.