Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self):
osmium.SimpleHandler.__init__(self)
def __init__(self):
""" Class default constructor"""
osm.SimpleHandler.__init__(self)
self.elemtimeline = [] # Dictionnary of OSM elements
def __init__(self):
osm.SimpleHandler.__init__(self)
self.taggenome = []
def __init__(self):
osm.SimpleHandler.__init__(self)
self.ids = set()
# list of lists (node_id, lon, lat, version, visible, ts, uid, changesetid, ntags, tagkeys)
self.nodetimeline = []
def __init__(self):
osm.SimpleHandler.__init__(self)
self.ids = set()
# list of lists (way_id, version, visible, ts, uid, changesetid, nb_nodes, nids, nb_tags, tagkeys)
self.waytimeline = []
def __init__(self):
osm.SimpleHandler.__init__(self)
self.ids = set()
# list of lists (way_id, version, visible, ts, uid, changesetid, nb_members, mids, nb_tags, tagkeys)
self.relationtimeline = []
def __init__(self, conn):
osmium.SimpleHandler.__init__(self)
self.conn = conn
self.cursor = conn.cursor()
self.writeCount = 0
self.writeCountTotal = 0
self.blockStartTime = time.time()
self.startTime = time.time()
def __init__(self, extract_type='highway'):
"""Extract ways from OpenStreetMap PBF files."""
o.SimpleHandler.__init__(self)
self.ways = []
self.way_dict = {}
self.types = []
self.extract_type = extract_type
def __init__(self):
osmium.SimpleHandler.__init__(self)
self.users = {}
self.totals = {
'n': 0,
'w': 0,
'r': 0,
'f': datetime.now(timezone.utc),
'l': datetime.now(timezone.utc)}