土壌図取得API(縮尺5万分の1):GetArea
- 公開日
- 更新日 2025-03-17
利用条件
概要
API名称
カテゴリー
説明
縮尺5万分の1農耕地包括土壌図
添付ファイル
ー
データの更新頻度
リクエスト
新URL
New!
https://api.wagri2.net/naro-api/maps/5_1SoilMap/GetArea?MaxLatitude={MaxLatitude}&MaxLongitude={MaxLongitude}&MinLatitude={MinLatitude}&MinLongitude={MinLongitude}
旧URL(2025年度末で終了予定)
https://api.wagri.net/API/Public/5_1SoilMap/GetArea?MaxLatitude={MaxLatitude}&MaxLongitude={MaxLongitude}&MinLatitude={MinLatitude}&MinLongitude={MinLongitude}
説明
指定した最大・最少緯度・経度の範囲に存在する縮尺5万分の1農耕地包括土壌図を取得する。
HTTPメソッド
パラメータ
URLデータ定義
農耕地包括土壌図取得:最大最小緯度経度指定
| 名称 | 値 | 型 | 値の説明 |
|---|---|---|---|
| MaxLatitude | 最大緯度 | number | Required |
| MaxLongitude | 最大経度 | number | Required |
| MinLatitude | 最小緯度 | number | Required |
| MinLongitude | 最小経度 | number | Required |
新呼出例
New!
https://api.wagri2.net/naro-api/maps/5_1SoilMap/GetArea?MaxLatitude=36.68777749&MaxLongitude=140.69167027&MinLatitude=35.68777777&MinLongitude=139.69167055
旧呼出例(2025年度末で終了予定)
GET https://api.wagri.net/API/Public/5_1SoilMap/GetArea?MaxLatitude={MaxLatitude}&MaxLongitude={MaxLongitude}&MinLatitude={MinLatitude}&MinLongitude={MinLongitude}
header X-Authorization:{アクセストークン}
レスポンス
レイアウト
レスポンスデータ定義
縮尺5万分の1農耕地包括土壌図返却用
| 名称 | 値 | 型 | 値の説明 |
|---|---|---|---|
| PrefectureCode | 県コード | string | |
| MunicipalityCode | 市区町村コード | string | |
| LandUse | 地目区分 | string, null | |
| InclusivenessSoilSmallName | 包括統群土壌名 | string, null | |
| SoilLargeCode | 群コード | string, null | |
| SoilMiddleCode | 亜群コード | string, null | |
| SoilSmallCode | 統群コード | string, null | |
| Prefecture | 県 | string, null | |
| CityTown | 市町 | string, null | |
| County | 郡 | string, null | |
| Municipality | 市区町村 | string, null | |
| Polygons | ポリゴン | array of Polygons |
レスポンス例
サンプルコードのレスポンスイメージ(抜粋)
[
[
{
"MunicipalityCode": "43206",
"LandUse": "田",
"InclusivenessSoilSmallName": "細粒質普通低地水田土",
"SoilLargeCode": "F1",
"SoilMiddleCode": "F1z1",
"SoilSmallCode": "F1z1t1",
"Prefecture": "熊本県",
"CityTown": null,
"County": null,
"Municipality": "玉名市",
"Polygons": [
{
"Coordinates": [
{
"Latitude": "32.880382768949758",
"Longitude": "130.54840384725989"
},
{
"Latitude": "32.879651159673401",
"Longitude": "130.54810886603147"
},
{
"Latitude": "32.879710852174213",
"Longitude": "130.54790993779352"
},
{
"Latitude": "32.879711121970843",
"Longitude": "130.54790901778705"
},
{
"Latitude": "32.879867689442449",
"Longitude": "130.54735539513558"
},
{
"Latitude": "32.880048789520139",
"Longitude": "130.54733207796309"
},
{
"Latitude": "32.880113716075293",
"Longitude": "130.5473237187648"
},
{
"Latitude": "32.882348986416737",
"Longitude": "130.54528803046838"
},
{
"Latitude": "32.882120875178394",
"Longitude": "130.54611143939147"
},
{
"Latitude": "32.882120223169906",
"Longitude": "130.54611378032683"
},
{
"Latitude": "32.881513181688099",
"Longitude": "130.54828155475008"
},
{
"Latitude": "32.881368125538707",
"Longitude": "130.54879953367171"
},
{
"Latitude": "32.880382768949758",
"Longitude": "130.54840384725989"
}
]
}
]
},
{
"MunicipalityCode": "43206",
"LandUse": "田",
"InclusivenessSoilSmallName": "細粒質普通低地水田土",
"SoilLargeCode": "F1",
"SoilMiddleCode": "F1z1",
"SoilSmallCode": "F1z1t1",
"Prefecture": "熊本県",
"CityTown": null,
"County": null,
"Municipality": "玉名市",
"Polygons": [
{
"Coordinates": [
{
"Latitude": "32.878790239578009",
"Longitude": "130.55271556946803"
},
{
"Latitude": "32.878425690393392",
"Longitude": "130.55258168739508"
},
{
"Latitude": "32.878653080375436",
"Longitude": "130.55175833018296"
},
{
"Latitude": "32.878785963301695",
"Longitude": "130.55127182573435"
},
{
"Latitude": "32.879622191610963",
"Longitude": "130.5482100793318"
},
{
"Latitude": "32.880353774807034",
"Longitude": "130.54850506145959"
},
{
"Latitude": "32.881339782505087",
"Longitude": "130.54890095381609"
},
{
"Latitude": "32.880457223821892",
"Longitude": "130.55206564831127"
},
{
"Latitude": "32.880009112330775",
"Longitude": "130.55367235909222"
},
{
"Latitude": "32.879169143741073",
"Longitude": "130.55298513765405"
},
{
"Latitude": "32.879168215640725",
"Longitude": "130.55298439121702"
},
{
"Latitude": "32.878926570504916",
"Longitude": "130.55279691494579"
},
{
"Latitude": "32.8789222537592",
"Longitude": "130.55279397236416"
},
{
"Latitude": "32.878797270477783",
"Longitude": "130.55271895721432"
},
{
"Latitude": "32.878790239578009",
"Longitude": "130.55271556946803"
}
]
}
]
},
{
"MunicipalityCode": "43206",
"LandUse": "田",
"InclusivenessSoilSmallName": "細粒質普通低地水田土",
"SoilLargeCode": "F1",
"SoilMiddleCode": "F1z1",
"SoilSmallCode": "F1z1t1",
"Prefecture": "熊本県",
"CityTown": null,
"County": null,
"Municipality": "玉名市",
"Polygons": [
{
"Coordinates": [
{
"Latitude": "32.877717985097071",
"Longitude": "130.55236399480268"
},
{
"Latitude": "32.876593501588985",
"Longitude": "130.55198088181234"
},
{
"Latitude": "32.876674092535438",
"Longitude": "130.55170229612426"
},
{
"Latitude": "32.87678637199361",
"Longitude": "130.5516648663407"
},
{
"Latitude": "32.877064791307262",
"Longitude": "130.55053582147107"
},
{
"Latitude": "32.877617824902799",
"Longitude": "130.5484760583235"
},
{
"Latitude": "32.877800915180231",
"Longitude": "130.54775365360837"
},
{
"Latitude": "32.878240242093653",
"Longitude": "130.54766167994271"
},
{
"Latitude": "32.878512601775306",
"Longitude": "130.54776778285697"
},
{
"Latitude": "32.879536840552909",
"Longitude": "130.54817586372528"
},
{
"Latitude": "32.878688232176287",
"Longitude": "130.55128268774598"
},
{
"Latitude": "32.878567355199408",
"Longitude": "130.55172519915874"
},
{
"Latitude": "32.878338861749207",
"Longitude": "130.55255256734728"
},
{
"Latitude": "32.877725636529007",
"Longitude": "130.55236612709521"
},
{
"Latitude": "32.87772278118149",
"Longitude": "130.55236534828242"
},
{
"Latitude": "32.877721529325264",
"Longitude": "130.55236497866093"
},
{
"Latitude": "32.877717985097071",
"Longitude": "130.55236399480268"
}
]
}
]
}
]
ステータスコード
| コード | 名称 | 値の説明 |
|---|---|---|
| 200 | OK | リクエストが成功しました。 |
| 400 | Bad Request | リクエストが不正です。 |
| 401 | Unauthorized | 認証情報が不正です。 |
| 403 | Forbidden | リソースのアクセスが禁止されています。 |
| 404 | Not Found | リソースが見つかりませんでした。 |
| 500 | Internal Server Error | サーバー内部でエラーが発生しました。 |
サンプルソースコード
プログラム記述例(WAGRI共通)
import requests
url = "https://api.wagri.net/API/Public/AgriculturalLand/SearchByCityCode"
payload = {
'CityCode': '432041'
}
headers = {
'X-Authorization': 'アクセストークン',
}
response = requests.get(url, headers=headers, params=payload)
print(response.text)
プログラム記述例(個別API)
Python(requestsモジュール)でのサンプルコード
パラメータ例:MaxLatitude=32.88 MaxLongitude=130.55 MinLatitude=32.878 MinLongitude=130.548
import requests
url = "https://api.wagri.net/API/Public/5_1SoilMap/GetArea"
payload = {
'MaxLatitude': '32.88',
'MaxLongitude': '130.55',
'MinLatitude': '32.8678',
'MinLongitude': '130.548'
}
headers = {
'X-Authorization': 'アクセストークン',
}
response = requests.get(url, headers=headers, params=payload)
print(response.text)

