Closed Alexander-M-Waldman closed 7 years ago
Approach:
Filter using a strict filter dictionary of street names + a loose filter NotNoneDict for remaining parsed components in the street_intersection model.
Since the street_intersection model assigns the street with the lower street_code to street_1 and this may not be known from Passyunk, we need to try filtering again with reversed street_1 and street_2 attributes if the first attempt returns no results.
Depending on use case, we may want to limit results to 1 feature or keep multiple results.
If no results, then route to unmatched_response.
Passyunk recognizes 12th and market as type=intersection, but doesn't match a street code because this is done on the full street name. Therefore, AIS needs to handle intersection queries by querying the intersection table for the street name components.