CINXE.COM
Traffic API Displaying Flow & Incidents | MapQuest for Business
<!DOCTYPE html> <html class="no-js" lang=""> <head> <title>Traffic API Displaying Flow & Incidents | MapQuest for Business</title> <meta charset="utf-8"> <meta name="author" content="MapQuest"> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="description" content="MapQuest鈥檚 Traffic API allows users to display traffic flow and incidents, including construction zones, in multiple markets for a given map area."> <link rel="apple-touch-icon" sizes="57x57" href="/images/favicon/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/images/favicon/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="/images/favicon/apple-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="/images/favicon/apple-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="/images/favicon/apple-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="/images/favicon/apple-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="/images/favicon/apple-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="/images/favicon/apple-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="/images/favicon/apple-icon-180x180.png"> <link rel="icon" type="image/png" sizes="192x192" href="/images/favicon/android-icon-192x192.png"> <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="96x96" href="/images/favicon/favicon-96x96.png"> <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon/favicon-16x16.png"> <link rel="stylesheet" href="/styles/vendor.css"> <link rel="stylesheet" href="/styles/main.css"> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-53Q3KG');</script> <!-- End Google Tag Manager --> <!-- Marketo Munchkin --> <script type="text/javascript"> (function() { var didInit = false; function initMunchkin() { if(didInit === false) { didInit = true; Munchkin.init('099-SNC-768'); } } var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '//munchkin.marketo.net/munchkin.js'; s.onreadystatechange = function() { if (this.readyState == 'complete' || this.readyState == 'loaded') { initMunchkin(); } }; s.onload = initMunchkin; document.getElementsByTagName('head')[0].appendChild(s); })(); </script> </head> <body class="traffic-api"> <!--[if lt IE 10]> <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <![endif]--> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-53Q3KG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <header> <nav id="nav" class="container"> <a href="/"><section class="header-logo"></section></a> <ul id="primary_nav"> <li class="products-and-services has-subnav"> <a href="/products">Products</a> <ul> <li> <h3>APIs</h3> <ul> <li><a href="/products/data-manager-api">Data Manager</a></li> <li><a href="/products/routing-directions-api">Directions</a></li> <li><a href="/products/geocoding-api">Geocoding</a></li> <li><a href="/products/place-search-api">Place Search</a></li> <li><a href="/products/predictive-search-api">Search Ahead</a></li> <li><a href="/products/mapping-api">Static Map</a></li> <li><a href="/products/traffic-api">Traffic</a></li> </ul> </li> <li> <h3>SDKs</h3> <ul> <li><a href="/products/mapquest-js">MapQuest.js</a></li> </ul> </li> <li> <h3>Other Offerings</h3> <ul> <li><a href="/products/targeted-advertising">Advertising with MQ</a></li> <li><a href="/products/business-listing">Business Listing</a></li> <li><a href="/products/location-data">Location Intelligence</a></li> <li><a href="/products/professional-services">Professional Services</a></li> <li><a href="/products/store-locator">Store Locator</a></li> </ul> </li> </ul> </li> <li class="pricing-and-plans"> <a href="/pricing-plans">Pricing & Plans</a> </li> <li class="resources has-subnav"> <a href="/resources">Resources</a> <ul> <li><a href="http://devblog.mapquest.com/" target="_blank" rel="noopener">Blog</a></li> <li><a href="https://hello.mapquest.com/careers" target="_blank" rel="noopener">Careers</a></li> </ul> </li> <li class="company has-subnav"> <a href="/company">Company</a> <ul> <!-- <li><a href="/company/mapquest-leadership">Leadership</a></li> --> <li><a href="/resources/partnerships">Partners</a></li> <li><a href="https://developer.mapquest.com/contact-us" target="_blank" rel="noopener">Contact Us</a></li> </ul> </li> <li class="get-started"> <a href="https://developer.mapquest.com/user/register" target="_blank" rel="noopener">Get Started</a> </li> </ul> <ul id="top_nav"> <li class="login"><a href="https://developer.mapquest.com/user/login" target="_blank" rel="noopener">Login</a></li> <li class="signup"><a href="https://developer.mapquest.com/user/register" target="_blank" rel="noopener">Sign Up</a></li> <li class="mapquest-link"><a href="https://developer.mapquest.com" target="_blank" rel="noopener">Developer</a></li> <li class="mapquest-link"><a href="https://www.mapquest.com" target="_blank" rel="noopener">MapQuest.com</a></li> </ul> </nav> </header> <section id="content"> <section class="hero"> <section class="container"> <h1>MapQuest Traffic API</h1> </section> </section> <section class="content-top"> <div class="light-gray-bg"> <div class="container"> <div class="row"> <div class="col-md-12"> <h2>What is the Traffic API?</h2> <h3>The Traffic API allows you to easily retrieve and display traffic flow and incidents for a given map area, including construction zones.</h3> <a class="btn btn-primary" href="https://developer.mapquest.com/user/register" target="_blank" rel="noopener">Get Started</a> </div> </div> </div> </div> </section> <div class="white-bg"> <div class="container"> <div class="section-title"> <div class="row"> <div class="col-md-12"> <h2>What it can do for you</h2> </div> </div> </div> <div class="features"> <div class="row"> <div class="col-md-6"> <div class="feature-box geocoding-feature"> <div class="feature-icon"></div> <h3>Route Knowledge</h3> <p>Let your users alter and choose routes based on current traffic conditions.</p> </div> </div> <div class="col-md-6"> <div class="feature-box geocoding-feature"> <div class="feature-icon"></div> <h3>Keep Drivers in the Know</h3> <p>Quickly and easily retrieve and display traffic flow and incidents on a given map area.</p> </div> </div> </div> </div> </div> </div> <section class="teal-bg"> <div class="container"> <div class="section-title"> <div class="row"> <div class="col-md-12"> <h2 class="white-text">Key Features</h2> </div> </div> </div> <div class="features"> <div class="row"> <div class="col-sm-6 col-md-4"> <div class="feature-text"> <h3>Traffic Overlay</h3> <p>Retrieve a transparent raster image of color-coded traffic flow to overlay on top of the road network to provide a color-coded visualization of current traffic speed conditions.</p> </div> </div> <div class="col-sm-6 col-md-4"> <div class="feature-text"> <h3>Incidents by Type</h3> <p>Filter incident by type (e.g. "Construction"), and receive type and location details, along with the appropriate icons.</p> </div> </div> <div class="col-sm-6 col-md-4"> <div class="feature-text"> <h3>Multiple Markets</h3> <p>Receive a list of our markets which have Traffic available with a simple call.</p> </div> </div> </div> </div> </div> </section> <div class="white-bg"> <div class="container"> <div class="section-title"> <div class="row"> <div class="col-md-12"> <h2>How it Looks</h2> </div> </div> </div> <div class="row"> <div class="col-md-5"> <div class="code-container" id="json"> <pre><code class="language-json">{ "incidents": [ { "fullDesc": "One lane closed due to maintenance work on California Street Eastbound between 18th Street and 19th Street.", "lng": -104.9886, "severity": 2, "shortDesc": "California Street E/B : Lane closed between 18th Street and 19th Street ", "endTime": "2013-08-02T01:59:00", "type": 1, "id": "330627538", "startTime": "2013-02-04T19:00:00", "impacting": true, "tmcs": [], "eventCode": 0, "iconURL": "http://api.mqcdn.com/mqtraffic/const_mod.png", "lat": 39.7481 } ], "mqURL": "http://www.mapquest.com/maps?traffic=1&latitude=39.73976&longitude=-104.9848", "info": { "copyright": { "text": "2017 MapQuest, Inc.", "imageUrl": "http://api.mqcdn.com/res/mqlogo.gif", "imageAltText": "2017 MapQuest, Inc." }, "statuscode": 0, "messages": [] } }</code></pre> </div> </div> <div class="col-md-7"> <div class="row"> <div class="col-md-12"> <div class="try-it-out"> <h3>Try it before you buy it. See our APIs in action and get a better understanding of what they can do for you.</h3> <a href="https://developer.mapquest.com/documentation/samples/traffic/v2/incidents/" target="_blank" rel="noopener" class="btn btn-info">Try It Out</a> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="try-it-out"> <h3>Access everything you need to know about each of our APIs and SDKs. From response codes to release notes, it鈥檚 all here.</h3> <a href="https://developer.mapquest.com/documentation/traffic-api/" target="_blank" rel="noopener" class="btn btn-info">Documentation</a> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="try-it-out"> <h3>Connect and collaborate with a community of developers who are all on the same topic.</h3> <a href="https://developer.mapquest.com/forums/traffic-api-web-service" target="_blank" rel="noopener" class="btn btn-info">Forum</a> </div> </div> </div> </div> </div> </div> </div> <div class="light-gray-bg"> <div class="container"> <div class="trial-call-out"> <div class="row"> <div class="col-md-12"> <h2>One subscription for all your geospatial needs</h2> </div> </div> <div class="row"> <div class="col-md-12"> <a href="https://developer.mapquest.com/user/register" target="_blank" rel="noopener" class="btn btn-primary">Start Your Free Trial</a> </div> </div> <div class="row"> <div class="col-md-12"> <a class="btn btn-link" href="/pricing-plans">learn about our enterprise plans</a> </div> </div> </div> </div> </div> </section> <footer> <div class="footer-about"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-9 col-md-10 col-lg-10"> <h2 class="title">About MapQuest for Business</h2> <div class="content"> <p class="description">MapQuest for Business powers thousands of businesses with location-enabled Geospatial solutions. Our platform provides companies of any size with the means to increase efficiency and streamline processes, connect with customers, and ultimately deliver the all-important exceptional user experience. And, as usual, the MapQuest for Business experience is backed by the customer service and technical support that we're known for.</p> </div> </div> <div class="col-xs-12 col-sm-3 col-md-2 col-lg-2"> <h2 class="title small no-subtitle">For Sales and Support</h2> <div class="contact-info"> <ul> <li>3601 Walnut St, 5th Floor</li> <li>Denver, CO 80205</li> <li><a href="mailto:sales@mapquest.com">sales@mapquest.com</a></li> </ul> </div> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="footer-menu"> <div class="col-xs-6 col-sm-3"> <ul class="menu"> <li class="first expanded"> <a href="https://developer.mapquest.com/user/register" target="_blank" rel="noopener">Get Started</a> <ul class="menu"> <li><a href="/pricing-plans">Pricing & Plans</a></li> <li><a href="https://developer.mapquest.com/faq" target="_blank" rel="noopener">FAQ</a></li> </ul> </li> </ul> </div> <div class="col-xs-6 col-sm-2"> <ul class="menu"> <li class="expanded"> <a href="/company">About Us</a> <ul class="menu"> <!-- <li><a href="/company/mapquest-leadership">Leadership</a></li> --> <li><a href="/resources/partnerships">Partners</a></li> <li><a href="http://devblog.mapquest.com" target="_blank" rel="noopener">Blog</a></li> <li><a href="http://company.mapquest.com/careers/" target="_blank" rel="noopener">Jobs</a></li> </ul> </li> </ul> </div> <div class="col-xs-6 col-sm-3"> <ul class="menu"> <li class="expanded"> <a href="/products">Products</a> <ul class="menu"> <li><a href="/developer-apis-sdks">APIs & SDKs</a></li> <li><a href="/products/professional-services">Professional Services</a></li> <li><a href="/products/location-data">Location Intelligence</a></li> <li><a href="/products/targeted-advertising">Advertise With Us</a></li> </ul> </li> </ul> </div> <div class="col-xs-6 col-sm-2"> <ul class="menu"> <li class="expanded"> <a href="/products/professional-services/">Support</a> <ul class="menu"> <li><a href="/resources">Resources</a></li> <li><a href="https://developer.mapquest.com/documentation" target="_blank" rel="noopener">Documentation</a></li> <li><a href="https://developer.mapquest.com/forum" target="_blank" rel="noopener">Forums</a></li> <li><a href="https://developer.mapquest.com/contact-us" target="_blank" rel="noopener">Contact Us</a></li> </ul> </li> </ul> </div> <div class="col-xs-6 col-sm-2"> <ul class="menu"> <li class="last expanded"> <a href="/social">Social</a> <ul class="menu"> <li><a href="//www.linkedin.com/company/mapquest/" target="_blank" rel="noopener">LinkedIn</a></li> <li><a href="//www.twitter.com/mqdeveloper/" target="_blank" rel="noopener">Twitter</a></li> <li><a href="//www.facebook.com/mapquest/" target="_blank" rel="noopener">Facebook</a></li> <li><a href="//www.instagram.com/mapquest/" target="_blank" rel="noopener">Instagram</a></li> </ul> </li> </ul> </div> </div> </div> <div class="row"> <div class="copyright col-xs-12 col-sm-12 col-md-12 col-lg-12"> <p><span class="logo"></span>© <script>document.write((new Date).getFullYear().toString());</script> MAPQUEST, INC. ALL RIGHTS RESERVED. <a href="https://hello.mapquest.com/privacy" target="_blank" rel="noopener">PRIVACY POLICY</a> | <a href="https://hello.mapquest.com/terms-of-use" target="_blank" rel="noopener">TERMS OF USE</a> </p> </div> </div> </div> </footer> <script src="/scripts/vendor.js"></script> <script src="/scripts/plugins.js"></script> <script src="/scripts/main.js"></script> <!-- AOL Omniture --> <script type="text/javascript"> bN_cfg = { h: location.hostname }; function runOmni() { s_265.pfxID="map"; s_265.pageName=document.title; s_265.channel="us.mqbus"; s_265.linkInternalFilters="javascript:,mapquest.com"; s_265.prop1="MQBusiness"; s_265.prop2="corporate"; s_265.prop54="no_cms"; s_265.prop62="video_novideo"; s_265.prop65="original_content"; s_265.mmxgo=true; var s_code=s_265.t(); } s_265_account ="aolsvc"; (function(){ createScript('https://o.aolcdn.com/os/aol/omniture.min.js'); createScript('https://o.aolcdn.com/os/aol/beacon.min.js'); function createScript(src) { var s = document.createElement('script'); s.type = 'text/javascript'; s.src = src; document.getElementsByTagName('head')[0].appendChild(s); } })(); </script> <!-- End AOL Omniture --> </body> </html>