Public Transit API Developer's Guide

Line Info Examples

This section provides examples of Line Info requests.

Response

The sample response in XML format is as follows:


          <Res serviceUrl="http://search.st.ext.pt.svc.ovi.com/t0k2/">
            <LineInfos>
            <LineInfo>
              <Line code="7" dir="Harold Washington Library" name="Brown Line">
              <At id="color">#62361B</At>
              <At id="textColor">#FFFFFF</At>
              </Line>
              <LineSegments seg_ids="32 26 22 25 41 2 44 39 37 33 7 36 28 12 31 13 20 16 10 18 0 3" type="main" />
              <LineSegments seg_ids="0 2 3 7 10 12 13 16 18 20 22 25 26 28 31 32 33 36 37 39 41 44" type="all" />
            </LineInfo>
            <LineInfo>
              <Line code="7" dir="Kimball" name="Brown Line">
              <At id="color">#62361B</At>
              <At id="textColor">#FFFFFF</At>
              </Line>
              <LineSegments seg_ids="32 26 22 25 41 2 44 39 37 33 7 36 28 12 31 13 20 16 10 18 0 3 21 15 4 5 8 9 17 19 14 30 11 29 35 6 34 38 40 43 1 42 24 23 27" type="main" />
              <LineSegments seg_ids="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44" type="all" />
            </LineInfo>
            <LineInfo>
              <Line code="7" dir="Midway" name="Orange Line">
              <At id="color">#F9461C</At>
              <At id="textColor">#FFFFFF</At>
              </Line>
              <LineSegments seg_ids="59 61 66 51 47 63 64 54 58 48 45 57 53 50 49 56 55 65 62 46 52 67 60" type="main" />
              <LineSegments seg_ids="45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67" type="all" />
            </LineInfo>
            <LineInfo>
              <Line code="7" dir="54th/Cermak" name="Pink Line">
              <At id="color">#E27EA6</At>
              <At id="textColor">#FFFFFF</At>
              </Line>
              <LineSegments seg_ids="100 79 83 70 90 96 81 87 76 92 94 73 102 98 78 77 74 85 93 71 68 86 99 101 72 95 91 75 88 82 97 89 69 84 80" type="main" />
              <LineSegments seg_ids="68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102" type="all" />
            </LineInfo>
            </LineInfos>
            <PathSegments>
            <PathSeg duration="PT0H1M10S" to="418811229" runs="368" from="418811205" id="0" />
            <PathSeg duration="PT0H1M0S" to="418811480" runs="370" from="418811217" id="1" />
            <PathSeg duration="PT0H1M46S" to="418811484" runs="370" from="418811217" id="2" />
            <PathSeg duration="PT0H1M0S" to="418811361" runs="368" from="418811229" id="3" />
            <PathSeg duration="PT0H1M7S" to="418811248" runs="368" from="418811237" id="4" />
            <PathSeg duration="PT0H1M0S" to="418811272" runs="368" from="418811248" id="5" />
            <PathSeg duration="PT0H2M0S" to="418811450" runs="370" from="418811269" id="6" />
            <PathSeg duration="PT0H2M18S" to="418811454" runs="370" from="418811269" id="7" />
            <PathSeg duration="PT0H2M37S" to="418811289" runs="368" from="418811272" id="8" />
            <PathSeg duration="PT0H2M7S" to="418811334" runs="368" from="418811289" id="9" />
            <PathSeg duration="PT0H2M41S" to="418811338" runs="368" from="418811289" id="10" />
            <PathSeg duration="PT0H1M1S" to="418811428" runs="368" from="418811300" id="11" />
            <PathSeg duration="PT0H1M18S" to="418811432" runs="368" from="418811300" id="12" />
            <PathSeg duration="PT0H3M18S" to="418811352" runs="368" from="418811323" id="13" />
            <PathSeg duration="PT0H2M0S" to="418811432" runs="368" from="418811323" id="14" />
            <PathSeg duration="PT0H2M21S" to="418811237" runs="368" from="418811327" id="15" />
            <PathSeg duration="PT0H2M7S" to="418811289" runs="368" from="418811334" id="16" />
            <PathSeg duration="PT0H2M24S" to="418811352" runs="368" from="418811334" id="17" />
            <PathSeg duration="PT0H1M0S" to="418811205" runs="368" from="418811338" id="18" />
            <PathSeg duration="PT0H4M38S" to="418811323" runs="368" from="418811352" id="19" />
            <PathSeg duration="PT0H4M0S" to="418811334" runs="368" from="418811352" id="20" />
            <PathSeg duration="PT0H1M18S" to="418811327" runs="361" from="418811361" id="21" />
            <PathSeg duration="PT0H1M0S" to="418811391" runs="370" from="418811364" id="22" />
            <PathSeg duration="PT0H1M24S" to="418811421" runs="370" from="418811364" id="23" />
            <PathSeg duration="PT0H1M0S" to="418811364" runs="370" from="418811391" id="24" />
            <PathSeg duration="PT0H1M46S" to="418811480" runs="370" from="418811391" id="25" />
            <PathSeg duration="PT0H1M14S" to="418811364" runs="370" from="418811421" id="26" />
            <PathSeg duration="PT0H1M36S" to="418811445" runs="370" from="418811421" id="27" />
            <PathSeg duration="PT0H1M45S" to="418811300" runs="368" from="418811428" id="28" />
            <PathSeg duration="PT0H1M59S" to="418811454" runs="368" from="418811428" id="29" />
            <PathSeg duration="PT0H1M25S" to="418811300" runs="368" from="418811432" id="30" />
            <PathSeg duration="PT0H1M47S" to="418811323" runs="368" from="418811432" id="31" />
            <PathSeg duration="PT0H2M0S" to="418811421" runs="370" from="418811445" id="32" />
            <PathSeg duration="PT0H1M0S" to="418811269" runs="370" from="418811450" id="33" />
            <PathSeg duration="PT0H1M4S" to="418811474" runs="370" from="418811450" id="34" />
            <PathSeg duration="PT0H2M1S" to="418811269" runs="370" from="418811454" id="35" />
            <PathSeg duration="PT0H1M0S" to="418811428" runs="368" from="418811454" id="36" />
            <PathSeg duration="PT0H2M0S" to="418811450" runs="370" from="418811474" id="37" />
            <PathSeg duration="PT0H1M0S" to="418811478" runs="370" from="418811474" id="38" />
            <PathSeg duration="PT0H1M0S" to="418811474" runs="370" from="418811478" id="39" />
            <PathSeg duration="PT0H1M36S" to="418811484" runs="370" from="418811478" id="40" />
            <PathSeg duration="PT0H1M14S" to="418811217" runs="370" from="418811480" id="41" />
            <PathSeg duration="PT0H1M36S" to="418811391" runs="370" from="418811480" id="42" />
            <PathSeg duration="PT0H1M24S" to="418811217" runs="370" from="418811484" id="43" />
            <PathSeg duration="PT0H1M0S" to="418811478" runs="370" from="418811484" id="44" />
            <PathSeg duration="PT0H1M19S" to="418811338" runs="331" from="418811205" id="45" />
            <PathSeg duration="PT0H4M0S" to="418811259" runs="331" from="418811220" id="46" />
            <PathSeg duration="PT0H2M0S" to="418811401" runs="331" from="418811220" id="47" />
            <PathSeg duration="PT0H1M46S" to="418811205" runs="331" from="418811229" id="48" />
            <PathSeg duration="PT0H2M7S" to="418811327" runs="331" from="418811237" id="49" />
            <PathSeg duration="PT0H1M7S" to="418811237" runs="331" from="418811248" id="50" />
            <PathSeg duration="PT0H4M2S" to="418811220" runs="331" from="418811259" id="51" />
            <PathSeg duration="PT0H2M0S" to="418811416" runs="331" from="418811259" id="52" />
            <PathSeg duration="PT0H1M9S" to="418811248" runs="331" from="418811272" id="53" />
            <PathSeg duration="PT0H5M0S" to="418811361" runs="331" from="418811278" id="54" />
            <PathSeg duration="PT0H4M15S" to="418811411" runs="331" from="418811278" id="55" />
            <PathSeg duration="PT0H3M0S" to="418811278" runs="331" from="418811327" id="56" />
            <PathSeg duration="PT0H2M44S" to="418811272" runs="331" from="418811338" id="57" />
            <PathSeg duration="PT0H0M20S" to="418811229" runs="331" from="418811361" id="58" />
            <PathSeg duration="PT0H2M9S" to="418811382" runs="331" from="418811378" id="59" />
            <PathSeg duration="PT0H2M49S" to="418811378" runs="331" from="418811382" id="60" />
            <PathSeg duration="PT0H2M8S" to="418811416" runs="331" from="418811382" id="61" />
            <PathSeg duration="PT0H2M0S" to="418811220" runs="331" from="418811401" id="62" />
            <PathSeg duration="PT0H2M0S" to="418811411" runs="331" from="418811401" id="63" />
            <PathSeg duration="PT0H3M18S" to="418811278" runs="331" from="418811411" id="64" />
            <PathSeg duration="PT0H2M0S" to="418811401" runs="331" from="418811411" id="65" />
            <PathSeg duration="PT0H2M44S" to="418811259" runs="331" from="418811416" id="66" />
            <PathSeg duration="PT0H2M7S" to="418811382" runs="331" from="418811416" id="67" />
            <PathSeg duration="PT0H2M4S" to="418811338" runs="231" from="418811205" id="68" />
            <PathSeg duration="PT0H1M56S" to="418811313" runs="231" from="418811226" id="69" />
            <PathSeg duration="PT0H1M57S" to="418811347" runs="231" from="418811226" id="70" />
            <PathSeg duration="PT0H2M2S" to="418811205" runs="231" from="418811229" id="71" />
            <PathSeg duration="PT0H2M0S" to="418811395" runs="231" from="418811230" id="72" />
            <PathSeg duration="PT0H3M23S" to="418811765" runs="231" from="418811230" id="73" />
            <PathSeg duration="PT0H2M45S" to="418811327" runs="231" from="418811237" id="74" />
            <PathSeg duration="PT0H1M0S" to="418811339" runs="231" from="418811239" id="75" />
            <PathSeg duration="PT0H2M0S" to="418811358" runs="231" from="418811239" id="76" />
            <PathSeg duration="PT0H1M15S" to="418811237" runs="231" from="418811248" id="77" />
            <PathSeg duration="PT0H1M4S" to="418811248" runs="231" from="418811272" id="78" />
            <PathSeg duration="PT0H2M0S" to="418811313" runs="231" from="418811280" id="79" />
            <PathSeg duration="PT0H2M56S" to="418811759" runs="231" from="418811280" id="80" />
            <PathSeg duration="PT0H1M3S" to="418811339" runs="231" from="418811284" id="81" />
            <PathSeg duration="PT0H1M18S" to="418811397" runs="231" from="418811284" id="82" />
            <PathSeg duration="PT0H1M3S" to="418811226" runs="231" from="418811313" id="83" />
            <PathSeg duration="PT0H1M4S" to="418811280" runs="231" from="418811313" id="84" />
            <PathSeg duration="PT0H1M19S" to="418811361" runs="231" from="418811327" id="85" />
            <PathSeg duration="PT0H1M15S" to="418811418" runs="231" from="418811338" id="86" />
            <PathSeg duration="PT0H1M0S" to="418811239" runs="231" from="418811339" id="87" />
            <PathSeg duration="PT0H1M45S" to="418811284" runs="231" from="418811339" id="88" />
            <PathSeg duration="PT0H1M4S" to="418811226" runs="231" from="418811347" id="89" />
            <PathSeg duration="PT0H1M3S" to="418811397" runs="231" from="418811347" id="90" />
            <PathSeg duration="PT0H2M0S" to="418811239" runs="231" from="418811358" id="91" />
            <PathSeg duration="PT0H3M0S" to="418811395" runs="231" from="418811358" id="92" />
            <PathSeg duration="PT0H1M3S" to="418811229" runs="231" from="418811361" id="93" />
            <PathSeg duration="PT0H3M0S" to="418811230" runs="231" from="418811395" id="94" />
            <PathSeg duration="PT0H2M15S" to="418811358" runs="231" from="418811395" id="95" />
            <PathSeg duration="PT0H1M57S" to="418811284" runs="231" from="418811397" id="96" />
            <PathSeg duration="PT0H1M56S" to="418811347" runs="231" from="418811397" id="97" />
            <PathSeg duration="PT0H1M4S" to="418811272" runs="231" from="418811418" id="98" />
            <PathSeg duration="PT0H2M0S" to="418811765" runs="231" from="418811418" id="99" />
            <PathSeg duration="PT0H2M0S" to="418811280" runs="231" from="418811759" id="100" />
            <PathSeg duration="PT0H2M45S" to="418811230" runs="231" from="418811765" id="101" />
            <PathSeg duration="PT0H2M54S" to="418811418" runs="231" from="418811765" id="102" />
            </PathSegments>
            <Stations>
            <Stn y="41.878723" x="-87.633740" id="418811205" name="Quincy/Wells" />
            <Stn y="41.966286" x="-87.678639" id="418811217" name="Damen-Brown" />
            <Stn y="41.829353" x="-87.680622" id="418811220" name="35th/Archer" />
            <Stn y="41.853732" x="-87.724311" id="418811226" name="Pulaski-Cermak" />
            <Stn y="41.876800" x="-87.631739" id="418811229" name="LaSalle/Van Buren" />
            <Stn y="41.885269" x="-87.666969" id="418811230" name="Ashland-Lake" />
            <Stn y="41.884431" x="-87.626149" id="418811237" name="Randolph/Wabash" />
            <Stn y="41.854517" x="-87.675975" id="418811239" name="Damen-Cermak" />
            <Stn y="41.885740" x="-87.627835" id="418811248" name="State/Lake" />
            <Stn y="41.804546" x="-87.684019" id="418811259" name="Western-Orange" />
            <Stn y="41.943744" x="-87.663619" id="418811269" name="Southport" />
            <Stn y="41.885737" x="-87.630886" id="418811272" name="Clark/Lake (Elevated)" />
            <Stn y="41.867405" x="-87.626590" id="418811278" name="Roosevelt (Elevated)" />
            <Stn y="41.851820" x="-87.745336" id="418811280" name="Cicero-Cermak" />
            <Stn y="41.854109" x="-87.694774" id="418811284" name="California-Cermak" />
            <Stn y="41.888969" x="-87.633924" id="418811289" name="Merchandise Mart" />
            <Stn y="41.932732" x="-87.653131" id="418811300" name="Diversey" />
            <Stn y="41.853751" x="-87.733258" id="418811313" name="Kostner" />
            <Stn y="41.918217" x="-87.652644" id="418811323" name="Armitage" />
            <Stn y="41.879507" x="-87.626037" id="418811327" name="Adams/Wabash" />
            <Stn y="41.896810" x="-87.635924" id="418811334" name="Chicago-Brown" />
            <Stn y="41.882695" x="-87.633780" id="418811338" name="Washington/Wells" />
            <Stn y="41.854225" x="-87.685129" id="418811339" name="Western-Cermak" />
            <Stn y="41.853839" x="-87.714842" id="418811347" name="Central Park" />
            <Stn y="41.910409" x="-87.639302" id="418811352" name="Sedgwick" />
            <Stn y="41.857908" x="-87.669147" id="418811358" name="18th" />
            <Stn y="41.876862" x="-87.628196" id="418811361" name="Harold Washington Library" />
            <Stn y="41.966046" x="-87.701644" id="418811364" name="Francisco" />
            <Stn y="41.786610" x="-87.737875" id="418811378" name="Midway" />
            <Stn y="41.799756" x="-87.724493" id="418811382" name="Pulaski-Orange" />
            <Stn y="41.966115" x="-87.694100" id="418811391" name="Rockwell" />
            <Stn y="41.871551" x="-87.669530" id="418811395" name="Polk" />
            <Stn y="41.853964" x="-87.705408" id="418811397" name="Kedzie-Cermak" />
            <Stn y="41.839234" x="-87.665317" id="418811401" name="Ashland-Orange" />
            <Stn y="41.846780" x="-87.648088" id="418811411" name="Halsted-Orange" />
            <Stn y="41.804236" x="-87.704406" id="418811416" name="Kedzie-Orange" />
            <Stn y="41.885678" x="-87.641782" id="418811418" name="Clinton-Green" />
            <Stn y="41.965996" x="-87.708821" id="418811421" name="Kedzie-Brown" />
            <Stn y="41.936033" x="-87.653266" id="418811428" name="Wellington" />
            <Stn y="41.925051" x="-87.652866" id="418811432" name="Fullerton" />
            <Stn y="41.967901" x="-87.713065" id="418811445" name="Kimball" />
            <Stn y="41.943623" x="-87.670907" id="418811450" name="Paulina" />
            <Stn y="41.939751" x="-87.653380" id="418811454" name="Belmont" />
            <Stn y="41.947028" x="-87.674642" id="418811474" name="Addison-Brown" />
            <Stn y="41.954521" x="-87.674868" id="418811478" name="Irving Park-Brown" />
            <Stn y="41.966163" x="-87.688502" id="418811480" name="Western-Brown" />
            <Stn y="41.961756" x="-87.675047" id="418811484" name="Montrose-Brown" />
            <Stn y="41.851773" x="-87.756692" id="418811759" name="54th/Cermak" />
            <Stn y="41.885577" x="-87.652129" id="418811765" name="Morgan" />
            </Stations>
          </Res>        
      

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.