[{"data":1,"prerenderedAt":661},["ShallowReactive",2],{"content-ja-\u002Fapi":3},{"id":4,"title":5,"body":6,"description":654,"extension":655,"meta":656,"navigation":657,"path":658,"seo":659,"stem":12,"__hash__":660},"content_ja\u002Fapi.md","API",{"type":7,"value":8,"toc":636},"minimark",[9,13,21,28,100,121,127,227,230,363,371,382,425,437,443,480,487,575,578,581,604,610],[10,11,5],"h1",{"id":12},"api",[14,15,16,20],"p",{},[17,18,19],"code",{},"createLocalGovClient"," が返すクライアントの概要です。",[22,23,25],"h2",{"id":24},"createlocalgovclientoptions",[17,26,27],{},"createLocalGovClient(options)",[29,30,31,44],"table",{},[32,33,34],"thead",{},[35,36,37,41],"tr",{},[38,39,40],"th",{},"オプション",[38,42,43],{},"説明",[45,46,47,58,71,86],"tbody",{},[35,48,49,55],{},[50,51,52],"td",{},[17,53,54],{},"data",[50,56,57],{},"npm データセット（または同等オブジェクト）",[35,59,60,65],{},[50,61,62],{},[17,63,64],{},"url",[50,66,67,70],{},[17,68,69],{},"index.json"," の版付き URL",[35,72,73,78],{},[50,74,75],{},[17,76,77],{},"cache",[50,79,80,82,83],{},[17,81,64],{}," モードの localStorage キャッシュ。既定 ",[17,84,85],{},"true",[35,87,88,93],{},[50,89,90],{},[17,91,92],{},"cacheTtlSeconds",[50,94,95,96,99],{},"キャッシュ TTL（秒）。既定 ",[17,97,98],{},"31536000","（1 年）",[14,101,102,103,105,106,108,109,111,112,114,115,117,118,120],{},"どちらか一方が必須（",[17,104,54],{}," または ",[17,107,64],{},"）。両方指定は不可。",[17,110,77],{}," \u002F ",[17,113,92],{}," は ",[17,116,64],{}," モード向け（",[17,119,54],{}," では URL キャッシュに使わない）。",[22,122,124],{"id":123},"localgov",[17,125,126],{},"LocalGov",[29,128,129,141],{},[32,130,131],{},[35,132,133,136,139],{},[38,134,135],{},"フィールド",[38,137,138],{},"型",[38,140,43],{},[45,142,143,157,171,185,199,213],{},[35,144,145,149,154],{},[50,146,147],{},[17,148,17],{},[50,150,151],{},[17,152,153],{},"string",[50,155,156],{},"団体コード",[35,158,159,164,168],{},[50,160,161],{},[17,162,163],{},"name",[50,165,166],{},[17,167,153],{},[50,169,170],{},"名称",[35,172,173,178,182],{},[50,174,175],{},[17,176,177],{},"nameKana",[50,179,180],{},[17,181,153],{},[50,183,184],{},"半角カナ",[35,186,187,192,196],{},[50,188,189],{},[17,190,191],{},"prefectureCode",[50,193,194],{},[17,195,153],{},[50,197,198],{},"都道府県コード（2 桁）",[35,200,201,206,210],{},[50,202,203],{},[17,204,205],{},"prefectureName",[50,207,208],{},[17,209,153],{},[50,211,212],{},"都道府県名",[35,214,215,220,224],{},[50,216,217],{},[17,218,219],{},"prefectureNameKana",[50,221,222],{},[17,223,153],{},[50,225,226],{},"都道府県カナ",[22,228,229],{"id":229},"メソッド",[29,231,232,243],{},[32,233,234],{},[35,235,236,238,241],{},[38,237,229],{},[38,239,240],{},"戻り値",[38,242,43],{},[45,244,245,260,275,290,305,320,334,348],{},[35,246,247,252,257],{},[50,248,249],{},[17,250,251],{},"listPrefectures()",[50,253,254],{},[17,255,256],{},"LocalGov[]",[50,258,259],{},"全都道府県",[35,261,262,267,272],{},[50,263,264],{},[17,265,266],{},"getPrefectureByCode(code)",[50,268,269],{},[17,270,271],{},"LocalGov | null",[50,273,274],{},"都道府県コードで取得",[35,276,277,282,287],{},[50,278,279],{},[17,280,281],{},"getPrefectureCodeByName(name)",[50,283,284],{},[17,285,286],{},"string | null",[50,288,289],{},"正式名称から都道府県コード",[35,291,292,297,302],{},[50,293,294],{},[17,295,296],{},"listMunicipalitiesByPrefecture(pref, options?)",[50,298,299],{},[17,300,301],{},"Promise\u003CLocalGov[]>",[50,303,304],{},"県内の市区町村（遅延ロード）",[35,306,307,312,317],{},[50,308,309],{},[17,310,311],{},"getMunicipalityByCode(code)",[50,313,314],{},[17,315,316],{},"Promise\u003CLocalGov | null>",[50,318,319],{},"市区町村 6 桁で取得",[35,321,322,327,331],{},[50,323,324],{},[17,325,326],{},"getByCode(code)",[50,328,329],{},[17,330,316],{},[50,332,333],{},"2 桁 \u002F 6 桁を自動判定",[35,335,336,341,345],{},[50,337,338],{},[17,339,340],{},"searchByText(text, options?)",[50,342,343],{},[17,344,301],{},[50,346,347],{},"部分一致検索",[35,349,350,355,360],{},[50,351,352],{},[17,353,354],{},"getLocalGovCodeByName(name, options?)",[50,356,357],{},[17,358,359],{},"Promise\u003Cstring | null>",[50,361,362],{},"正式名称からコード",[364,365,367,370],"h3",{"id":366},"designatedcity-オプション",[17,368,369],{},"designatedCity"," オプション",[14,372,373,374,377,378,381],{},"政令指定都市の市本体 \u002F 行政区の出し分けです。既定は ",[17,375,376],{},"\"both\"","。東京特別区（",[17,379,380],{},"千代田区"," など）は対象外です。",[29,383,384,394],{},[32,385,386],{},[35,387,388,391],{},[38,389,390],{},"値",[38,392,393],{},"意味",[45,395,396,405,415],{},[35,397,398,402],{},[50,399,400],{},[17,401,376],{},[50,403,404],{},"市本体と区の両方（既定）",[35,406,407,412],{},[50,408,409],{},[17,410,411],{},"\"city\"",[50,413,414],{},"市本体のみ（行政区を除外）",[35,416,417,422],{},[50,418,419],{},[17,420,421],{},"\"ward\"",[50,423,424],{},"区のみ（市本体を除外）",[14,426,427,428,111,431,111,434],{},"適用 API: ",[17,429,430],{},"listMunicipalitiesByPrefecture",[17,432,433],{},"searchByText",[17,435,436],{},"getLocalGovCodeByName",[364,438,440,442],{"id":439},"listmunicipalitiesbyprefecture-の-options",[17,441,430],{}," の options",[29,444,445,459],{},[32,446,447],{},[35,448,449,452,454,457],{},[38,450,451],{},"キー",[38,453,138],{},[38,455,456],{},"既定",[38,458,43],{},[45,460,461],{},[35,462,463,467,472,477],{},[50,464,465],{},[17,466,369],{},[50,468,469],{},[17,470,471],{},"'both' | 'city' | 'ward'",[50,473,474],{},[17,475,476],{},"'both'",[50,478,479],{},"政令指定都市の市\u002F区フィルタ",[364,481,483,111,485,442],{"id":482},"searchbytext-getlocalgovcodebyname-の-options",[17,484,433],{},[17,486,436],{},[29,488,489,501],{},[32,490,491],{},[35,492,493,495,497,499],{},[38,494,451],{},[38,496,138],{},[38,498,456],{},[38,500,43],{},[45,502,503,520,540,559],{},[35,504,505,510,514,517],{},[50,506,507],{},[17,508,509],{},"prefecture",[50,511,512],{},[17,513,153],{},[50,515,516],{},"—",[50,518,519],{},"都道府県で絞り込み",[35,521,522,527,532,537],{},[50,523,524],{},[17,525,526],{},"target",[50,528,529],{},[17,530,531],{},"'all' | 'prefectures' | 'cities'",[50,533,534],{},[17,535,536],{},"'all'",[50,538,539],{},"検索対象",[35,541,542,547,552,556],{},[50,543,544],{},[17,545,546],{},"matchField",[50,548,549],{},[17,550,551],{},"'name' | 'nameKana' | 'both'",[50,553,554],{},[17,555,476],{},[50,557,558],{},"照合フィールド",[35,560,561,565,569,573],{},[50,562,563],{},[17,564,369],{},[50,566,567],{},[17,568,471],{},[50,570,571],{},[17,572,476],{},[50,574,479],{},[14,576,577],{},"文字列検索はひらがな／全角カナを半角カナへ正規化します。",[22,579,580],{"id":580},"エラーと空結果",[582,583,584,591,594],"ul",{},[585,586,587,588],"li",{},"スキーマ不一致・不正 JSON → ",[17,589,590],{},"LocalGovSchemaError",[585,592,593],{},"ネットワーク \u002F HTTP 失敗 → 通常の fetch エラー",[585,595,596,597,111,600,603],{},"見つからない・同名衝突 → ",[17,598,599],{},"null",[17,601,602],{},"[]","（throw しない）",[22,605,607,609],{"id":606},"url-モードのキャッシュ",[17,608,64],{}," モードのキャッシュ",[582,611,612,615,621,629],{},[585,613,614],{},"既定で取得ファイルを localStorage にキャッシュ（キーは URL）",[585,616,617,620],{},[17,618,619],{},"cache: false"," で無効化できる",[585,622,623,625,626,628],{},[17,624,92],{}," で TTL を秒単位で指定（既定 1 年 = ",[17,627,98],{},"）",[585,630,631,635],{},[632,633,634],"strong",{},"全国対象","の文字列検索で読み込んだ県別 JSON はメモリのみ（localStorage に書かない）",{"title":637,"searchDepth":638,"depth":638,"links":639},"",2,[640,641,642,651,652],{"id":24,"depth":638,"text":27},{"id":123,"depth":638,"text":126},{"id":229,"depth":638,"text":229,"children":643},[644,647,649],{"id":366,"depth":645,"text":646},3,"designatedCity オプション",{"id":439,"depth":645,"text":648},"listMunicipalitiesByPrefecture の options",{"id":482,"depth":645,"text":650},"searchByText \u002F getLocalGovCodeByName の options",{"id":580,"depth":638,"text":580},{"id":606,"depth":638,"text":653},"url モードのキャッシュ","LocalGovClient の公開メソッド","md",{},true,"\u002Fapi",{"title":5,"description":654},"x30hn3hK5-rXr-OT1t9VpwehSx2-VwtFpALqr7aMaOE",1786532354491]