土壌図取得API(縮尺5万分の1):Get
- 公開日
- 更新日 2025-03-17
利用条件
ベーシックAPI(申込不要)
概要
API名称
5_1SoilMap
カテゴリー
説明
縮尺5万分の1農耕地包括土壌図
添付ファイル
ー
データの更新頻度
元データの更新が発生した場合
リクエスト
新URL
New!
https://api.wagri2.net/naro-api/maps/5_1SoilMap/Get?Latitude={Latitude}&Longitude={Longitude}
旧URL(2025年度末で終了予定)
https://api.wagri.net/API/Public/5_1SoilMap/Get?Latitude={Latitude}&Longitude={Longitude}
説明
指定した緯度経度の点の範囲に存在する縮尺5万分の1農耕地包括土壌図を取得する。
HTTPメソッド
GET
パラメータ
URLデータ定義
農耕地包括土壌図取得:緯度経度指定
| 名称 | 値 | 型 | 値の説明 |
|---|---|---|---|
| Latitude | 緯度 | number | Required |
| Longitude | 経度 | number | Required |
新呼出例
New!
https://api.wagri2.net/naro-api/maps/5_1SoilMap/Get?Latitude=35.80769671&Longitude=139.09375353
旧呼出例(2025年度末で終了予定)
GET https://api.wagri.net/API/Public/5_1SoilMap/Get?Latitude={Latitude}&Longitude={Longitude}
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": "F1z1t2",
"Prefecture": "熊本県",
"CityTown": null,
"County": null,
"Municipality": "玉名市",
"Polygons": [
{
"Coordinates": [
{
"Latitude": "32.872541310233366",
"Longitude": "130.55236858044574"
},
{
"Latitude": "32.872508299718419",
"Longitude": "130.55235287828299"
},
{
"Latitude": "32.872508654051344",
"Longitude": "130.55245181899647"
},
{
"Latitude": "32.87234907385082",
"Longitude": "130.55237945864525"
},
{
"Latitude": "32.872192017147981",
"Longitude": "130.55230185434732"
},
{
"Latitude": "32.871577326932183",
"Longitude": "130.55202550707168"
},
{
"Latitude": "32.871291937872776",
"Longitude": "130.55186741794714"
},
{
"Latitude": "32.870823072726779",
"Longitude": "130.55163994882474"
},
{
"Latitude": "32.870331789280769",
"Longitude": "130.5513873535437"
},
{
"Latitude": "32.869677693470891",
"Longitude": "130.55106727493512"
},
{
"Latitude": "32.868957099990268",
"Longitude": "130.55073457883785"
},
{
"Latitude": "32.868490732261577",
"Longitude": "130.55050448729239"
},
{
"Latitude": "32.868275674682806",
"Longitude": "130.55039937273304"
},
{
"Latitude": "32.867657985227936",
"Longitude": "130.5500972922564"
},
{
"Latitude": "32.867151707385531",
"Longitude": "130.54985457063208"
},
{
"Latitude": "32.866781080582498",
"Longitude": "130.54969035082917"
},
{
"Latitude": "32.866187474972151",
"Longitude": "130.54942575769263"
},
{
"Latitude": "32.865827596866254",
"Longitude": "130.54924791406015"
},
{
"Latitude": "32.865738102631475",
"Longitude": "130.54922929899317"
},
{
"Latitude": "32.865718175453523",
"Longitude": "130.54923264941738"
},
{
"Latitude": "32.865745287315349",
"Longitude": "130.54911840179295"
},
{
"Latitude": "32.865871655552553",
"Longitude": "130.54858589971968"
},
{
"Latitude": "32.865901924034674",
"Longitude": "130.54850591401691"
},
{
"Latitude": "32.866106374109947",
"Longitude": "130.54806441254277"
},
{
"Latitude": "32.86612925466153",
"Longitude": "130.54801863345335"
},
{
"Latitude": "32.866873003886141",
"Longitude": "130.54629451707837"
},
{
"Latitude": "32.867181699775784",
"Longitude": "130.54563646245299"
},
{
"Latitude": "32.86803771946532",
"Longitude": "130.54476022780247"
},
{
"Latitude": "32.868509732238444",
"Longitude": "130.54427706838217"
},
{
"Latitude": "32.86898682438256",
"Longitude": "130.54406842386885"
},
{
"Latitude": "32.869120469484209",
"Longitude": "130.54400997737872"
},
{
"Latitude": "32.869177825996019",
"Longitude": "130.54401938788459"
},
{
"Latitude": "32.872414968975818",
"Longitude": "130.54396015853465"
},
{
"Latitude": "32.872705753068182",
"Longitude": "130.54392946916983"
},
{
"Latitude": "32.873856872696685",
"Longitude": "130.54392944308944"
},
{
"Latitude": "32.874983804159328",
"Longitude": "130.54394039863058"
},
{
"Latitude": "32.875320201865904",
"Longitude": "130.54394366856553"
},
{
"Latitude": "32.87529265203441",
"Longitude": "130.54403559276852"
},
{
"Latitude": "32.874876377443002",
"Longitude": "130.54542448325338"
},
{
"Latitude": "32.874651345483358",
"Longitude": "130.54618715511327"
},
{
"Latitude": "32.874648901126022",
"Longitude": "130.5461955161104"
},
{
"Latitude": "32.874059810112271",
"Longitude": "130.54821191035157"
},
{
"Latitude": "32.874053248658583",
"Longitude": "130.5482336919315"
},
{
"Latitude": "32.873035167539086",
"Longitude": "130.55161107159375"
},
{
"Latitude": "32.872803122666078",
"Longitude": "130.55234702459558"
},
{
"Latitude": "32.872737786919487",
"Longitude": "130.55236007825516"
},
{
"Latitude": "32.872600219424669",
"Longitude": "130.55238120332999"
},
{
"Latitude": "32.872541310233366",
"Longitude": "130.55236858044574"
}
]
}
]
}
]
ステータスコード
| コード | 名称 | 値の説明 |
|---|---|---|
| 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モジュール)でのサンプルコード
パラメータ例:Latitude=32.87245 Longitude=130.55100
import requests
url = "https://api.wagri.net/API/Public/5_1SoilMap/Get"
payload = {
'Latitude': '32.87245',
'Longitude': '130.55100'
}
headers = {
'X-Authorization': 'アクセストークン',
}
response = requests.get(url, headers=headers, params=payload)
print(response.text)

