def _compare_with_osm(self, detected_nodes): comparator = OsmComparator(max_distance=self.max_distance) tag = Tag(key=self.configuration.DETECTION.key, value=self.configuration.DETECTION.value) return comparator.compare(detected_nodes=detected_nodes, tag=tag, bbox=self.bbox)
def test_comparator(node, roundabout_bbox, roundabout_tag): comparator = OsmComparator(max_distance=29) nodes = comparator.compare([node], roundabout_bbox, roundabout_tag) assert len(nodes) == 0
def _compare_with_osm(self, detected_nodes): comparator = OsmComparator(max_distance=self.max_distance) return comparator.compare(detected_nodes=detected_nodes, tag=self.configuration.tag, bbox=self.bbox)