From f38bb151e27405f14131b46066d9de91c7819995 Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 28 Jul 2016 23:53:55 -0400 Subject: [PATCH] [fix] var name --- scripts/geodata/osm/formatter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/geodata/osm/formatter.py b/scripts/geodata/osm/formatter.py index c44578ae..562d6cbc 100644 --- a/scripts/geodata/osm/formatter.py +++ b/scripts/geodata/osm/formatter.py @@ -865,8 +865,8 @@ class OSMAddressFormatter(object): for props, poly in iter(self.components.osm_admin_rtree): point = poly.context.representative_point() - lat = pt.y - lon = pt.x + lat = point.y + lon = point.x props['lat'] = lat props['lon'] = lon place_tags, country = self.node_place_tags(tags)