From 5a2bf4df51bab23f4674c40fd438e54e9df5a4f8 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny <matkoniecz@gmail.com> Date: Wed, 14 Aug 2024 10:49:23 +0200 Subject: [PATCH] follow linter here --- 4_show_data.py | 4 ++-- spatial_index.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/4_show_data.py b/4_show_data.py index 5c7fd98..ad76c3a 100644 --- a/4_show_data.py +++ b/4_show_data.py @@ -297,7 +297,7 @@ class ATPGivesTagsReportCreator: print(key, "ineligible for import", self.count_of_total_tag_mismatches[key], "mismatches") self.generate_potential_new_tags_listing() - #TODO: more complex - how to export it? if any export is worth here... + # TODO: more complex - how to export it? if any export is worth here... #with open("output/add_tags_" + atp_code + ".geojson", 'w') as f: # json.dump(serializing.generate_geojson_structure(self.shops_with_tags_to_be_added), f) self.generate_mismatching_website_listing() @@ -479,7 +479,7 @@ class MissingObjectsReportCreator: summary = 'here ATP shows object being present, which seems not mapped in OpenStreetMap (<a href="' + osm_location_link + '" target="_blank">OSM location</a>), tag list as suggested by ATP (should not be assumed to be directly usable in OSM):<br><br>' summary += tag_list_to_html(missing.atp_tags) outfile.write(leafleter.generator.get_marker(summary, missing.atp_center['lat'], missing.atp_center['lon'], color='blue')) - #would require finding matches + # would require finding matches #outfile.write(leafleter.generator.get_line(missing.atp_center['lat'], missing.atp_center['lon'], missing.osm_match_center['lat'], missing.osm_match_center['lon'], color = 'blue')) outfile.write(leafleter.generator.get_html_page_suffix()) diff --git a/spatial_index.py b/spatial_index.py index 918d497..1eff494 100644 --- a/spatial_index.py +++ b/spatial_index.py @@ -1,7 +1,7 @@ class SpatialIndex: def __init__(self, geo_data): self.ordered = sorted(geo_data, key=lambda x: x['center']['lon']) - + #def find_first_equal_or_greater_longitude(): def matching_entries(self, from_lon, to_lon, from_lat, to_lat):