Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Overview Traffy APIs

National Electronics and Computer Technology Center (NECTEC)
by

anurak poolsawat

on 24 June 2011

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Overview Traffy APIs

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
Anurak Phoolsawat
Full transcript