Description :
ให้ข้อมูลพิกัดจุดกึ่งกลาง (Centroid) และที่ตั้งของจังหวัด, อำเภอ, ตำบล, เขต, แขวง จากข้อมูลข้อกระทรวงคมนาคม
โดยรับชื่อจังหวัด, อำเภอ, ตำบล, เขต, แขวง จากผู้ใช้
Source :
กระทรวงคมนาคม
URL:
http://api.traffy.in.th/apis/apitraffy.php?api=getMOTLatLong&appid=&q=…&type=…&format=…&callback=.. .
API Status:
Online
Formats: (Click for sample output)
XML, JSON, JS, TABLE(HTML), CSV
HTTP Method:
GET
Requires Authentication :
TRUE
API rate limited :
ไม่จำกัด
Parameters :
Required *
*api = ประเภทของ api ที่ต้องการ (getMOTLatLong)
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getMOTLatLong
*key = รหัสที่ได้รับจากการลงทะเบียน (ลงทะเบียน)
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getMOTLatLong&key=(คีย์ ที่ได้รับจากการลงทะเบียน)
*appid = id ที่ได้รับจากการลงทะเบียน (ลงทะเบียน)
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getMOTLatLong&key=(คีย์ที่ได้รับจากการลงทะเบียน)&appid=(id ที่ได้รับจากการลงทะเบียน)
*q = สถานที่หรือถนนที่ต้องการทราบพิกัด
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getMOTLatLongt&key=(คีย์ที่ได้รับจากการลงทะเบียน)&appid=(id ที่ได้รับจากการลงทะเบียน)&q=…
format = รูปแบบของการแสดงผล (XML, JSON, JS, TABLE(HTML), CSV) default : XML
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getMOTLatLong&key=(คีย์ที่ได้รับจากการลงทะเบียน)&appid=(id ที่ได้รับจากการลงทะเบียน)&q=…&format=XML
callback = ชื่อ callback function ที่ต้องการ (output in JS format require) default: Function
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getMOTLatLong&key=(คีย์ที่ได้รับจากการลงทะเบียน)&appid=(id ที่ได้รับจากการลงทะเบียน)&q=…&format=JS&callback=myfunc
type = ประเภทของสถานที่ที่ต้องการทราบพิกัด (P, D, S, ALL) สามารถใช้ comma (,) คั่นได้ P = จังหวัด (Province), D = อำเภอ/เขต (District), S = ตำบล/แขวง (Sub-District) default : ALL
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getMOTLatLong&key=(คีย์ที่ได้รับจากการลงทะเบียน)&appid=(id ที่ได้รับจากการลงทะเบียน)&q=…&format=JS&callback=myfunc&type=P
Response :
XML example:
JSON example:
CSV example:
cctv
Attractive section of content. I just stumbled upon your web site and
in accession capital to assert that I get in fact enjoyed account
your blog posts. Anyway I’ll be subscribing to your augment and even I
achievement you access consistently rapidly.