Skip to content

Commit

Permalink
add location accuracy = 3 in SubUrban roads
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon committed May 29, 2024
1 parent 3a0d580 commit c242b11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions anyway/backend_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class ResolutionCategories(Enum):
]

RESOLUTION_ACCURACY_VALUES: dict = {
ResolutionCategories.SUBURBAN_JUNCTION: [1, 4],
ResolutionCategories.SUBURBAN_ROAD: [1, 4],
ResolutionCategories.SUBURBAN_JUNCTION: [1, 3, 4],
ResolutionCategories.SUBURBAN_ROAD: [1, 3, 4],
ResolutionCategories.URBAN_JUNCTION: [1, 3],
ResolutionCategories.STREET: [1, 3],
}
Expand Down
6 changes: 3 additions & 3 deletions tests/test_infographics_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ def test_add_resolution_location_accuracy_filter(self):
actual = add_resolution_location_accuracy_filter(None, RC.STREET)
self.assertEqual({'location_accuracy': [1, 3]}, actual, "3")
actual = add_resolution_location_accuracy_filter(f, RC.SUBURBAN_JUNCTION)
self.assertEqual({'1': 1, 'location_accuracy': [1, 4]}, actual, "4")
self.assertEqual({'1': 1, 'location_accuracy': [1, 3, 4]}, actual, "4")
actual = add_resolution_location_accuracy_filter(None, RC.SUBURBAN_ROAD)
self.assertEqual({'location_accuracy': [1, 4]}, actual, "5"
self.assertEqual({'location_accuracy': [1, 3, 4]}, actual, "5"
)
actual = add_resolution_location_accuracy_filter(f, RC.SUBURBAN_JUNCTION)
self.assertEqual({'1': 1, 'location_accuracy': [1, 4]}, actual, "6",)
self.assertEqual({'1': 1, 'location_accuracy': [1, 3, 4]}, actual, "6",)
actual = add_resolution_location_accuracy_filter(None, RC.STREET)
self.assertEqual({'location_accuracy': [1, 3]}, actual, "7")
actual = add_resolution_location_accuracy_filter(f, RC.OTHER)
Expand Down

0 comments on commit c242b11

Please sign in to comment.