diff --git a/examples/use_nodecache.py b/examples/use_nodecache.py index 29984fe6..3e029777 100644 --- a/examples/use_nodecache.py +++ b/examples/use_nodecache.py @@ -1,3 +1,6 @@ +""" +Iterate over all ways (and ways only) using node cache to obtain geometries +""" import osmium as o import sys @@ -8,7 +11,7 @@ def __init__(self, idx): def way(self, w): for n in w.nodes: - loc = idx.get(n.ref) + loc = idx.get(n.ref) # note that cache is used here print("%d %s" % (w.id, len(w.nodes))) if len(sys.argv) != 3: