### Example API Response (Gzip Encoded) Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xit002 This is an example of the JSON data returned by the XIT002 API. Note that the output is gzip encoded and will require decompression. ```json { "status": "OK", "data": [ { "id": "13101", "name": "千代田区" }, { "id": "13102", "name": "中央区" }, { "id": "13103", "name": "港区" }, { "id": "13104", "name": "新宿区" }, { "id": "13105", "name": "文京区" }, { "id": "13106", "name": "台東区" }, { "id": "13107", "name": "墨田区" }, { "id": "13108", "name": "江東区" }, { "id": "13109", "name": "品川区" }, { "id": "13110", "name": "目黒区" }, { "id": "13111", "name": "大田区" }, { "id": "13112", "name": "世田谷区" }, { "id": "13113", "name": "渋谷区" }, { "id": "13114", "name": "中野区" }, { "id": "13115", "name": "杉並区" }, { "id": "13116", "name": "豊島区" }, { "id": "13117", "name": "北区" }, { "id": "13118", "name": "荒川区" }, { "id": "13119", "name": "板橋区" }, { "id": "13120", "name": "練馬区" }, { "id": "13121", "name": "足立区" }, { "id": "13122", "name": "葛飾区" }, { "id": "13123", "name": "江戸川区" }, { "id": "13201", "name": "八王子市" }, { "id": "13202", "name": "立川市" }, { "id": "13203", "name": "武蔵野市" }, { "id": "13204", "name": "三鷹市" }, { "id": "13205", "name": "青梅市" }, { "id": "13206", "name": "府中市" }, { "id": "13207", "name": "昭島市" }, { "id": "13208", "name": "調布市" }, { "id": "13209", "name": "町田市" }, { "id": "13210", "name": "小金井市" }, { "id": "13211", "name": "小平市" }, { "id": "13212", "name": "日野市" }, { "id": "13213", "name": "東村山市" }, { "id": "13214", "name": "国分寺市" }, { "id": "13215", "name": "国立市" }, { "id": "13218", "name": "福生市" }, { "id": "13219", "name": "狛江市" }, { "id": "13220", "name": "東大和市" }, { "id": "13221", "name": "清瀬市" }, { "id": "13222", "name": "東久留米市" }, { "id": "13223", "name": "武蔵村山市" }, { "id": "13224", "name": "多摩市" }, { "id": "13225", "name": "稲城市" }, { "id": "13227", "name": "羽村市" }, { "id": "13228", "name": "あきる野市" }, { "id": "13229", "name": "西東京市" }, { "id": "13303", "name": "瑞穂町" }, { "id": "13305", "name": "日の出町" }, { "id": "13307", "name": "檜原村" }, { "id": "13308", "name": "奥多摩町" }, { "id": "13361", "name": "大島町" }, { "id": "13362", "name": "利島村" }, { "id": "13363", "name": "新島村" }, { "id": "13364", "name": "神津島村" }, { "id": "13381", "name": "三宅村" }, { "id": "13382", "name": "御蔵島村" }, { "id": "13401", "name": "八丈町" }, { "id": "13402", "name": "青ヶ島村" }, { "id": "13421", "name": "小笠原村" } ] } ``` -------------------------------- ### GeoJSON Output Example Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xkt007 This is an example of the GeoJSON data structure returned by the XKT007 API for preschools and kindergartens. It includes feature collections with geometry and properties for each facility. ```json { "type": "FeatureCollection", "name": "preschool", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::6668" } }, "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.6945309638977, 35.62252379134752 ] }, "properties": { "_id": "ATtiXpABrlAdLUL0hJcw", "_index": "bs006_preschool_202406281926", "schoolClassCode": 16011, "welfareFacilityClassCode": "", "welfareFacilityMiddleClassCode": "", "preSchoolName_ja": "目黒区立げっこうはらこども園", "schoolClassCode_name_ja": "幼稚園", "closeSchoolCode": 0, "location_ja": "東京都目黒区目黒本町4-15-3", "welfareFacilityMinorClassCode": "", "administratorCode": 3, "administrativeAreaCode": "13110", "schoolCode": "A113211000023" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.68969225883484, 35.62722436321202 ] }, "properties": { "_id": "LTtiXpABrlAdLUL0hJcw", "_index": "bs006_preschool_202406281926", "schoolClassCode": 16011, "welfareFacilityClassCode": "", "welfareFacilityMiddleClassCode": "", "preSchoolName_ja": "碑文谷教会付属幼稚園", "schoolClassCode_name_ja": "幼稚園", "closeSchoolCode": 0, "location_ja": "東京都目黒区中央町1-21-10", "welfareFacilityMinorClassCode": "", "administratorCode": 4, "administrativeAreaCode": "13110", "schoolCode": "A113311000094" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.698725938797, 35.63934951602535 ] }, "properties": { "_id": "LztiXpABrlAdLUL0hJcw", "_index": "bs006_preschool_202406281926", "schoolClassCode": 16011, "welfareFacilityClassCode": "", "welfareFacilityMiddleClassCode": "", "preSchoolName_ja": "恵泉バプテスト教会附属めぐみ幼稚園", "schoolClassCode_name_ja": "幼稚園", "closeSchoolCode": 0, "location_ja": "東京都目黒区中目黒3-13-29", "welfareFacilityMinorClassCode": "", "administratorCode": 4, "administrativeAreaCode": "13110", "schoolCode": "A113311000147" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.68393623828888, 35.628676339284326 ] }, "properties": { "_id": "MDtiXpABrlAdLUL0hJcw", "_index": "bs006_preschool_202406281926", "schoolClassCode": 16011, "welfareFacilityClassCode": "", "welfareFacilityMiddleClassCode": "", "preSchoolName_ja": "育英幼稚園", "schoolClassCode_name_ja": "幼稚園", "closeSchoolCode": 0, "location_ja": "東京都目黒区鷹番3-15-3", "welfareFacilityMinorClassCode": "", "administratorCode": 4, "administrativeAreaCode": "13110", "schoolCode": "A113311000156" } }, { "type": "Feature", "geometry": { "type": "Point", ``` -------------------------------- ### Evacuation Facility Data Example Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xgt001 This snippet shows an example of the data structure for an evacuation facility, including disaster preparedness flags, address, facility name, and capacity remarks. ```APIDOC ## Evacuation Facility Data ### Description This section details the properties of an individual evacuation facility record. ### Properties - **tsunami_flag** (boolean) - Indicates if the facility is prepared for tsunamis. - **earthquake_flag** (boolean) - Indicates if the facility is prepared for earthquakes. - **large_fire_flag** (boolean) - Indicates if the facility is prepared for large fires. - **landslide_flag** (boolean) - Indicates if the facility is prepared for landslides. - **flood_flag** (boolean) - Indicates if the facility is prepared for floods. - **same_address_flag** (boolean) - Indicates if multiple facilities share the same address. - **address_ja** (string) - The address of the facility in Japanese. - **prefecture_and_city** (string) - The prefecture and city of the facility in Japanese. - **inland_flooding_flag** (boolean) - Indicates if the facility is prepared for inland flooding. - **high_tide_flag** (boolean) - Indicates if the facility is prepared for high tides. - **facility_name_ja** (string) - The name of the facility in Japanese. - **remarks** (string) - Additional remarks about the facility, such as assumed capacity. - **common_id** (string) - A common identifier for the facility. ``` -------------------------------- ### GeoJSON Output Example Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xkt004 This is an example of the GeoJSON data structure returned by the XKT004 API, representing elementary school districts with their geometries and properties. ```json { "type": "FeatureCollection", "name": "elementary_school_district", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::6668" } }, "features": [ { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [ 140.63476860523224, 41.820475084977886 ], [ 140.64699947834015, 41.820475084977886 ], [ 140.64699947834015, 41.8176166178593 ], [ 140.64659178256989, 41.817512671196255 ], [ 140.64609825611115, 41.818504155573464 ], [ 140.64415097236633, 41.818000419461356 ], [ 140.6440544128418, 41.817968436082396 ], [ 140.64392030239105, 41.817964438158896 ], [ 140.6423431634903, 41.817468693711106 ], [ 140.64232170581818, 41.817428714152925 ], [ 140.64181745052338, 41.81721282410754 ], [ 140.64082503318787, 41.816849007754826 ], [ 140.640669465065, 41.81678104183345 ], [ 140.6398218870163, 41.81645720321751 ], [ 140.63884556293488, 41.817120870719066 ], [ 140.63843250274658, 41.81738473661011 ], [ 140.6380569934845, 41.81764060552683 ], [ 140.6387597322464, 41.81804839449987 ], [ 140.6387060880661, 41.81810436533277 ], [ 140.63840568065643, 41.81848816401177 ], [ 140.63818037509918, 41.81887595825745 ], [ 140.63803553581238, 41.81915980616532 ], [ 140.63763320446014, 41.819187791102166 ], [ 140.637064576149, 41.819263750154875 ], [ 140.6367427110672, 41.819327715603066 ], [ 140.63629746437073, 41.819455646307745 ], [ 140.63586831092834, 41.81961555932918 ], [ 140.63546061515808, 41.81983943688837 ], [ 140.6352996826172, 41.81994737757472 ], [ 140.63485980033875, 41.820371142954514 ], [ 140.6347954273224, 41.820439105065816 ], [ 140.63476860523224, 41.820475084977886 ] ] ] }, "properties": { "_id": "9TD2XZABrlAdLUL0qhl_", "_index": "bs003_elementary_school_district_202406281727", "A27_003": "B101223600051", "A27_004_ja": "上磯小学校", "A27_001": "01236", "A27_002": "北斗市立", "A27_005": "北斗市中野通200" } }, { "type": "Feature", ``` -------------------------------- ### Example API Response (Gzip Encoded JSON) Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xit001 This is an example of the JSON data structure returned by the API. Note that the actual output is gzip encoded and will require decoding. ```json { "status": "OK", "data": [ { "PriceCategory": "不動産取引価格情報", "Type": "宅地(土地と建物)", "Region": "商業地", "MunicipalityCode": "13102", "Prefecture": "東京都", "Municipality": "中央区", "DistrictName": "日本橋小網町", "TradePrice": "85000000", "PricePerUnit": "", "FloorPlan": "", "Area": "80", "UnitPrice": "", "LandShape": "不整形", "Frontage": "6", "TotalFloorArea": "240", "BuildingYear": "1972年", "Structure": "RC", "Use": "事務所", "Purpose": "事務所", "Direction": "北西", "Classification": "区道", "Breadth": "8", "CityPlanning": "商業地域", "CoverageRatio": "80", "FloorAreaRatio": "500", "Period": "2015年第2四半期", "Renovation": "", "Remarks": "", "DistrictCode": "131020170" } ] } ``` -------------------------------- ### GeoJSON Output Example Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xkt031 This is an example of the GeoJSON data structure returned by the XKT031 API for densely inhabited districts. It includes feature collection, geometry, and properties of the districts. ```json { "type": "FeatureCollection", "name": "densely_inhabited_district", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::6668" } }, "features": [ { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 130.95428466796875, 33.72505352836079 ], [ 130.98535537719727, 33.72505352836079 ], [ 130.98552703857422, 33.72462520910534 ], [ 130.98604202270508, 33.72462520910534 ], [ 130.98587036132812, 33.72433966174761 ], [ 130.98535537719727, 33.72448243554521 ], [ 130.9844970703125, 33.72405411343989 ], [ 130.98398208618164, 33.723197462817026 ], [ 130.98260879516602, 33.72391133892981 ], [ 130.98278045654297, 33.72476798242798 ], [ 130.98209381103516, 33.72476798242798 ], [ 130.98140716552734, 33.72433966174761 ], [ 130.98175048828125, 33.72348301397459 ], [ 130.98209381103516, 33.72362578919716 ], [ 130.98260879516602, 33.722198026284715 ], [ 130.98140716552734, 33.722483580767076 ], [ 130.98106384277344, 33.72205524868731 ], [ 130.98140716552734, 33.721198578115704 ], [ 130.9822654724121, 33.721198578115704 ], [ 130.9841537475586, 33.721198578115704 ], [ 130.98432540893555, 33.722198026284715 ], [ 130.98758697509766, 33.72176969278003 ], [ 130.9870719909668, 33.72062745965172 ], [ 130.98604202270508, 33.72077023962393 ], [ 130.98587036132812, 33.72005633738809 ], [ 130.98587036132812, 33.7197707748314 ], [ 130.9874153137207, 33.7197707748314 ], [ 130.98810195922852, 33.72034189899486 ], [ 130.98827362060547, 33.72005633738809 ], [ 130.98793029785156, 33.71862851510572 ] ] ] ] } } ] } ``` -------------------------------- ### Get GeoJSON Data using cURL Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xgt001 Example command to retrieve designated emergency evacuation site data in GeoJSON format using cURL. Replace '{発行されたAPIキー}' with your actual API key. The output is redirected to a file named XGT001.geojson. ```bash curl -H "Ocp-Apim-Subscription-Key:{発行されたAPIキー}" "https://www.reinfolib.mlit.go.jp/ex-api/external/XGT001?response_format=geojson&z=11&x=1786&y=816" > XGT001.geojson ``` -------------------------------- ### GeoJSON Output Example Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xkt018 This is an example of the GeoJSON data structure returned by the XKT018 API, containing features with geometry and properties for municipal facilities. ```json { "type": "FeatureCollection", "name": "city_town_hall", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::6668" } }, "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.72753286361694, 35.65108487698778 ] }, "properties": { "_id": "Jtq7X44BOPXZiuqj8cK_", "_index": "bs009_city_town_hall_202403211538", "P05_004_ja": "港区南麻布4-6-7", "P05_003_ja": "ありすいきいきプラザ", "P05_001": "13103", "P05_002": "5", "P05_002_name_ja": "集会施設" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.74303603172302, 35.65394434712738 ] }, "properties": { "_id": "J9q7X44BOPXZiuqj8cK_", "_index": "bs009_city_town_hall_202403211538", "P05_004_ja": "港区三田1-4-10", "P05_003_ja": "みなと保健所", "P05_001": "13103", "P05_002": "3", "P05_002_name_ja": "上記以外の行政サービス施設" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.73410427570343, 35.64195655419458 ] }, "properties": { "_id": "Kdq7X44BOPXZiuqj8cK_", "_index": "bs009_city_town_hall_202403211538", "P05_004_ja": "港区高輪1-16-25", "P05_003_ja": "高輪区民センター", "P05_001": "13103", "P05_002": "5", "P05_002_name_ja": "集会施設" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.7340828180313, 35.64195655419458 ] }, "properties": { "_id": "Ktq7X44BOPXZiuqj8cK_", "_index": "bs009_city_town_hall_202403211538", "P05_004_ja": "港区高輪1-16-25", "P05_003_ja": "高輪地区総合支所", "P05_001": "13103", "P05_002": "2", "P05_002_name_ja": "支所、出張所、連絡所" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.74521398544312, 35.64704831655176 ] }, "properties": { "_id": "MNq7X44BOPXZiuqj8cK_", "_index": "bs009_city_town_hall_202403211538", "P05_004_ja": "港区芝5-36-4", "P05_003_ja": "三田図書館", "P05_001": "13103", "P05_002": "5", "P05_002_name_ja": "集会施設" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.73508596420288, 35.651468470390526 ] }, "properties": { "_id": "Stq7X44BOPXZiuqj8cK_", "_index": "bs009_city_town_hall_202403211538", "P05_004_ja": "港区南麻布1-5-26", "P05_003_ja": "南麻布いきいきプラザ", "P05_001": "13103", "P05_002": "5", "P05_002_name_ja": "集会施設" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.73100364208221, 35.64489917903694 ] }, "properties": { "_id": "S9q7X44BOPXZiuqj8cK_", "_index": "bs009_city_town_hall_202403211538", "P05_004_ja": "港区白金3-10-12", "P05_003_ja": "白金いきいきプラザ", "P05_001": "13103", "P05_002": "5", "P05_002_name_ja": "集会施設" } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.7408902645111, 35.65690396526452 ] }, "properties": { "_id": "Tdq7X44BOPXZiuqj8cK_", "_index": "bs009_city_town_hall_202403211538", "P05_004_ja": "港区東麻布2-16-11", "P05_003_ja": "飯倉いきいきプラザ", "P05_001": "13103", "P05_002": "5", "P05_002_name_ja": "集会施設" } } ] } ``` -------------------------------- ### Preschool/Kindergarten Data Example Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xkt007 This is an example of a data entry for a preschool or kindergarten, formatted as a GeoJSON Feature. It includes geometric information (Point coordinates) and properties such as the facility name and address. ```json { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.6870744228363, 35.62838856233829 ] }, "properties": { "_id": "VDtiXpABrlAdLUL0lPjY", "_index": "bs006_preschool_202406281926", "welfareFacilityClassCode": "05", "welfareFacilityMiddleClassCode": "0504", "preSchoolName_ja": "鷹番保育園", "location_ja": "鷹番2-16-15", "welfareFacilityMinorClassCode": "050401", "administratorCode": 3, "administrativeAreaCode": "13110", "schoolCode": "" } } ``` ```json { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.68853890895844, 35.62290752185818 ] }, "properties": { "_id": "bDtiXpABrlAdLUL0lPjY", "_index": "bs006_preschool_202406281926", "welfareFacilityClassCode": "05", "welfareFacilityMiddleClassCode": "0504", "preSchoolName_ja": "ここいく保育園碑文谷", "location_ja": "碑文谷2-8-2", "welfareFacilityMinorClassCode": "050401", "administratorCode": 4, "administrativeAreaCode": "13110", "schoolCode": "" } } ``` ```json { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.6951961517334, 35.62524038931076 ] }, "properties": { "_id": "bjtiXpABrlAdLUL0lPjY", "_index": "bs006_preschool_202406281926", "welfareFacilityClassCode": "05", "welfareFacilityMiddleClassCode": "0504", "preSchoolName_ja": "第二ひもんや保育園", "location_ja": "目黒本町2-25-14", "welfareFacilityMinorClassCode": "050401", "administratorCode": 3, "administrativeAreaCode": "13110", "schoolCode": "" } } ``` ```json { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.69522833824158, 35.6252273080008 ] }, "properties": { "_id": "bztiXpABrlAdLUL0lPjY", "_index": "bs006_preschool_202406281926", "welfareFacilityClassCode": "05", "welfareFacilityMiddleClassCode": "0504", "preSchoolName_ja": "目黒本町保育園", "location_ja": "目黒本町2-1-20", "welfareFacilityMinorClassCode": "050401", "administratorCode": 3, "administrativeAreaCode": "13110", "schoolCode": "" } } ``` ```json { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 139.69432711601257, 35.627058670572524 ] }, "properties": { "_id": "cjtiXpABrlAdLUL0lPjY", "_index": "bs006_preschool_202406281926", "welfareFacilityClassCode": "05", "welfareFacilityMiddleClassCode": "0504", "preSchoolName_ja": "まなびの森保育園学芸大学前", "location_ja": "目黒本町1-16-17", "welfareFacilityMinorClassCode": "050401", "administratorCode": 4, "administrativeAreaCode": "13110", "schoolCode": "" } } ``` -------------------------------- ### Disaster Type Code Example Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xst001 Example of a disaster type code within a JSON structure. This is part of the data payload for the disaster history API. ```json { "disastertype_code": "12" } } ``` -------------------------------- ### GeoJSON Output Example Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xkt005 This is an example of the GeoJSON data structure returned by the API, representing a 'FeatureCollection' with polygon coordinates for a junior high school district. ```json { "type": "FeatureCollection", "name": "junior_high_school_district", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::6668" } }, "features": [ { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [ 139.81198489665985, 35.30638328050776 ], [ 139.81198489665985, 35.315729253544575 ], [ 139.81318652629852, 35.316009397189916 ], [ 139.81340110301971, 35.3160750557164 ], [ 139.81340110301971, 35.315917475163246 ], [ 139.81360495090485, 35.31513832236041 ], [ 139.81481730937958, 35.3153571862654 ], [ 139.81549322605133, 35.31549288158905 ], [ 139.81542885303497, 35.3157161217874 ], [ 139.8157560825348, 35.31579053504991 ], [ 139.81560051441193, 35.316355198163876 ], [ 139.81592774391174, 35.316425233624116 ], [ 139.81611549854279, 35.31584306201752 ], [ 139.81642127037048, 35.31591309792128 ], [ 139.81652855873108, 35.31567672650306 ], [ 139.81749415397644, 35.315882457220866 ], [ 139.81826663017273, 35.3160925646478 ], [ 139.81804132461548, 35.316801673183804 ], [ 139.81825590133667, 35.31685857668572 ], [ 139.81850266456604, 35.31615822310677 ], [ 139.81961846351624, 35.31644711969298 ], [ 139.819575548172, 35.31662220803089 ], [ 139.81976866722107, 35.31665722565296 ], [ 139.81976330280304, 35.31667035725734 ], [ 139.8208737373352, 35.31695049764268 ], [ 139.82197880744934, 35.31693298889704 ], [ 139.8224240541458, 35.31683669072818 ], [ 139.82306241989136, 35.31671850645513 ], [ 139.8235023021698, 35.31662658523446 ], [ 139.8240065574646, 35.31676665562425 ], [ 139.8247092962265, 35.31704679567602 ], [ 139.82473075389862, 35.3169242345228 ], [ 139.82537984848022, 35.31710369900547 ], [ 139.82603430747986, 35.31738821505208 ], [ 139.83401119709015, 35.31738821505208 ], [ 139.83401119709015, 35.29941358987375 ] ] ] } } ] } ```