Skip to content
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

郵便番号によって途切れてレスポンスが返ってくる #11

Open
Taishikun0721 opened this issue Jun 28, 2021 · 1 comment

Comments

@Taishikun0721
Copy link

現在、javascriptの住所補完のAPIを使用させていただいているのですが、↓の郵便番号を検索した場合に住所が足りない部分があります。

107-6090

で叩くと

赤坂赤坂アークヒルズ・アーク森ビ

となって返ってきます。
正しくは

赤坂赤坂アークヒルズ・アーク森ビル

です。
ルがないだけで申し訳ないんですが
修正していただけると非常に助かります!
よろしくお願いします!!🙇‍♂️

curl https://madefor.github.io/postal-code-api/api/v1/107/6090.json
{"code":"1076090","data":[{"prefcode":"13","ja":{"prefecture":"東京都","address1":"港区","address2":"赤坂赤坂アークヒルズ・アーク森ビ","address3":"","address4":""},"en":{"prefecture":"Tokyo","address1":"Minato-ku","address2":"Akasaka Akasakaakuhiruzu.akumoribir","address3":"","address4":""}}]}
@matsubo
Copy link

matsubo commented Dec 24, 2021

ワークアラウンドですが、別サービスであればちゃんと返ってきますね。

% curl -s https://postcode.teraren.com/postcodes/1076090.json | jq                                                                                                                                                                                                                  Fri Dec 24 08:41:54 2021
{
  "postcode_type": "area",
  "jis": "13103",
  "old": "107",
  "new": "1076090",
  "prefecture_kana": "トウキョウト",
  "city_kana": "ミナトク",
  "suburb_kana": "アカサカアカサカアークヒルズ・アークモリビル",
  "prefecture": "東京都",
  "city": "港区",
  "suburb": "赤坂赤坂アークヒルズ・アーク森ビル",
  "street_address": null,
  "office": null,
  "office_kana": null,
  "post_type": null,
  "is_separated_suburb": 0,
  "is_koaza": 0,
  "is_chome": 0,
  "is_include_area": 0,
  "status": 0,
  "reason": 0,
  "created_at": "2021-12-21T00:00:16.000Z",
  "updated_at": "2021-12-21T00:00:16.000Z"
}

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

No branches or pull requests

2 participants