Skip to content

Adds support for state routes, county highways, etc.#41

Open
corwin-arkowl wants to merge 1 commit into
GreenBuildingRegistry:devfrom
corwin-arkowl:state-highways
Open

Adds support for state routes, county highways, etc.#41
corwin-arkowl wants to merge 1 commit into
GreenBuildingRegistry:devfrom
corwin-arkowl:state-highways

Conversation

@corwin-arkowl

Copy link
Copy Markdown

Street name pre-types like State Highway, County Road, etc were not being parsed correctly, because the street type constants did not cover them.

Closes #4

…reenBuildingRegistry#4

Multi-word StreetNamePreType values like "STATE ROUTE" and "COUNTY HIGHWAY"
were not present in STREET_TYPE_ABBREVIATIONS or LONGHAND_STREET_TYPES,
causing them to pass through un-abbreviated and raising a KeyError when
long_hand=True was used. Adds entries for state, county, and US highway
pre-types to both constants, and adds unit and integration tests covering
abbreviation and long-hand output for all new entries.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants