mirror of
https://codeberg.org/matkoniecz/list_how_openstreetmap_can_be_improved_with_alltheplaces_data.git
synced 2025-04-11 10:09:29 +02:00
follow linter here
This commit is contained in:
parent
0a0e2dc359
commit
5a2bf4df51
2 changed files with 3 additions and 3 deletions
|
@ -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())
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue