getLagLong

Description :

ให้ข้อมูลพิกัดสถานที่
พิกัดบางแห่งมาจากการประมาณและการเพิ่มโดย user

URL:

http://api.traffy.in.th/apis/apitraffy.php?api=getLatLong&key=…&appid=…&q=…&format=…&callback=…

API Status:

Online

Formats: (Click for sample output)

XML, JSON, JS, CSVTABLE(HTML)


HTTP Method:

GET

Requires Authentication :

true

API rate limited :

ไม่จำกัด

Parameters :

Required *

*api = ประเภทของ api ที่ต้องการ (getLatLong)
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getLatLong

*key = รหัสที่ได้รับจากการลงทะเบียน ( ลงทะเบียน )
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getLatLong&key=(คีย์ ที่ได้รับจากการลงทะเบียน)

*appid = id  ที่ได้รับจากการลงทะเบียน ( ลงทะเบียน )
Examplehttp://api.traffy.in.th/apis/apitraffy.php?api=getLatLong&key=(คีย์ที่ได้รับจากการลงทะเบียน)&appid=(id ที่ได้รับจากการลงทะเบียน)

*= สถานที่หรือถนนที่ต้องการทราบพิกัด
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getLatLongt&key=(คีย์ที่ได้รับจากการลงทะเบียน)&appid=(id ที่ได้รับจากการลงทะเบียน)&q=…

format = รูปแบบของการแสดงผล (XML, JSON, JS, CSV, TABLE)  default : XML
Example: http://api.traffy.in.th/apis/apitraffy.php?api=getLatLong&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=getLatLong&key=(คีย์ที่ได้รับจากการลงทะเบียน)&appid=(id ที่ได้รับจากการลงทะเบียน)&q=…&format=JS&callback=myfunc


Response :

XML example:

JSON example:

CSV example:

Advertisement

2 Responses to getLagLong

  1. omg says:

    getLagLong ….

  2. Pingback: การนำข้อมูลจราจร ภาพจากกล้อง CCTV ไปต่อยอด (แบบชั่วคราว) « Traffy Information Portal – โครงการประเมินและรายง

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s