Public Transit API Developer's Guide

By Stop IDs

This section provides examples of All Next Departures by Stop IDs requests.

Request

The code block below demonstrates the sample request, specifying that the response data are to be delivered in XML.

https://cit.transit.api.here.com/metarouter/rest/boardservice/v1/multiboard/by_stopids
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&lang=en
&stopIds=720390568,720390116,720390069
&max=2
&time=2017-04-11T08%3A00%3A00

Here is the same request indicating that the response data are to be delivered in JSON.

https://cit.transit.api.here.com/metarouter/rest/boardservice/v1/multiboard/by_stopids.json
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&lang=en
&stopIds=720390568,720390116,720390069
&max=2
&time=2017-04-11T08%3A00%3A00

Response

The sample of all next departures response in XML format is as follows:


<Res serviceUrl="http://ip-10-127-181-111.eu-west-1.compute.internal:8080/hafasproxy/G3I">
  <MultiNextDepartures>
  <MultiNextDeparture>
    <Stn id="720390568#105" name="3rd & Catlin" x="-114.021963" y="46.866916" />
    <NextDepartures>
    <Dep time="2017-04-11T08:06:00" journey_ctx="1|18|1|105|22062016">
      <Stn id="720390555#105" name="3rd + Catlin" x="-114.022907" y="46.867086" />
      <Line dir="Southgate Mall (West Side)" code="5" name="2">
      <At id="operator">D6410000</At>
      <At id="color">#F499B8</At>
      <At id="textColor">#000000</At>
      <At id="category">Bus</At>
      </Line>
    </Dep>
    <Dep time="2017-04-11T08:09:00" journey_ctx="1|11|1|105|22062016">
      <Stn id="720390568#105" name="3rd + Catlin" x="-114.021963" y="46.866916" />
      <Line dir="Mountain Line Transfer Center" code="5" name="2">
      <At id="operator">D6410000</At>
      <At id="color">#F499B8</At>
      <At id="textColor">#000000</At>
      <At id="category">Bus</At>
      </Line>
    </Dep>
    <Operators>
      <Op code="D6410000" name="Mountain Line (MUTD)">
      <Link href="http://www.mountainline.com" id="website" req="0">Mountain Line (MUTD)</Link>
      </Op>
    </Operators>
    </NextDepartures>
  </MultiNextDeparture>
  <MultiNextDeparture>
    <Stn id="720390116#105" name="S 3rd St W & S Catlin St" x="-114.022088" y="46.866925" />
    <NextDepartures>
    <Dep time="2017-04-11T08:30:00" journey_ctx="1|117|2|105|22062016">
      <Stn id="720390116#105" name="S 3rd St W + S Catlin St" x="-114.022088" y="46.866925" />
      <Line dir="Mountain Line Transfer Center" code="5" name="9">
      <At id="operator">D6410000</At>
      <At id="color">#007DB0</At>
      <At id="textColor">#FFFFFF</At>
      <At id="category">Bus</At>
      </Line>
    </Dep>
    <Dep time="2017-04-11T09:30:00" journey_ctx="1|117|3|105|22062016">
      <Stn id="720390116#105" name="S 3rd St W + S Catlin St" x="-114.022088" y="46.866925" />
      <Line dir="Mountain Line Transfer Center" code="5" name="9">
      <At id="operator">D6410000</At>
      <At id="color">#007DB0</At>
      <At id="textColor">#FFFFFF</At>
      <At id="category">Bus</At>
      </Line>
    </Dep>
    <Operators>
      <Op code="D6410000" name="Mountain Line (MUTD)">
      <Link href="http://www.mountainline.com" id="website" req="0">Mountain Line (MUTD)</Link>
      </Op>
    </Operators>
    </NextDepartures>
  </MultiNextDeparture>
  <MultiNextDeparture>
    <Stn id="720390069#105" name="S Catlin St & S 2nd St W" x="-114.022475" y="46.867869" />
    <NextDepartures>
    <Dep time="2017-04-11T08:52:00" journey_ctx="1|122|2|105|22062016">
      <Stn id="720390069#105" name="S Catlin St + S 2nd St W" x="-114.022475" y="46.867869" />
      <Line dir="Missoula Community Medical Center" code="5" name="9">
      <At id="operator">D6410000</At>
      <At id="color">#007DB0</At>
      <At id="textColor">#FFFFFF</At>
      <At id="category">Bus</At>
      </Line>
    </Dep>
    <Dep time="2017-04-11T09:52:00" journey_ctx="1|122|3|105|22062016">
      <Stn id="720390069#105" name="S Catlin St + S 2nd St W" x="-114.022475" y="46.867869" />
      <Line dir="Missoula Community Medical Center" code="5" name="9">
      <At id="operator">D6410000</At>
      <At id="color">#007DB0</At>
      <At id="textColor">#FFFFFF</At>
      <At id="category">Bus</At>
      </Line>
    </Dep>
    <Operators>
      <Op code="D6410000" name="Mountain Line (MUTD)">
      <Link href="http://www.mountainline.com" id="website" req="0">Mountain Line (MUTD)</Link>
      </Op>
    </Operators>
    </NextDepartures>
  </MultiNextDeparture>
  </MultiNextDepartures>
</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.