- API (データ&プログラム) -API(data&program)

統合農地データ取得API v3:GetFieldPolygon/{CityCode}

提供ベンダー:
システム名:
統合農地データ提供API
利用条件:
オプションAPI(WAGRI会員は無償:WEB申込が必要)

概要

API名称
統合農地データ取得API v3
説明

以下、統合農地データ提供API v3(バージョン3)の概要となります。

■ ID付与済の筆ポリゴン、農地ピン、土壌図を統合した農地情報をAPIで提供します。

■ 2023年度版の筆ポリゴンデータをベースとしています。筆ポリゴンIDなどの項目についても、農水省側の変更に準じて更新しています。

■ 従来は広範囲の土壌図データが格納されていましたが、v3では筆ポリゴンごとの、精度が高い土壌図データ(解像度10mのAI土壌図)が格納されています。

■ 農地ピンデータも最新版に更新されています。

■ GeoJson形式のデータが取得できます。また、zip形式でのダウンロードも可能です。

ご利用を希望される方は農研機構 農業情報研究センター(wagri@ml.affrc.go.jp)までご連絡をお願いいたします。

データの更新頻度
年1回程度
カテゴリー
添付ファイル

リクエスト

URL

https://api.wagri.net/API/Individual/NARO/AgriculturalMap3/GetFieldPolygon/{CityCode}

説明

ID付与済の筆ポリゴン、農地ピン、AI土壌図を統合した農地情報を、農研機構 農業情報研究センターが提供します。

HTTPメソッド
GET
パラメータ
名称 値の説明
CityCode 6桁の市区町村コード string 必須
呼出例

https://api.wagri.net/API/Individual/NARO/AgriculturalMap3/GetFieldPolygon/163210

レスポンス

レイアウト

(レスポンスデータ定義)お問い合わせください。別途ご提供いたします。独自JSON版となります。

レスポンス例

サンプルコードでのレスポンス(抜粋)

{
"targetFeatures": [
{
"geometry": {
"coordinates": [
[
[
137.30176793,
36.705335649
],
[
137.302826612,
36.705375825
],
[
137.302846286,
36.705165025
],
[
137.30177216,
36.70511235
]
]
],
"type": "LinearPolygon"
},
"type": "Feature",
"properties": {
"CityCode": "163210",
"IssueYear": "2022",
"SoilSmallCode": "F3a7t4",
"SoilSmallName": "粗粒質グライ化灰色低地土",
"History": "[{\"筆ポリゴンID\":\"d36e07ed-1203-4160-a56f-566c0ac38398\",\"更新年度\":2021,\"前年同一\":true},{\"筆ポリゴンID\":\"d36e07ed-1203-4160-a56f-566c0ac38398\",\"発生年度\":2020}]",
"PointLat": 36.705246729,
"FieldType": "100",
"SoilLargeCode": "F3",
"PrevLastPolygonUuid": null,
"PinInfo": [],
"Number": 0,
"PointLng": 137.302298431,
"LastPolygonUuid": "d36e07ed-1203-4160-a56f-566c0ac38398",
"SoilMiddleCode": "F3a7",
"ID": "ef5daaa6-f2cb-4bf2-87c5-195948759288",
"EditYear": "2020"
}
},
{
"geometry": {
"coordinates": [
[
[
137.301767507,
36.705094389
],
[
137.302845159,
36.705150105
],
[
137.302865191,
36.704901328
],
[
137.301789409,
36.704848607
]
]
],
"type": "LinearPolygon"
},
"type": "Feature",
"properties": {
"CityCode": "163210",
"IssueYear": "2022",
"SoilSmallCode": "F3a7t4",
"SoilSmallName": "粗粒質グライ化灰色低地土",
"History": "[{\"筆ポリゴンID\":\"3fd4d169-3fcd-4b7a-888b-5d2aa2a65094\",\"更新年度\":2021,\"前年同一\":true},{\"筆ポリゴンID\":\"3fd4d169-3fcd-4b7a-888b-5d2aa2a65094\",\"発生年度\":2020}]",
"PointLat": 36.704998701,
"FieldType": "100",
"SoilLargeCode": "F3",
"PrevLastPolygonUuid": null,
"PinInfo": [
{
"OwnerAssuranceStatusCode": "2",
"FarmerNumber": "3ecc3584c3ff68bec941bf9b6a116447",
"StartDuration": null,
"RightClassification": "賃借権等の設定がない",
"Address": "富山県舟橋村稲荷14",
"FarmlandRecommendedDate": null,
"OwnerAssurancePublicNoticeDate": null,
"AgriVibrationMethodClass": "農業振興地域内・農用地区域内",
"CityPlanningActClassCode": "0",
"FarmlandManagementStatus": "農地中間管理権が設定されていない",
"OwnerAssuranceStatus": "調査中",
"IntentionOwnerIdleAgriLandCode": "6",
"CityPlanningActClass": "設定なし",
"RightClassificationCode": "0",
"IntentionOwnerIdleAgriLand": "調査対象外",
"FarmlandManagementStatusCode": "0",
"AgriVibrationMethodClassCode": "1",
"IsIdleAgriculturalLandCode": "3",
"IntentionOwnerAgriLand": "非公表",
"MeasuresPublicNoticeDate": null,
"LandCategoryCode": "1",
"LandCategory": "田",
"EndDuration": null,
"UseIntentionSurveyData": null,
"DescriptiveStudyData": "2016-08-31",
"Area": 2887,
"IsIdleAgriculturalLand": "遊休農地ではない",
"MeasuresDate": null,
"AgricultureCommitteeName": "舟橋村農業委員会",
"IntentionOwnerAgriLandCode": "9",
"FarmlandArbitrationDate": null
}
],
"Number": 1,
"PointLng": 137.302317861,
"LastPolygonUuid": "3fd4d169-3fcd-4b7a-888b-5d2aa2a65094",
"SoilMiddleCode": "F3a7",
"ID": "35a72144-9963-4d7c-bfc5-0d73a0ce18f8",
"EditYear": "2020"
}
},
{
"geometry": {
"coordinates": [
[
[
137.306726698,
36.711562957
],
[
137.30697694,
36.711380981
],
[
137.306684803,
36.711430535
]
]
],
"type": "LinearPolygon"
},
"type": "Feature",
"properties": {
"CityCode": "163210",
"IssueYear": "2022",
"SoilSmallCode": "F3z1t2",
"SoilSmallName": "中粒質普通灰色低地土",
"History": "[{\"筆ポリゴンID\":\"25165792-31fa-4f45-a737-4cda50fe1b08\",\"更新年度\":2021,\"前年同一\":true},{\"筆ポリゴンID\":\"25165792-31fa-4f45-a737-4cda50fe1b08\",\"発生年度\":2020}]",
"PointLat": 36.711458158,
"FieldType": "100",
"SoilLargeCode": "F3",
"PrevLastPolygonUuid": null,
"PinInfo": [],
"Number": 0,
"PointLng": 137.306796147,
"LastPolygonUuid": "25165792-31fa-4f45-a737-4cda50fe1b08",
"SoilMiddleCode": "F3z1",
"ID": "d9f8be97-5df2-49f3-9fcf-d2c819e09b6b",
"EditYear": "2020"
}
},
ステータスコード
コード 名称 値の説明
400 Bad Request リクエストが不正です。
401 Unauthorized 認証情報が不正です。
403 Forbidden リソースのアクセスが禁止されています。
500 Internal Server Error サーバー内部でエラーが発生しました。

サンプルソースコード

ソースコード

Python(requestsモジュール)でのサンプルコード

import requests

url = "https://api.wagri.net/API/Individual/NARO/AgriculturalMap3/GetFieldPolygon/163210"

headers = {
  'X-Authorization': 'アクセストークン',
}

response = requests.get(url, headers=headers)

print(response.text)

 

前に戻る
上部へスクロール
Scroll to Top