geolonia / normalize-japanese-addresses

オープンソースの住所正規化ライブラリ。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

住所の正規化エラー

miya0001 opened this issue · comments

#58 で追加したテストで発生するエラー

  ● 千葉県鎌ケ谷市中佐津間2丁目15-14-9

    Can't detect the city.

       95 | 
       96 |   if (!city) {
    >  97 |     throw new Error("Can't detect the city.")
          |           ^
       98 |   }
       99 | 
      100 |   // 町丁目以降の正規化

      at src/main.ts:97:11
      at step (src/main.ts:33:23)
      at Object.next (src/main.ts:14:53)
      at fulfilled (src/main.ts:5:58)

  ● 千葉県鎌ケ谷市東鎌ケ谷3丁目26-16

    Can't detect the city.

       95 | 
       96 |   if (!city) {
    >  97 |     throw new Error("Can't detect the city.")
          |           ^
       98 |   }
       99 | 
      100 |   // 町丁目以降の正規化

      at src/main.ts:97:11
      at step (src/main.ts:33:23)
      at Object.next (src/main.ts:14:53)
      at fulfilled (src/main.ts:5:58)

  ● 千葉県鎌ケ谷市道野辺本町1丁目3-1

    Can't detect the city.

       95 | 
       96 |   if (!city) {
    >  97 |     throw new Error("Can't detect the city.")
          |           ^
       98 |   }
       99 | 
      100 |   // 町丁目以降の正規化

      at src/main.ts:97:11
      at step (src/main.ts:33:23)
      at Object.next (src/main.ts:14:53)
      at fulfilled (src/main.ts:5:58)

Test Suites: 1 failed, 1 total
Tests:       3 failed, 6211 passed, 6214 total
Snapshots:   0 total
Time:        256.184 s, estimated 286 s

#51 と同じ問題だった。

#58 で解決したので閉じる