1
0
Fork 0

follow linter here

This commit is contained in:
Mateusz Konieczny 2024-08-14 10:49:23 +02:00
parent 0a0e2dc359
commit 5a2bf4df51
2 changed files with 3 additions and 3 deletions

View file

@ -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())

View file

@ -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):