[osm] require name tag for formatted places
This commit is contained in:
@@ -607,7 +607,7 @@ class OSMAddressFormatter(object):
|
|||||||
except Exception:
|
except Exception:
|
||||||
return (), None
|
return (), None
|
||||||
|
|
||||||
if 'name' not in tags and not any((t.startswith('name:') for t in tags)):
|
if 'name' not in tags:
|
||||||
return (), None
|
return (), None
|
||||||
|
|
||||||
osm_components = self.components.osm_reverse_geocoded_components(latitude, longitude)
|
osm_components = self.components.osm_reverse_geocoded_components(latitude, longitude)
|
||||||
|
|||||||
Reference in New Issue
Block a user