### GeoJSON Output Example Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xkt002 An example of the GeoJSON structure returned by the API for land use data. ```json { "type": "FeatureCollection", "name": "use_area", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::6668" } }, "features": [ { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [ 135.0843608379364, 34.72357697238161 ], [ 135.08666217327118, 34.72357697238161 ], [ 135.08791744709015, 34.7225011529618 ], [ 135.08791744709015, 34.72130627154192 ], [ 135.0877994298935, 34.72127540721742 ], [ 135.08776187896729, 34.72125336126426 ], [ 135.08774042129517, 34.72122249692002 ], [ 135.0877296924591, 34.72116076819694 ], [ 135.0877457857132, 34.72108581182839 ], [ 135.08776187896729, 34.721050538219686 ], [ 135.0878745317459, 34.72088298837279 ], [ 135.08786916732788, 34.72084330546457 ], [ 135.08777260780334, 34.720719847406144 ], [ 135.08774042129517, 34.7206537090847 ], [ 135.087708234787, 34.72053465997283 ], [ 135.08767068386078, 34.72045970303667 ], [ 135.0875848531723, 34.7203450628852 ], [ 135.0872039794922, 34.72027892426398 ], [ 135.08711278438568, 34.7201995578487 ], [ 135.0870269536972, 34.72015105611297 ], [ 135.08700549602509, 34.72013341911108 ], [ 135.08697867393494, 34.720080508082916 ], [ 135.0869518518448, 34.719948230364324 ], [ 135.08689284324646, 34.71989972848118 ], [ 135.08681774139404, 34.71982036170189 ], [ 135.08678555488586, 34.71975863193198 ], [ 135.08673191070557, 34.719802724629474 ], [ 135.08666217327118, 34.719824770969396 ], [ 135.0865924358368, 34.719763041202796 ], [ 135.0865924358368, 34.71973217630223 ], [ 135.08654415607452, 34.719613125863475 ], [ 135.08650124073029, 34.719542577374455 ], [ 135.0863939523697, 34.71941911737383 ], [ 135.0863617658615, 34.71934415942637 ] ] ] } } ] } ``` -------------------------------- ### Example JSON Output Structure Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xit002 This is an example of the gzip-encoded JSON response from the XIT002 API. It contains the status and a list of municipalities, each with an ID and a name. ```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": "小笠原村" } ] } ``` -------------------------------- ### Example GeoJSON Output Structure Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xpt002 This is an example of the GeoJSON structure returned by the XPT002 API. It includes feature collection, geometry, and properties for each land price point. ```json { "type": "FeatureCollection", "name": "land_prices", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::6668" } }, "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 141.34782314300537, 43.05932494785293 ] }, "properties": { "_id": "m88_MJsB2Vp85Hbxhd2_", "_index": "bi007_land_prices_2011-2025_202512181555", "location_number_ja": "大通西6丁目6番1", "area_division_name_ja": "市街化区域", "sewer_supply_availability": true, "city_code": "01101", "residence_display_name_ja": "", "side_road_name_ja": "側道", "u_road_distance_to_nearest_station_name_ja": "150m", "building_structure_name_ja": "SRC(鉄骨鉄筋 コンクリート造)", "proximity_to_transportation_facilitites": 0, "regulations_use_category_name_ja": "商業地域", "side_road_azimuth_name_ja": "西", "current_usage_status_of_surrounding_land_name_ja": "中高層事務所ビルが建ち並ぶ大通沿いの商業地域", "front_road_name_ja": "市区町村道", "u_ground_hierarchy_ja": "9F", "use_category_name_ja": "商業地" } } ] } ``` -------------------------------- ### GeoJSON Output Example Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xkt004 An example of the GeoJSON structure returned by the API, containing feature collection with polygon geometries and properties for elementary school districts. ```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" } ] } ``` -------------------------------- ### 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 junior high school districts. ```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 ] ] ] } } ] } ``` -------------------------------- ### GET /ex-api/external/XKT017 Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xkt017 国土数値情報(図書館)のGISデータを取得します。応答形式、ズームレベル、タイル座標、および行政区域コードを指定できます。 ```APIDOC ## GET /ex-api/external/XKT017 ### Description 国土数値情報(図書館)のGISデータを取得します。応答形式、ズームレベル、タイル座標、および行政区域コードを指定できます。 ### Method GET ### Endpoint https://www.reinfolib.mlit.go.jp/ex-api/external/XKT017 ### Parameters #### Query Parameters - **response_format** (string) - Required - 応答形式(GeoJSON応答/バイナリベクトルタイル応答)を設定。`geojson` または `pbf` を指定します。 - **z** (integer) - Required - XYZ方式における、ズームレベル(縮尺)を指定。13(大字)~15(詳細)で指定可能であり、値が大きいほどズームレベルは高くなります。 - **x** (integer) - Required - XYZ方式における、タイル座標のX値を指定。 - **y** (integer) - Required - XYZ方式における、タイル座標のY値を指定。 - **administrativeAreaCode** (string) - Optional - 行政区域コード。形式はNNNNN(数字5桁)。複数指定する場合は、カンマ区切りで指定します(例: `01101,13102`)。 ### Request Example ```bash curl -H "Ocp-Apim-Subscription-Key:{発行されたAPIキー}" "https://www.reinfolib.mlit.go.jp/ex-api/external/XKT017?response_format=geojson&z=13&x=7312&y=3007" ``` ### Response #### Success Response (200) - **type** (string) - GeoJSONのタイプ。 - **name** (string) - データセット名。 - **crs** (object) - 座標参照系情報。 - **features** (array) - 地物情報の配列。 - **type** (string) - 地物のタイプ。 - **geometry** (object) - 地物のジオメトリ情報。 - **properties** (object) - 地物のプロパティ情報。 - **P27_001** (string) - 行政区域コード。 - **P27_002** (string) - 公共施設大分類。 - **P27_003** (string) - 公共施設小分類。 - **P27_003_name_ja** (string) - 公共施設小分類名。 - **P27_004** (string) - 文化施設分類。 - **P27_004_name_ja** (string) - 文化施設分類名。 - **P27_005_ja** (string) - 名称。 - **P27_006_ja** (string) - 所在地。 - **P27_007** (integer) - 管理者コード。 - **P27_008** (integer) - 階数。 - **P27_009** (integer) - 建築年。 #### Response Example (GeoJSON) ```json { "type": "FeatureCollection", "name": "cultural_facility", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::4612" } }, "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 141.37158751487732, 43.100693029875 ] }, "properties": { "_id": "1OxpYI4BOPXZiuqjQvM1", "_index": "bs020_cultural_facility_202403211848", "P27_001": "01103", "P27_006_ja": "北30条東16-3-13", "P27_004_name_ja": "図書館", "P27_005_ja": "札幌市元町図書館", "P27_003_name_ja": "図書館", "P27_009": 1984, "P27_008": 2, "P27_007": 3, "P27_004": "03003", "P27_003": "03003", "P27_002": "3" } } ] } ``` ``` -------------------------------- ### GET /ex-api/external/XKT019 Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xkt019 国土数値情報(自然公園地域)のGISデータを取得します。応答形式、ズームレベル、タイル座標、都道府県コード、地区コードを指定できます。 ```APIDOC ## GET /ex-api/external/XKT019 ### Description 国土数値情報(自然公園地域)のGISデータを取得します。GeoJSONまたはバイナリベクトルタイル形式でデータを提供します。 ### Method GET ### Endpoint https://www.reinfolib.mlit.go.jp/ex-api/external/XKT019 ### Parameters #### Query Parameters - **response_format** (string) - Required - 応答形式(`geojson` または `pbf`)を指定します。 - **z** (integer) - Required - XYZ方式におけるズームレベル(縮尺)を指定します。9(都道府県)~15(詳細)で指定可能です。 - **x** (integer) - Required - XYZ方式におけるタイル座標のX値を指定します。 - **y** (integer) - Required - XYZ方式におけるタイル座標のY値を指定します。 - **prefectureCode** (string) - Optional - 都道府県コードを指定します。複数指定する場合はカンマ区切り(例: `9,11`)。 - **districtCode** (string) - Optional - 地区コードを指定します。複数指定する場合はカンマ区切り(例: `9,10`)。 ### Request Example ```bash curl -H "Ocp-Apim-Subscription-Key:{発行されたAPIキー}" "https://www.reinfolib.mlit.go.jp/ex-api/external/XKT019?response_format=geojson&z=14&x=14472&y=6371" ``` ### Response #### Success Response (200) - **type** (string) - GeoJSONのタイプ。 - **name** (string) - データセット名。 - **crs** (object) - 座標参照系情報。 - **features** (array) - 地物情報の配列。 - **type** (string) - 地物のタイプ(例: `Feature`)。 - **geometry** (object) - 地物のジオメトリ情報。 - **properties** (object) - 地物のプロパティ情報。 - **OBJECTID** (integer) - シェープID。 - **PREFEC_CD** (string) - 都道府県コード。 - **AREA_CD** (string) - 地区コード。 - **CTV_NAME** (string) - 市町村名。 - **FIS_YEAR** (string) - 年度。 - **THEMA_NO** (integer) - 主題番号。 - **LAYER_NO** (integer) - レイヤ番号。 - **AREA_SIZE** (number) - ポリゴン面積(ha)。 - **IOSIDE_DIV** (integer) - 内外区分。 - **REMARK_STR** (string) - 備考。 - **Shape_Leng** (number) - シェープの長さ。 - **Shape_Area** (number) - シェープの面積。 - **OBJ_NAME_ja** (string) - シェープ名。 #### Response Example (GeoJSON) ```json { "type": "FeatureCollection", "name": "natural_park_area", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::4612" } }, "features": [ { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [ [ 137.99048602581024, 37.10778646185726 ], [137.99293756484985, 37.10778646185726], [137.99277663230896, 37.107572554864305], [137.9927122592926, 37.107495548198955], [137.99253523349762, 37.10737148174012], [137.99220263957977, 37.10716612991334], [137.9919558763504, 37.107149017236], [137.9919022321701, 37.10711907004129], [137.99187004566193, 37.10708484466144], [137.99185395240784, 37.10701639385533], [137.99185395240784, 37.10695222116841], [137.99164474010468, 37.10682387563148], [137.99108147621155, 37.10717040808207], [137.99060940742493, 37.10763244888324], [137.99048602581024, 37.10778646185726] ] ] }, "properties": { "_id": "oOxlYI4BOPXZiuqjq6Iw", "_index": "bs017_natural_park_area_202403211842", "THEMA_NO": 1, "AREA_SIZE": 58143.5, "OBJ_NAME_ja": "久比岐自然公園地域", "LAYER_NO": 11, "PREFEC_CD": "15", "OBJECTID": 49165, "REMARK_STR": "", "Shape_Leng": 0.1893521398305893, "FIS_YEAR": "2002", "IOSIDE_DIV": 1, "Shape_Area": 0.0005896130460314453, "AREA_CD": "0", "CTV_NAME": "" } } ] } ``` ``` -------------------------------- ### GeoJSON Output Example Source: https://www.reinfolib.mlit.go.jp/help/apiManual/xkt027 An example of the GeoJSON structure returned by the API, containing feature collection with polygon geometries and properties like prefecture name and inundation depth. ```json { "type": "FeatureCollection", "name": "A49-21_24", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "A49_001": "三重県", "A49_002": "24", "A49_003": "5m以上10m未満" }, "geometry": { "type": "Polygon", "coordinates": [ [ [136.73892095148798, 34.5078728517301], [136.7390298485695, 34.507872193013746], [136.7390290527881, 34.50778204587488], [136.73892015582388, 34.50778270458902], [136.7388112588561, 34.50778336320611], [136.73870236188475, 34.50778402172615], [136.7385934649099, 34.50778468014914], [136.73848456793152, 34.50778533847507], [136.7383756709496, 34.50778599670395], [136.73826677396414, 34.507786654835776], [136.73815787697515, 34.50778731287055], [136.73815867181867, 34.50787746002705], [136.7380497747089, 34.507878117966975], [136.7380505694387, 34.50796826512434], [136.73805136417204, 34.508058412280356], [136.73794246682428, 34.508059070127636], [136.7379432614439, 34.50814921728452], [136.73794405606702, 34.508239364440044], [136.7378351584813, 34.50824002219467], [136.73783595299074, 34.508330169351055], [136.73783674750368, 34.50842031650609], [136.73772784967994, 34.50842097416806], [136.7377286440792, 34.508511121323956], [136.7376197461347, 34.50851177889108], [136.73762054042024, 34.508601926047824], [136.7376213347093, 34.50869207320322], [136.7376221290019, 34.50878222035726], [136.73773102729814, 34.50878156278352], [136.73783992559086, 34.50878090511272], [136.73784072012145, 34.50887105226102], [136.73794961852786, 34.50887039449096], [136.73795041317925, 34.5089605416357], [136.73805931169937, 34.50895988376638], [136.73816821021597, 34.508959225800005], [136.73827710872902, 34.50895856773656], [136.73827631372592, 34.508868420598446], [136.7383852121182, [136.7383852121182, 34.50886776253713] ] ] } } ] } ```