From be5c616cc7430b77c9668b81e62416ac27a6a6af Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Tue, 18 Jun 2024 12:00:28 +0200 Subject: [PATCH] try to document use_nodecache.py --- examples/use_nodecache.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: