27/5/54
2. getVMS
VMS (Variable Message Sign)
HTML (TABLE)
XML
JSON
CSV
JS
HTML (TABLE)
XML
JSON
CSV
JS
3. getIncident
TABLE (HTML)
XML
5. getRainForecast
1.getCCTV
Traffy APIs available now
Let's Get to know
Traffy APIs.
CCTV data from
Output
Traffy Social eyes
-Indy
-Institute
From http://inhum.multiply.com/journal/item/4
4.getTrafficCongestion
Output
Traffic Level:
H = High congestion
M =Moderate congestion
L = Low congestion
Output
Example
Example
TABLE (HTML)
XML
JSON
JS
Output
Example
Data From
Example
Output
Input
1.postIncident (Alpha test)
Thai Traffic Police
Office of Transport
Traffic Policy and Planning
159,Anusornsatan Exit,thai nameทางออกอนุสรณ์สถาน,13.94065,100.612943,t,2010-05-10 10:29:53,
http://www.traffy.in.th/cam/TOLLWAY01/2010/05/10/TOLLWAY01_2010-05-10_10-29-53.jpeg,nectec,,
http://www.traffy.in.th/cam/TOLLWAY01/2010/05/10/TOLLWAY01_2010-05-10_10-04-55.jpeg,
http://www.traffy.in.th/cam/TOLLWAY01/2010/05/10/TOLLWAY01_2010-05-10_10-09-51.jpeg,
http://www.traffy.in.th/cam/TOLLWAY01/2010/05/10/TOLLWAY01_2010-05-10_10-19-51.jpeg,
http://www.traffy.in.th/cam/TOLLWAY01/2010/05/10/TOLLWAY01_2010-05-10_10-24-52.jpeg,
http://www.traffy.in.th/cam/TOLLWAY01/2010/05/10/TOLLWAY01_2010-05-10_10-29-53.jpeg
Function name (
{ID:{“name”:” English name “,
“name_th”:” Thai name “,
“point”:{“lat”: Latitude point,”lng”: Longitude point },
“available”:” Update Status”,
“lastupdate”:” last update time “,
“url”:” Image “,
“src”:” Source”,
“desc”:”",
“list”: “Camlist” }});
[{159:{"name":"Anusornsatan Exit",
"name_th":" ",
"point":{"lat":13.94065,"lng":100.612943},
"available":"t",
"lastupdate":"2010-05-10 10:24:52",
"url":"http://www.traffy.in.th/cam/TOLLWAY01/2010/05/10/TOLLWAY01_2010-05-10_10-24-52.jpeg",
"src":"nectec",
"desc":"",
"list":"http://www.traffy.in.th/cam/TOLLWAY01/2010/05/10/TOLLWAY01_2010-05-10_09-59-53.jpeg,
http://www.traffy.in.th/cam/TOLLWAY01/2010/05/10/TOLLWAY01_2010-05-10_10-04-55.jpeg,
http://www.traffy.in.th/cam/TOLLWAY01/2010/05/10/TOLLWAY01_2010-05-10_10-09-51.jpeg,
http://www.traffy.in.th/cam/TOLLWAY01/2010/05/10/TOLLWAY01_2010-05-10_10-19-51.jpeg,
http://www.traffy.in.th/cam/TOLLWAY01/2010/05/10/TOLLWAY01_2010-05-10_10-24-52.jpeg"}}]
<info>
<cctv no=”ID” name=”English name” name_th=”Thai name”>
<point lat=”Latitude point” lng=”Longtitude point”/>
<available>Update Status</available>
<url>Image</url>
<lastupdate>last update time</lastupdate>
<src>Source</src>
<desc>Description</desc>
<list>Image list</list>
</cctv>
</info>
<info>
<vms no=”1 name=”Saphan Khwai” name_th=” ”>
<point lat=”13.79747 lng=”100.550832/>
<url>
http://athena.traffy.in.th/apis/services/weerapat/imagevms.php?key=( )
&appid=(id )&id=1
</url>
<pstop>46</pstop>
</vms>
</info>
[{1:
{“name”:”Saphan Khwai”,
"name_th”:” สะพานควาย”,
"point”:{“lat”:13.79747,”lng”:100.55.0.832},
"pstop”:6,
“url”:”http://athena.traffy.in.th/apis/services/weerapat/imagevms.php?key=(คีย์ที่ได้รับจากการลงทะเบียน)&appid=(id ที่ได้รับจากการลงทะเบียน)&id=3”},…
]
1,Saphan Khwai,สะพานควายthai name,13.79747,100.550832,6,http://www.traffy.in.th/~nectec/JTraffy/JTraffy.php?mapnum=1&mapwidth=320&mapheight=240,
function name(
{1:
{“name”:”Saphan Khwai”,
“name_th”:”Thai nameสะพานควาย”,
“point”:{“lat”:13.79747,”lng”:100.55.0.832},
“pstop”:6,
“url”:”http://api.traffy.in.th/apis/services/weerapat/imagevms.php?key=(คีย์ที่ได้รับจากการลงทะเบียน)&appid=(id ที่ได้รับจากการลงทะเบียน)&id=3”},…)
Source
2.postLocation
<?xml verion=”1.0″ encoding=”UTF-8″ ?>
<gps>
<record>
<vehicle_id>TEXT</vehicle_id>
<gps_timestamp>YYYY-MM-dd HH:mm:SS</gps_timestamp>
<latitude>Double</latitude>
<longitude>Double</longitude>
<speed>Double</speed> (หน่วยเป็น km/hr)
<heading>Double</heading>
<altitude>Double</altitude>
<organization_source>Text</organization_source>
<vehicle_type>Text</vehicle_type> (กรุณาระบุถ้าระบุได้เช่น taxi, van, bus, public)
<taxi_passenger_flag>0, 1 and -1</taxi_passenger_flag>
<gpsdata_valid_flag>0 or 1</gpsdata_valid_flag>
<number_of_satellites>Number</number_of_satellites>นดาวเ
</record>
</gps>
Data
*vehicle_id = 00000001
*gps_timestamp= 2010-12-27 17:03:57
*latitude=13.740378
*longitude=100.534919
*speed = 0.2
heading =5
altitude =5
*organization_source=tester
vehecle_type= (taxi, van, bus, public)
taxi_passenger_flag=0, 1, -1
gpsdata_valid_flag=1[valid]and 0[invalid]
number_of_satellites=3
Example
Format
Incident
Example
<trafficmessage>
<linkid>480</linkid>
<datetime>2011-01-17 08:37:53</datetime>
<status>L</status>
</trafficmessage>
<trafficmessage>
<linkid>1059</linkid>
<datetime>2011-01-17 08:37:53</datetime>
<status>L</status>
</trafficmessage>
1.Header
5.Decsription
Title
MainType
Subtype
3.Time
Begin&End
Interval Time
4.Location
Latitude,Longitude
2.Source
Wasan Pattara-AtikomMore presentations by anurak poolsawat
Copy of Mathematweets
anurak poolsawat on
Twitter can be a valuable tool for tracking learning in short, one-sentence summaries. As students tweet their learning progress, frustrations, and accomplishments, they form a ...
Popular presentations
Resultados de las Primarias 2012
Multimedia El Universal on
Resultados de las elecciones Primarias de la oposición venezolana para escoger candidato presidencial
More popular prezis in Explore>