-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* allow "1st St", tighten types * clean titles before matching * Match "A between B and C" * another test * natsort * bypass Google Maps geocoder for Manhattan grid * only use natsort for between * Add Manhattan prefix; down to 533 extended-grid * strip leading ?? * data update * look in source for Manhattan; 365 / 2038 * bugfix, split on ; * strip trivia (340 / 2011) * match "A at B, boro" (297 / 2010) * add some notes; with --use_network, at 296 / 1914 * get more precise about "and" detection; 296 / 1168 * more patterns * allow boro - str1 - str2; 296 / 1140, some bad ones here * allow dash in num pat; 296 / 1135 * match braced clauses; 245 / 1114 * fix space before colon: 237 / 1098 * more tests * update geocoding test data; stop pinning random500.csv * update lat-lon-to-ids.json * add test for 464848 * check for boundary on both sides of St * strip potentially-distracting addresses (238 / 1085) * update geocache * data update * update self-hosted-sizes * update tests
- Loading branch information
Showing
22 changed files
with
804 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from oldnyc.geocode.coders.extended_grid import parse_street_ave | ||
|
||
|
||
def test_parse_street_ave(): | ||
assert parse_street_ave("122nd St", "1st Ave") == ("1", "122") | ||
assert parse_street_ave("1st Ave", "122nd St") == ("1", "122") | ||
assert parse_street_ave("18th Street", "Avenue A") == ("A", "18") | ||
assert parse_street_ave("18th Street (West)", "4th Avenue") == ("4", "18") | ||
|
||
# 711722f | ||
assert parse_street_ave("9th Avenue", "23rd Street (West)") == ("9", "23") | ||
|
||
# 464848 | ||
assert parse_street_ave("West End Avenue", "106th Street") == ("11", "106") | ||
assert parse_street_ave("Stanley Court, corner West End Avenue", "106th Street") == ( | ||
"11", | ||
"106", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.