Skip to content

Commit

Permalink
Add Advanced Display Options synonym of borough and suburb for postal…
Browse files Browse the repository at this point in the history
…_town
  • Loading branch information
Snuffy2 committed Jun 2, 2024
1 parent cc28017 commit c4d9ca6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ zone_name[driving, name_no_dupe[type(-, unclassified, category(-, highway))[cate
* `city`
* `city_clean`
* _`city` but removes "Township" and moves "City" to the end if it starts with "City of"_
* `postal_town`
* `postal_town` (Synonyms: `borough`, `suburb`)
* `state` (Synonym: `region`)
* `state_abbr`
* `county`
Expand Down
2 changes: 2 additions & 0 deletions custom_components/places/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@
"city": ATTR_CITY,
"city_clean": ATTR_CITY_CLEAN,
"postal_town": ATTR_POSTAL_TOWN,
"suburb": ATTR_POSTAL_TOWN,
"borough": ATTR_POSTAL_TOWN,
"region": ATTR_REGION,
"state": ATTR_REGION,
"state_abbr": ATTR_STATE_ABBR,
Expand Down

0 comments on commit c4d9ca6

Please sign in to comment.