[{"data":1,"prerenderedAt":669},["ShallowReactive",2],{"content-en-\u002Fapi":3},{"id":4,"title":5,"body":6,"description":662,"extension":663,"meta":664,"navigation":665,"path":666,"seo":667,"stem":12,"__hash__":668},"content_en\u002Fapi.md","API",{"type":7,"value":8,"toc":644},"minimark",[9,13,22,29,102,123,129,229,233,367,375,386,429,441,447,484,491,579,582,586,609,616],[10,11,5],"h1",{"id":12},"api",[14,15,16,17,21],"p",{},"Overview of the client returned by ",[18,19,20],"code",{},"createLocalGovClient",".",[23,24,26],"h2",{"id":25},"createlocalgovclientoptions",[18,27,28],{},"createLocalGovClient(options)",[30,31,32,45],"table",{},[33,34,35],"thead",{},[36,37,38,42],"tr",{},[39,40,41],"th",{},"Option",[39,43,44],{},"Description",[46,47,48,59,72,88],"tbody",{},[36,49,50,56],{},[51,52,53],"td",{},[18,54,55],{},"data",[51,57,58],{},"npm dataset (or equivalent object)",[36,60,61,66],{},[51,62,63],{},[18,64,65],{},"url",[51,67,68,69],{},"Versioned URL to ",[18,70,71],{},"index.json",[36,73,74,79],{},[51,75,76],{},[18,77,78],{},"cache",[51,80,81,82,84,85],{},"localStorage cache for ",[18,83,65],{}," mode. Default ",[18,86,87],{},"true",[36,89,90,95],{},[51,91,92],{},[18,93,94],{},"cacheTtlSeconds",[51,96,97,98,101],{},"Cache TTL in seconds. Default ",[18,99,100],{},"31536000"," (1 year)",[14,103,104,105,107,108,110,111,113,114,116,117,119,120,122],{},"Exactly one of ",[18,106,55],{}," or ",[18,109,65],{}," is required. ",[18,112,78],{}," \u002F ",[18,115,94],{}," apply to ",[18,118,65],{}," mode (unused for URL caching when using ",[18,121,55],{},").",[23,124,126],{"id":125},"localgov",[18,127,128],{},"LocalGov",[30,130,131,143],{},[33,132,133],{},[36,134,135,138,141],{},[39,136,137],{},"Field",[39,139,140],{},"Type",[39,142,44],{},[46,144,145,159,173,187,201,215],{},[36,146,147,151,156],{},[51,148,149],{},[18,150,18],{},[51,152,153],{},[18,154,155],{},"string",[51,157,158],{},"Entity code",[36,160,161,166,170],{},[51,162,163],{},[18,164,165],{},"name",[51,167,168],{},[18,169,155],{},[51,171,172],{},"Name",[36,174,175,180,184],{},[51,176,177],{},[18,178,179],{},"nameKana",[51,181,182],{},[18,183,155],{},[51,185,186],{},"Halfwidth kana",[36,188,189,194,198],{},[51,190,191],{},[18,192,193],{},"prefectureCode",[51,195,196],{},[18,197,155],{},[51,199,200],{},"Prefecture code (2 digits)",[36,202,203,208,212],{},[51,204,205],{},[18,206,207],{},"prefectureName",[51,209,210],{},[18,211,155],{},[51,213,214],{},"Prefecture name",[36,216,217,222,226],{},[51,218,219],{},[18,220,221],{},"prefectureNameKana",[51,223,224],{},[18,225,155],{},[51,227,228],{},"Prefecture kana",[23,230,232],{"id":231},"methods","Methods",[30,234,235,247],{},[33,236,237],{},[36,238,239,242,245],{},[39,240,241],{},"Method",[39,243,244],{},"Returns",[39,246,44],{},[46,248,249,264,279,294,309,324,338,352],{},[36,250,251,256,261],{},[51,252,253],{},[18,254,255],{},"listPrefectures()",[51,257,258],{},[18,259,260],{},"LocalGov[]",[51,262,263],{},"All prefectures",[36,265,266,271,276],{},[51,267,268],{},[18,269,270],{},"getPrefectureByCode(code)",[51,272,273],{},[18,274,275],{},"LocalGov | null",[51,277,278],{},"Lookup by prefecture code",[36,280,281,286,291],{},[51,282,283],{},[18,284,285],{},"getPrefectureCodeByName(name)",[51,287,288],{},[18,289,290],{},"string | null",[51,292,293],{},"Prefecture code from exact name",[36,295,296,301,306],{},[51,297,298],{},[18,299,300],{},"listMunicipalitiesByPrefecture(pref, options?)",[51,302,303],{},[18,304,305],{},"Promise\u003CLocalGov[]>",[51,307,308],{},"Municipalities in a prefecture (lazy)",[36,310,311,316,321],{},[51,312,313],{},[18,314,315],{},"getMunicipalityByCode(code)",[51,317,318],{},[18,319,320],{},"Promise\u003CLocalGov | null>",[51,322,323],{},"Lookup by 6-digit municipality code",[36,325,326,331,335],{},[51,327,328],{},[18,329,330],{},"getByCode(code)",[51,332,333],{},[18,334,320],{},[51,336,337],{},"Auto-detect 2-digit \u002F 6-digit",[36,339,340,345,349],{},[51,341,342],{},[18,343,344],{},"searchByText(text, options?)",[51,346,347],{},[18,348,305],{},[51,350,351],{},"Partial-match search",[36,353,354,359,364],{},[51,355,356],{},[18,357,358],{},"getLocalGovCodeByName(name, options?)",[51,360,361],{},[18,362,363],{},"Promise\u003Cstring | null>",[51,365,366],{},"Code from exact name",[368,369,371,374],"h3",{"id":370},"designatedcity-option",[18,372,373],{},"designatedCity"," option",[14,376,377,378,381,382,385],{},"Filters designated-city bodies vs administrative wards. Default is ",[18,379,380],{},"\"both\"",". Tokyo special wards (e.g. ",[18,383,384],{},"千代田区",") are not affected.",[30,387,388,398],{},[33,389,390],{},[36,391,392,395],{},[39,393,394],{},"Value",[39,396,397],{},"Meaning",[46,399,400,409,419],{},[36,401,402,406],{},[51,403,404],{},[18,405,380],{},[51,407,408],{},"City body and wards (default)",[36,410,411,416],{},[51,412,413],{},[18,414,415],{},"\"city\"",[51,417,418],{},"City body only (exclude wards)",[36,420,421,426],{},[51,422,423],{},[18,424,425],{},"\"ward\"",[51,427,428],{},"Wards only (exclude city bodies)",[14,430,431,432,113,435,113,438],{},"Applies to: ",[18,433,434],{},"listMunicipalitiesByPrefecture",[18,436,437],{},"searchByText",[18,439,440],{},"getLocalGovCodeByName",[368,442,444,446],{"id":443},"listmunicipalitiesbyprefecture-options",[18,445,434],{}," options",[30,448,449,463],{},[33,450,451],{},[36,452,453,456,458,461],{},[39,454,455],{},"Key",[39,457,140],{},[39,459,460],{},"Default",[39,462,44],{},[46,464,465],{},[36,466,467,471,476,481],{},[51,468,469],{},[18,470,373],{},[51,472,473],{},[18,474,475],{},"'both' | 'city' | 'ward'",[51,477,478],{},[18,479,480],{},"'both'",[51,482,483],{},"Designated-city body\u002Fward filter",[368,485,487,113,489,446],{"id":486},"searchbytext-getlocalgovcodebyname-options",[18,488,437],{},[18,490,440],{},[30,492,493,505],{},[33,494,495],{},[36,496,497,499,501,503],{},[39,498,455],{},[39,500,140],{},[39,502,460],{},[39,504,44],{},[46,506,507,524,544,563],{},[36,508,509,514,518,521],{},[51,510,511],{},[18,512,513],{},"prefecture",[51,515,516],{},[18,517,155],{},[51,519,520],{},"—",[51,522,523],{},"Filter by prefecture",[36,525,526,531,536,541],{},[51,527,528],{},[18,529,530],{},"target",[51,532,533],{},[18,534,535],{},"'all' | 'prefectures' | 'cities'",[51,537,538],{},[18,539,540],{},"'all'",[51,542,543],{},"Search target",[36,545,546,551,556,560],{},[51,547,548],{},[18,549,550],{},"matchField",[51,552,553],{},[18,554,555],{},"'name' | 'nameKana' | 'both'",[51,557,558],{},[18,559,480],{},[51,561,562],{},"Fields to match",[36,564,565,569,573,577],{},[51,566,567],{},[18,568,373],{},[51,570,571],{},[18,572,475],{},[51,574,575],{},[18,576,480],{},[51,578,483],{},[14,580,581],{},"String search normalizes hiragana \u002F fullwidth kana to halfwidth kana.",[23,583,585],{"id":584},"errors-and-empty-results","Errors and empty results",[587,588,589,596,599],"ul",{},[590,591,592,593],"li",{},"Schema mismatch \u002F invalid JSON → ",[18,594,595],{},"LocalGovSchemaError",[590,597,598],{},"Network \u002F HTTP failures → normal fetch errors",[590,600,601,602,113,605,608],{},"Missing or ambiguous results → ",[18,603,604],{},"null",[18,606,607],{},"[]"," (no throw)",[23,610,612,613,615],{"id":611},"caching-in-url-mode","Caching in ",[18,614,65],{}," mode",[587,617,618,621,627,636],{},[590,619,620],{},"By default, fetched files are cached in localStorage (key = URL)",[590,622,623,624],{},"Disable with ",[18,625,626],{},"cache: false",[590,628,629,630,632,633,635],{},"Set TTL with ",[18,631,94],{}," (seconds; default 1 year = ",[18,634,100],{},")",[590,637,638,639,643],{},"Municipality JSON loaded by ",[640,641,642],"strong",{},"nationwide"," string search stays in memory only",{"title":645,"searchDepth":646,"depth":646,"links":647},"",2,[648,649,650,659,660],{"id":25,"depth":646,"text":28},{"id":125,"depth":646,"text":128},{"id":231,"depth":646,"text":232,"children":651},[652,655,657],{"id":370,"depth":653,"text":654},3,"designatedCity option",{"id":443,"depth":653,"text":656},"listMunicipalitiesByPrefecture options",{"id":486,"depth":653,"text":658},"searchByText \u002F getLocalGovCodeByName options",{"id":584,"depth":646,"text":585},{"id":611,"depth":646,"text":661},"Caching in url mode","LocalGovClient public methods","md",{},true,"\u002Fapi",{"title":5,"description":662},"-GHvBnZFgFiX3GXDJPPdUsDMi_BwQqrIZop7DnQ0w1Q",1786532354413]