Adding features to find public toilets and shopping streets #41
| @@ -70,6 +70,10 @@ class ShoppingManager: | |||||||
|         # First generate the clusters |         # First generate the clusters | ||||||
|         self.generate_clusters() |         self.generate_clusters() | ||||||
|  |  | ||||||
|  |         # Return empty list if no clusters were found | ||||||
|  |         if len(set(self.cluster_labels)) == 0 : | ||||||
|  |             return [] | ||||||
|  |  | ||||||
|         # Then generate the shopping locations |         # Then generate the shopping locations | ||||||
|         self.generate_shopping_locations() |         self.generate_shopping_locations() | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user