Skip to content

Commit

Permalink
Fix expected value for geofabrik test
Browse files Browse the repository at this point in the history
Verified that base nominatim currently returns "India Street"
https://nominatim.openstreetmap.org/ui/search.html?q=41.8174476%2C+-71.3903767

returns

`India Street, Fox Point, Providence, Providence County, Rhode Island, 02906, United States Parking`
shankari authored Sep 22, 2024
1 parent 52adee2 commit 3f3ce90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emission/individual_tests/TestNominatim.py
Original file line number Diff line number Diff line change
@@ -116,9 +116,9 @@ def test_get_json_reverse(self):
#Testing reverse_geocode, which reverse geocodes from a lat and lon and returns only the display name.
def test_reverse_geocode(self):
NominatimTest.nominatim("geofabrik")
expected_result = "Portugal Parkway, Fox Point, Providence, Providence County, Rhode Island, 02906, United States"
expected_result = "India Street, Fox Point, Providence, Providence County, Rhode Island, 02906, United States"
actual_result = eco.Geocoder.reverse_geocode(41.8174476, -71.3903767)
self.assertEqual(expected_result, actual_result)

if __name__ == '__main__':
unittest.main()
unittest.main()

0 comments on commit 3f3ce90

Please sign in to comment.