Back to top

Faarmis Engine

รูปแปลงการเกษตร

Services สำหรับค้นหารูปแปลงกิจกรรมการเกษตร แสดงผลลัพธ์ในรูปแบบมาตรฐาน GeoJson โดยมี attributes ที่สำคัญดังนี้

ค้นหาด้วยรหัสเกษตรกร

ค้นหาด้วยรหัสเกษตรกร
GET/farmer/{id}/activity{?year}

Example URI

GET https://geo-utils.faarm.in.th/farmer/5817360/activity?year=2563
URI Parameters
HideShow
id
number (required) Example: 5817360

รหัสของเกษตรกร profile_center_id ตามกำหนดของกรมส่งเสริมการเกษตร

year
number (optional) Example: 2563

ปี พ.ศ. ของแปลงกิจกรรมการเกษตรที่ต้องการค้นหา หากไม่ระบุจะแสดงทั้งหมด

Response  200
HideShow
Headers
Content-Type: application/vnd.geo+json
Body
{
    "type": "FeatureCollection",
    "features": [
        {
            "type": "Feature",
            "geometry": {
                "type": "Polygon",
                "coordinates": [
                    [
                        [
                            101.21794894648471,
                            6.338492321351813
                        ],
                        [
                            101.217985347218,
                            6.338352788067262
                        ],
                        [
                            101.2185430774872,
                            6.336119117684087
                        ],
                        [
                            101.21901020145614,
                            6.334207844392377
                        ],
                        [
                            101.21892634511747,
                            6.334197322837402
                        ],
                        [
                            101.21794143010008,
                            6.334073738770587
                        ],
                        [
                            101.21699063488126,
                            6.338318897386358
                        ],
                        [
                            101.21707294397878,
                            6.3383337927020245
                        ],
                        [
                            101.21794894648471,
                            6.338492321351813
                        ]
                    ]
                ]
            },
            "properties": {
                ...
            }
        }
    ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "FeatureCollection"
      ]
    },
    "features": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Feature"
            ]
          },
          "geometry": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "Point",
                  "LineString",
                  "Polygon",
                  "MultiPolygon"
                ]
              },
              "coordinates": {}
            },
            "required": [
              "type",
              "coordinates"
            ],
            "additionalProperties": false
          },
          "properties": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "parcel/น.ส.4",
                  "parcel/สปก.4"
                ]
              },
              "areaLocal": {
                "type": "object",
                "properties": {},
                "additionalProperties": false,
                "description": "ขนาดพื้นที่ในรูปแบบ ไร่ งาน ตารางวา"
              },
              "area": {
                "type": "number",
                "enum": [
                  268
                ],
                "description": "ขนาดพื้นที่ตามเอกสารสิทธิ์ ตารางเมตร"
              },
              "address": {
                "type": "object",
                "properties": {
                  "province": {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          ""
                        ],
                        "description": "รหัสที่กำหนดโดยระบบ"
                      },
                      "display": {
                        "type": "string",
                        "enum": [
                          ""
                        ],
                        "description": "ข้อความแสดงความหมายของรหัส"
                      }
                    },
                    "required": [
                      "code",
                      "display"
                    ],
                    "additionalProperties": false,
                    "description": "ข้อมูลจังหวัดในรูปแบบรหัส"
                  },
                  "district": {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          ""
                        ],
                        "description": "รหัสที่กำหนดโดยระบบ"
                      },
                      "display": {
                        "type": "string",
                        "enum": [
                          ""
                        ],
                        "description": "ข้อความแสดงความหมายของรหัส"
                      }
                    },
                    "required": [
                      "code",
                      "display"
                    ],
                    "additionalProperties": false,
                    "description": "ข้อมูลอำเภอในรูปแบบรหัส"
                  },
                  "subDistrict": {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          ""
                        ],
                        "description": "รหัสที่กำหนดโดยระบบ"
                      },
                      "display": {
                        "type": "string",
                        "enum": [
                          ""
                        ],
                        "description": "ข้อความแสดงความหมายของรหัส"
                      }
                    },
                    "required": [
                      "code",
                      "display"
                    ],
                    "additionalProperties": false,
                    "description": "ข้อมูลตำบลในรูปแบบรหัส"
                  },
                  "text": {
                    "type": "string",
                    "enum": [
                      "อ.เมืองขอนแก่น จ.ขอนแก่น"
                    ],
                    "description": "ข้อมูลที่อยู่ในรูปแบบข้อความ"
                  }
                },
                "required": [
                  "province",
                  "district",
                  "subDistrict",
                  "text"
                ],
                "additionalProperties": false,
                "description": "ที่ตั้งตามเอกสารสิทธิ์"
              }
            },
            "required": [
              "type",
              "areaLocal",
              "area",
              "address"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "type",
          "geometry",
          "properties"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "type",
    "features"
  ]
}
Response  404
HideShow
Headers
Content-Type: application/json
Body
{
  "code": "404",
  "display": "ไม่พบข้อมูลที่ค้นหา"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "รหัสที่กำหนดโดยระบบ"
    },
    "display": {
      "type": "string",
      "description": "ข้อความแสดงความหมายของรหัส"
    }
  }
}

เอกสารสิทธิ์

Services ค้นหาข้อมูลและรูปแปลงตามเอกสารสิทธิ์ แสดงผลลัพธ์ในรูปแบบมาตรฐาน GeoJson โดยมี attributes ที่สำคัญดังนี้

  • geometry ข้อมูลรูปแปลงตามเอกสารสิทธิ์

  • properties ข้อมูลอื่นๆตามเอกสารสิทธิ์

ส.ป.ก.

ส.ป.ก.
GET/parcel/arlo/{province}/{plang}/{rawang}

Example URI

GET https://geo-utils.faarm.in.th/parcel/arlo/95/1/11
URI Parameters
HideShow
province
string (required) Example: 95

รหัสจังหวัด

plang
number (required) Example: 1

แปลง

rawang
number (required) Example: 11

ระวาง

Response  200
HideShow
Headers
Content-Type: application/vnd.geo+json
Body
{
  "type": "Feature",
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          101.21794894648471,
          6.338492321351813
        ],
        [
          101.217985347218,
          6.338352788067262
        ],
        [
          101.2185430774872,
          6.336119117684087
        ],
        [
          101.21901020145614,
          6.334207844392377
        ],
        [
          101.21892634511747,
          6.334197322837402
        ],
        [
          101.21794143010008,
          6.334073738770587
        ],
        [
          101.21699063488126,
          6.338318897386358
        ],
        [
          101.21707294397878,
          6.3383337927020245
        ],
        [
          101.21794894648471,
          6.338492321351813
        ]
      ]
    ]
  },
  "properties": {
    "type": "parcel/สปก.4-01",
    "plang": "1",
    "rawang": "11",
    "areaLocale": {
      "locale": "TH",
      "rai": 34,
      "ngan": 0,
      "squareWa": 86
    },
    "area": 54744,
    "address": {
      "province": {
        "code": "95",
        "name": "ยะลา"
      },
      "district": {
        "code": "9505",
        "name": "ยะหา"
      },
      "subDistrict": {
        "code": "950503",
        "name": "ปะแต"
      },
      "display": "ต.ปะแต อ.ยะหา จ.ยะลา"
    }
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "Feature"
      ]
    },
    "geometry": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Point",
            "LineString",
            "Polygon",
            "MultiPolygon"
          ]
        },
        "coordinates": {}
      },
      "required": [
        "type",
        "coordinates"
      ]
    },
    "properties": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "parcel/น.ส.4",
            "parcel/สปก.4"
          ]
        },
        "areaLocal": {
          "type": "object",
          "properties": {},
          "description": "ขนาดพื้นที่ในรูปแบบ ไร่ งาน ตารางวา"
        },
        "area": {
          "type": "number",
          "description": "ขนาดพื้นที่ตามเอกสารสิทธิ์ ตารางเมตร"
        },
        "address": {
          "type": "object",
          "properties": {
            "province": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "รหัสที่กำหนดโดยระบบ"
                },
                "display": {
                  "type": "string",
                  "description": "ข้อความแสดงความหมายของรหัส"
                }
              },
              "description": "ข้อมูลจังหวัดในรูปแบบรหัส"
            },
            "district": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "รหัสที่กำหนดโดยระบบ"
                },
                "display": {
                  "type": "string",
                  "description": "ข้อความแสดงความหมายของรหัส"
                }
              },
              "description": "ข้อมูลอำเภอในรูปแบบรหัส"
            },
            "subDistrict": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "รหัสที่กำหนดโดยระบบ"
                },
                "display": {
                  "type": "string",
                  "description": "ข้อความแสดงความหมายของรหัส"
                }
              },
              "description": "ข้อมูลตำบลในรูปแบบรหัส"
            },
            "text": {
              "type": "string",
              "description": "ข้อมูลที่อยู่ในรูปแบบข้อความ"
            }
          },
          "required": [
            "text"
          ],
          "description": "ที่ตั้งตามเอกสารสิทธิ์"
        }
      },
      "required": [
        "type",
        "area"
      ]
    }
  },
  "required": [
    "type",
    "geometry",
    "properties"
  ]
}
Response  404
HideShow
Headers
Content-Type: application/json
Body
{
  "code": "404",
  "display": "ไม่พบข้อมูลที่ค้นหา"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "รหัสที่กำหนดโดยระบบ"
    },
    "display": {
      "type": "string",
      "description": "ข้อความแสดงความหมายของรหัส"
    }
  }
}

น.ส.4

น.ส.4
GET/parcel/dol/ns4/{province}/{district}/{no}

Example URI

GET https://geo-utils.faarm.in.th/parcel/dol/ns4/95/01/51245
URI Parameters
HideShow
province
string (required) Example: 95

รหัสจังหวัด

district
string (required) Example: 01

รหัสอำเภอ

no
number (required) Example: 51245

เลขที่โฉนด

Response  200
HideShow
Headers
Content-Type: application/vnd.geo+json
Body
{
  "type": "Feature",
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          102.8380009059,
          16.4268129901041
        ],
        [
          102.8379568936,
          16.4266819930293
        ],
        [
          102.8378494011,
          16.426704769546
        ],
        [
          102.8378330329,
          16.4268502721458
        ],
        [
          102.8378020293,
          16.4268937418855
        ],
        [
          102.8380009059,
          16.4268129901041
        ]
      ]
    ]
  },
  "properties": {
    "type": "parcel/นส.4",
    "parcelno": "51245",
    "landno": "497",
    "rawang": "5541 I 6816-08(1000)",
    "areaLocale": {
      "locale": "TH",
      "rai": 0,
      "ngan": 0,
      "squareWa": 67
    },
    "area": 268,
    "address": {
      "province": {
        "code": "40",
        "name": "ขอนแก่น"
      },
      "district": {
        "code": "01",
        "name": "เมืองขอนแก่น"
      },
      "display": "อ.เมืองขอนแก่น จ.ขอนแก่น"
    }
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "Feature"
      ]
    },
    "geometry": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Point",
            "LineString",
            "Polygon",
            "MultiPolygon"
          ]
        },
        "coordinates": {}
      },
      "required": [
        "type",
        "coordinates"
      ]
    },
    "properties": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "parcel/น.ส.4",
            "parcel/สปก.4"
          ]
        },
        "areaLocal": {
          "type": "object",
          "properties": {},
          "description": "ขนาดพื้นที่ในรูปแบบ ไร่ งาน ตารางวา"
        },
        "area": {
          "type": "number",
          "description": "ขนาดพื้นที่ตามเอกสารสิทธิ์ ตารางเมตร"
        },
        "address": {
          "type": "object",
          "properties": {
            "province": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "รหัสที่กำหนดโดยระบบ"
                },
                "display": {
                  "type": "string",
                  "description": "ข้อความแสดงความหมายของรหัส"
                }
              },
              "description": "ข้อมูลจังหวัดในรูปแบบรหัส"
            },
            "district": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "รหัสที่กำหนดโดยระบบ"
                },
                "display": {
                  "type": "string",
                  "description": "ข้อความแสดงความหมายของรหัส"
                }
              },
              "description": "ข้อมูลอำเภอในรูปแบบรหัส"
            },
            "subDistrict": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "รหัสที่กำหนดโดยระบบ"
                },
                "display": {
                  "type": "string",
                  "description": "ข้อความแสดงความหมายของรหัส"
                }
              },
              "description": "ข้อมูลตำบลในรูปแบบรหัส"
            },
            "text": {
              "type": "string",
              "description": "ข้อมูลที่อยู่ในรูปแบบข้อความ"
            }
          },
          "required": [
            "text"
          ],
          "description": "ที่ตั้งตามเอกสารสิทธิ์"
        }
      },
      "required": [
        "type",
        "area"
      ]
    }
  },
  "required": [
    "type",
    "geometry",
    "properties"
  ]
}
Response  404
HideShow
Headers
Content-Type: application/json
Body
{
  "code": "404",
  "display": "ไม่พบข้อมูลที่ค้นหา"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "รหัสที่กำหนดโดยระบบ"
    },
    "display": {
      "type": "string",
      "description": "ข้อความแสดงความหมายของรหัส"
    }
  }
}

Generated by aglio on 11 Oct 2021