You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
testing that each UB North parking lot is within .5 miles of the center of its lot
testing that each UB North building is within .5 miles of the center of its building.
Test 1: Checking Names of Parking Lot
access tests/ directory
run: python osm_tests -lot_names
should see Found and Missing columns printed to the monitor with a list of lot names under either one depending if the lot names in the lot_data.json or lot_building_data.json file are also in parking_lots.txt. At the end of the test, a list of lot names are printed if there are lot names in parking_lots.txt but not in lot_data.json or lot_building_data.json.
Test 2: Checking Names of Buildings
access tests/ directory
run: python osm_tests -building_names
should see Found and Missing columns printed to the monitor with a list of building names under either one depending if the building names in the building_data.json or lot_building_data.json file are also in buildings.txt. At the end of the test, a list of building names are printed if there are building names in buildings.txt but not in building_data.json or lot_building_data.json.
Test 3: Checking Coordinate accuracy
access tests/ directory
run: python osm_tests -lot_coords
Should see Accurate, Inaccurate, and Missing columns printed to the monitor with a list of lot names under either column depending if the coordinates of each parking lot in lot_data.json or lot_building_data.json are within a half a mile from the center of the parking lot.
If you have the google maps key, this will increase accuracy. Create a file called google_api_key.txt and store your api key in the first line. It will query using the google maps api only when the python library Nominatim cannot find the parking lot.
Test 4: Checking Coordinate accuracy
access tests/ directory
run: python osm_tests -bulding_coords
Should see Accurate, Inaccurate, and Missing columns printed to the monitor with a list of building names under either column depending if the coordinates of each building in building_data.json or lot_building_data.json are within a half a mile from the center of the building.
If you have the google maps key, this will increase accuracy.
3.a) In tests/, create a file called google_api_key.txt and store your api key in the first line. It will query using the google maps api only when the python library Nominatim cannot find the building.
You can also run multiple tests in a single run, or run all of the tests using the -all argument.
Example 1: python osm_tests.py -lot_names -building_coords
Example 1: python osm_tests.py -all
The text was updated successfully, but these errors were encountered:
Tests should:
Task Tests:
Initially, there is data in
tests/test_data/parking_lots.txt
andtests/test_data/buildings.txt
.parking_lots.txt
contains all parking lots in UB North, manually taken from http://www.buffalo.edu/parking/parking-places.html. Similarly,buildings.txt
has all UB North buildings taken from http://www.buffalo.edu/administrative-services/managing-facilities/planning-designing-and-construction/building-profiles.html.You can run 4 different tests:
Test 1: Checking Names of Parking Lot
tests/
directorypython osm_tests -lot_names
lot_data.json
orlot_building_data.json
file are also inparking_lots.txt
. At the end of the test, a list of lot names are printed if there are lot names inparking_lots.txt
but not inlot_data.json
orlot_building_data.json
.Test 2: Checking Names of Buildings
tests/
directorypython osm_tests -building_names
building_data.json
orlot_building_data.json
file are also inbuildings.txt
. At the end of the test, a list of building names are printed if there are building names inbuildings.txt
but not inbuilding_data.json
orlot_building_data.json
.Test 3: Checking Coordinate accuracy
tests/
directorypython osm_tests -lot_coords
lot_data.json
orlot_building_data.json
are within a half a mile from the center of the parking lot.If you have the google maps key, this will increase accuracy. Create a file called google_api_key.txt and store your api key in the first line. It will query using the google maps api only when the python library Nominatim cannot find the parking lot.
Test 4: Checking Coordinate accuracy
tests/
directorypython osm_tests -bulding_coords
building_data.json
orlot_building_data.json
are within a half a mile from the center of the building.If you have the google maps key, this will increase accuracy.
3.a) In
tests/
, create a file calledgoogle_api_key.txt
and store your api key in the first line. It will query using the google maps api only when the python library Nominatim cannot find the building.You can also run multiple tests in a single run, or run all of the tests using the
-all
argument.Example 1:
python osm_tests.py -lot_names -building_coords
Example 1:
python osm_tests.py -all
The text was updated successfully, but these errors were encountered: