Skip to content

Commit 4b56b97

Browse files
committed
src - Replace node.id with way.id in osm_xml export
1 parent be2f276 commit 4b56b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

overpy/format/osm_xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def dump(result, fp):
5959
fp.write('</node>\n')
6060

6161
for way in result.ways:
62-
fp.write('<way id="{0:d}"'.format(node.id))
62+
fp.write('<way id="{0:d}"'.format(way.id))
6363
if len(way.nodes) == 0 and len(way.tags) == 0:
6464
fp.write('/>\n')
6565
continue

0 commit comments

Comments
 (0)