Last active
March 11, 2021 03:29
-
-
Save matsubo/362f81cab22606657a9eae28714e5fdb to your computer and use it in GitHub Desktop.
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
% curl -s https://postcode.teraren.com/postcodes.json |jq -r '.[] | [.new, (.prefecture + .city + .suburb)] | @csv ' | head -n 10 | |
"0600000","北海道札幌市中央区" | |
"0640941","北海道札幌市中央区旭ケ丘" | |
"0600041","北海道札幌市中央区大通東" | |
"0600042","北海道札幌市中央区大通西(1〜19丁目)" | |
"0640820","北海道札幌市中央区大通西(20〜28丁目)" | |
"0600031","北海道札幌市中央区北一条東" | |
"0600001","北海道札幌市中央区北一条西(1〜19丁目)" | |
"0640821","北海道札幌市中央区北一条西(20〜28丁目)" | |
"0600032","北海道札幌市中央区北二条東" | |
"0600002","北海道札幌市中央区北二条西(1〜19丁目)" |
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
% curl -s https://postcode.teraren.com/postcodes.json|jq |head -n 20 | |
[ | |
{ | |
"jis": "01101", | |
"old": "060", | |
"new": "0600000", | |
"prefecture_kana": "ホッカイドウ", | |
"city_kana": "サッポロシチュウオウク", | |
"suburb_kana": "", | |
"prefecture": "北海道", | |
"city": "札幌市中央区", | |
"suburb": "", | |
"is_separated_suburb": 0, | |
"is_koaza": 0, | |
"is_chome": 0, | |
"is_include_area": 0, | |
"status": 0, | |
"reason": 0, | |
"url": "https://postcode.teraren.com/postcodes/0600000.json" | |
}, | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment