Traffic Services API (Webcam Images, Traffic Flow)
收藏资源简介:
<div>For detailed information regarding the Traffic API, see the <a href='https://traffic.ottawa.ca/map/opendata_info' target='_blank'>Interactive Traffic Map website</a> from the Traffic and Parking website.</div><div><br /></div><div><b><u>Traffic WebCam API</u></b><br /></div>Provides images for the City of Ottawa’s traffic web cams. These images are available at sixty second intervals and are approximately 30-50KB in size. To access the images users will be required to have an access key. The application form for access keys can be found on this page: <a href='http://trafficopendata.ottawa.ca/ts/rsadmin/certificate.jsp' target='_blank'>http://trafficopendata.ottawa.ca/ts/rsadmin/certificate.jsp</a> <br /> After completing the registration form and receiving a confirmation email with a certificate number you will be able to access the camera images. To access a camera image you can access the URL http://traffic.ottawa.ca/opendata/camera with the following parameters: <ul> <li>Camera number </li><li>Certificate: The certificate string as supplied in the confirmation email. </li><li>Id: User Id (optional). </li></ul> Note: City of Ottawa cameras have camera numbers less than 2000, and MTO cameras have camera numbers greater than 2000. <br /> Note: The Id is a string value assigned by your user to each user or instance of your application accessing the images. The Id must be alphanumeric characters [a-z, A-Z, 0-9]. A given user id for a given certificate may only access the cameras at intervals of at least 60 seconds. <p> e.g. To access City Camera 16 (Bank and Hunt Club) -- <i>http://traffic.ottawa.ca/opendata/camera?c=16&certificate=CERT123&id=2</i> <br /> e.g. To access MTO Camera 2002 (St Laurent) -- <i>http://traffic.ottawa.ca/opendata/camera?c=2002&certificate=CERT123&id=1 </i><br /> The images</p><p><b> Getting Camera Numbers </b><br /> To obtain a list of camera numbers you can access a JSON list of the available cameras: <i>http://traffic.ottawa.ca/map/camera_list</i> <br /> More information about the format of the list can be found in the following document: <i>http://traffic.ottawa.ca/map/opendata_info </i><br /> </p><strong>Accuracy</strong>: There are no known errors associated with these images.<br /><br /> <strong>Update Frequency</strong>: N/A - API delivers most up to date information available.<br /><br /><strong>Contact</strong>: <a href='mailto:Motaz.Aladas@ottawa.ca'>Motaz Aladas</a>



