Skip to content

Enable territory-aware address hints (with proper Hong Kong and Macao address formats) - #12704

Open
Vectorial1024 wants to merge 3 commits into
openstreetmap:developfrom
Vectorial1024:territorial_addressing
Open

Enable territory-aware address hints (with proper Hong Kong and Macao address formats)#12704
Vectorial1024 wants to merge 3 commits into
openstreetmap:developfrom
Vectorial1024:territorial_addressing

Conversation

@Vectorial1024

Copy link
Copy Markdown
Contributor

This supercedes the following PRs:

This fixes #10906.


While attempting to tackle #10906, I have previously attempted to "keep it fancy", which has been a grave mistake. the detection PR has nothing to confirm it is indeed working, and the format PR has no mechanism to demonstrate the updated formats. As such, both PRs could not be merged. I am deeply sorry about the undue progress blocking.


Territory Detection (10914)

As guided by #10899 (comment) , this PR enables the editor to look at the territory-level country code. It turns out the editor only looks at sovereign country codes to generate address format hints, which unfortunately means it omits the formats of Hong Kong and Macao, both non-sovereign and use their colonial address hint formats distinct from the suzerain PRC format.

Format Documentation (10907)

While reading #10899 (comment) , it is discovered that the editor does not currently know about Hong Kong's address format. Also, the Macao address format is inaccurate. Both should be documented/updated.

Address levels above "city" are removed because both are essentially city-states. Postcodes are omitted because both (Hong Kong, Macao) do not use them. Detailed indoor addresses are added owing to the dense urban development in both cities.


Pinging past participants and interested parties: @Kovoschiz , @k-yle , @matkoniecz , @novolife, @tyrasd

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.

Items in Hong Kong/Macau are wrongly getting Chinese address hints

1 participant