Api = OsmApi()
pp = pprint.PrettyPrinter(indent=4)
-min_lon, min_lat, max_lon, max_lat = 60.615948,56.803766,60.65337,56.820586
+min_lon, min_lat, max_lon, max_lat = 37.634090753,55.7350616076,37.6530593351,55.7373086289
def remove_duplicates(l):
return [dict(t) for t in {tuple(d.items()) for d in l}]
o['data']['tag'] != {}
and 'type' in o['data']['tag']
and (o['data']['tag']['type'] == 'boundary' or 'boundary' in o['data']['tag'])
- and 'name' in o['data']['tag'], objects))
+ and 'name' in o['data']['tag']
+ and 'район' in o['data']['tag']['name'], objects))
def describe_objects(min_lat, min_lon, max_lat, max_lon):
objects = get_objects_from_square(min_lon, min_lat, max_lon, max_lat)