{"swagger":"2.0","info":{"description":"**API จาก** [Agri-Map](https://agri-map-online.moac.go.th) \nแหล่งข้อมูลจาก กรมพัฒนาที่ดิน (2558)\n\n**คำอธิบายข้อมูล**\nจำแนกเขตการใช้พื้นที่เพื่อการเกษตรเป็น เขตเกษตรกรรมชั้นดี เขตเกษตรกรรมชั้นดี เขตเกษตรกรรมศักยภาพสูง และเขตเกษตรกรรมศักยภาพต่ำ  ทั้งนี้ API เขตเกษตรกรรม สามารถให้รายละเอียดของการใช้พื้นที่ให้เหมาะสมตามเขตเกษตรกรรม โดยการระบุพิกัด\n\n **การเรียกใช้**\nผู้ใช้งานต้องดำเนินการตามนี้\n1.ทำการขอ token ที่ https://thagri.in.th\n2.นำ token ที่ได้จาก https://thagri.in.th/ ไปใช้เป็น Parameter ใน API\n ","version":"1.0.0","title":"เขตเกษตรกรรม"},"host":"api.thagri.in.th","tags":[{"name":"Soil_API"}],"schemes":["https","http"],"paths":{"/Soil_API/zone_e_th":{"post":{"responses":{"200":{"description":"Success","schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","properties":{"lat":{"type":"string"},"lon":{"type":"string"},"marker_datas":{"type":"array","items":{"type":"object","properties":{"shape_id":{"type":"string"},"layer_name":{"type":"string"},"meta_id":{"type":"string"},"attribute_style_id":{"type":"string"},"datas":{"type":"array","items":{"type":"object","properties":{"atibute_title":{"type":"string"},"atibute_value":{"type":"string"},"atibute_unit":{"type":"string"},"is_marker_title":{"type":"string","format":"nullable"}}}}}}}}}}}}},"summary":"คำอธิบาย : ใช้สำหรับดึงข้อมูล เขตเกษตรกรรม","description":"ใช้สำหรับดึงข้อมูล  เขตเกษตรกรรมตามพิกัดที่สนใจ","operationId":"agri_zone_e_th_db2","parameters":[{"name":"lat","in":"query","type":"number","default":"20.2985142","required":true,"description":"ละติจูด เช่น 20.2985142"},{"name":"lon","in":"query","type":"number","default":"99.8081724","required":true,"description":"ลองจิจูด เช่น 99.8081724"},{"name":"tgtoken","in":"query","type":"string","required":false,"description":"รหัสที่ใช้ระบุตัวตนเพื่อเข้าถึงการใช้งานข้อมูล"}],"tags":["Soil_API"]}}},"definitions":{"data_output":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"object","properties":{"lat":{"type":"string"},"lon":{"type":"string"},"marker_datas":{"type":"array","items":{"type":"object","properties":{"shape_id":{"type":"string"},"layer_name":{"type":"string"},"meta_id":{"type":"string"},"attribute_style_id":{"type":"string"},"datas":{"type":"array","items":{"type":"object","properties":{"atibute_title":{"type":"string"},"atibute_value":{"type":"string"},"atibute_unit":{"type":"string"},"is_marker_title":{"type":"string","format":"nullable"}}}}}}}}}}}}}