catatom2osm.overpass module

Minimum Overpass API interface.

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

Bases: object

Class for a query to Overpass.

add(*args)[fuente]

Add a statement to the query.

Use QL query statements without bbox or area clauses.

Example: node[«name»=»Berlin»]

download(filename, log=False)[fuente]

Download query results to filename.

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

Return the url for the query.

read()[fuente]

Return query results.

set_search_area(search_area)[fuente]

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.