Intersection locations without a city currently fail to parse (e.g., Mission St and Valencia St). Based on the regex pattern for intersection, this seems to be a bug, since place is optional, but a space beforeplace is required (indeed, Mission St and Valencia St parses as expected).
This changes the pattern to look for one or more spaces or the end of the string: ($|\W+).
Tests have been updated with examples of cityless intersections.
Intersection locations without a city currently fail to parse (e.g.,
Mission St and Valencia St
). Based on the regex pattern for intersection, this seems to be a bug, sinceplace
is optional, but a space beforeplace
is required (indeed,Mission St and Valencia St
parses as expected).This changes the pattern to look for one or more spaces or the end of the string:
($|\W+)
.Tests have been updated with examples of cityless intersections.