-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding unit field to USA #4235
Merged
Adding unit field to USA #4235
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,23 +2,23 @@ | |
"dataAddressFormats": [ | ||
{ | ||
"format": [ | ||
["housenumber", "street"], | ||
["housenumber", "street", "unit"], | ||
["city", "postcode"] | ||
] | ||
}, | ||
{ | ||
"countryCodes": ["gb"], | ||
"format": [ | ||
["housename"], | ||
["housenumber", "street"], | ||
["housenumber", "street", "unit"], | ||
["city", "postcode"] | ||
] | ||
}, | ||
{ | ||
"countryCodes": ["ie"], | ||
"format": [ | ||
["housename"], | ||
["housenumber", "street"], | ||
["housenumber", "street", "unit"], | ||
["city"], | ||
["postcode"] | ||
] | ||
|
@@ -31,46 +31,53 @@ | |
"pt", "se", "si", "sk", "sm", "va" | ||
], | ||
"format": [ | ||
["street", "housenumber"], | ||
["unit","street", "housenumber"], | ||
["postcode", "city"] | ||
] | ||
}, | ||
{ | ||
"countryCodes": ["fr", "lu", "mo"], | ||
"format": [ | ||
["housenumber", "street"], | ||
["unit","housenumber", "street"], | ||
["postcode", "city"] | ||
] | ||
}, | ||
{ | ||
"countryCodes": ["br"], | ||
"format": [ | ||
["street"], | ||
["street","unit"], | ||
["housenumber", "suburb"], | ||
["city", "postcode"] | ||
] | ||
}, | ||
{ | ||
"countryCodes": ["vn"], | ||
"format": [ | ||
["housenumber", "street"], | ||
["housenumber", "street","unit"], | ||
["subdistrict"], | ||
["district"], | ||
["city"], | ||
["province", "postcode"] | ||
] | ||
}, | ||
{ | ||
"countryCodes": ["au"], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can just combine this with |
||
"format": [ | ||
["housenumber", "street", "unit"], | ||
["city", "province", "postcode"] | ||
] | ||
}, | ||
{ | ||
"countryCodes": ["us"], | ||
"format": [ | ||
["housenumber", "street"], | ||
["housenumber", "street", "unit"], | ||
["city", "state", "postcode"] | ||
] | ||
}, | ||
{ | ||
"countryCodes": ["ca"], | ||
"format": [ | ||
["housenumber", "street"], | ||
["housenumber", "street","unit"], | ||
["city", "province", "postcode"] | ||
] | ||
}, | ||
|
@@ -79,7 +86,7 @@ | |
"format": [ | ||
["postcode", "city", "district"], | ||
["place", "street"], | ||
["housenumber", "floor"] | ||
["housenumber", "floor","unit"] | ||
] | ||
}, | ||
{ | ||
|
@@ -107,22 +114,22 @@ | |
"countryCodes": ["tr"], | ||
"format": [ | ||
["neighbourhood"], | ||
["street", "housenumber"], | ||
["street", "housenumber", "unit"], | ||
["postcode", "district", "city"] | ||
] | ||
}, | ||
{ | ||
"countryCodes": ["ua"], | ||
"format": [ | ||
["housenumber", "postcode"], | ||
["street"] | ||
["street", "unit"] | ||
] | ||
}, | ||
{ | ||
"countryCodes": ["cn"], | ||
"format": [ | ||
["postcode", "province"], | ||
["city"], | ||
["city", "unit"], | ||
["district"], | ||
["street", "housenumber"] | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t think we should include
addr:unit
in the Vietnam address format. There’s only one (mistaken) use of this tag in all of Vietnam, reflecting the fact that units aren’t numbered in that country. Floor numbers are sometimes given in addresses, but generally the smallest level of addressing is the building number.Addresses can be quite granular even without
addr:unit
, because theaddr:housenumber
andaddr:street
tags are both hierarchical. For example, this is the address of building 8, alley 251, lane 48, Nguyễn Khang street:addr:housenumber
can be even more complex, for example7/14/12/3/23
. On the other hand, some mappers prefer to put all the alley and lane numbers inaddr:street
so the map doesn’t look so cluttered, for example lane 19, Liễu Giai street.More information about Vietnam’s address formats:
https://vi.wikipedia.org/wiki/Địa_chỉ
https://youbianku.com/files/upu/VNM.pdf
http://vforum.vn/diendan/showthread.php?91066-Thon-Xom-Ap-Xa-Phuong-Huyen-Quan-Tinh-Thanh-Pho-trong-tieng-Anh-la-gi-khi-viet-dia-chi-nha
/ref #2252
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, thanks for the information, I removed it in #4242