Public Transit API Developer's Guide

By Geocoord

This section provides examples of All Next Departures by Geocoord 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_geocoord
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&lang=en
&startX=-0.135175
&startY=51.510122
&max=3
&max_stn=10
&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_geocoord.json
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&lang=en
&startX=-0.135175
&startY=51.510122
&max=3
&max_stn=10
&time=2017-04-11T08%3A00%3A00

Response

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


<Res serviceUrl="http://ip-10-124-92-114.eu-west-1.compute.internal:8080/hafasproxy/G1B">
  <MultiNextDepartures>
    <MultiNextDeparture>
      <Stn id="402031037#100" name="Piccadilly Circus Underground Station" x="-0.13517" y="51.510123" distance="0" duration="PT0S"/>
      <NextDepartures>
        <Dep time="2017-04-11T08:01:00" journey_ctx="1|95163|1|100|16122015">
          <Stn id="402031037#100" name="Piccadilly Circus Underground Station" x="-0.13517" y="51.510123"/>
          <Line dir="Elephant + Castle Underground Station" code="7" name="Bakerloo">
            <At id="operator">18060022</At>
            <At id="category">Underground</At>
          </Line>
        </Dep>
        <Dep time="2017-04-11T08:02:00" journey_ctx="1|101754|0|100|16122015">
          <Stn id="402031038#100" name="Piccadilly Circus Underground Station" x="-0.135493" y="51.50944"/>
          <Line dir="Cockfosters Underground Station" code="7" name="Piccadilly">
            <At id="operator">18060022</At>
            <At id="category">Underground</At>
          </Line>
        </Dep>
        <Dep time="2017-04-11T08:03:00" journey_ctx="1|95072|0|100|16122015">
          <Stn id="402031036#100" name="Piccadilly Circus Underground Station" x="-0.135278" y="51.510087"/>
          <Line dir="Queen's Park Underground Station" code="7" name="Bakerloo">
            <At id="operator">18060022</At>
            <At id="category">Underground</At>
          </Line>
        </Dep>
        <Operators>
          <Op code="18060022" name="London Underground"/>
        </Operators>
      </NextDepartures>
    </MultiNextDeparture>
    <MultiNextDeparture>
      <Stn id="402000656#100" name="Piccadilly Circus (Stop G), London" x="-0.135565" y="51.510069" distance="28" duration="PT2M33S"/>
      <NextDepartures>
        <Dep time="2017-04-11T08:02:00" journey_ctx="1|186081|0|100|16122015">
          <Stn id="402000656#100" name="Piccadilly Circus (Stop G), London" x="-0.135565" y="51.510069"/>
          <Line dir="Liverpool Street (Stop), London" code="5" name="23">
            <At id="operator">18060035</At>
            <At id="category">Bus</At>
          </Line>
        </Dep>
        <Dep time="2017-04-11T08:03:00" journey_ctx="1|184267|0|100|16122015">
          <Stn id="402000656#100" name="Piccadilly Circus (Stop G), London" x="-0.135565" y="51.510069"/>
          <Line dir="Aldwych Drury Lane (Stop E), London" code="5" name="13">
            <At id="operator">18060032</At>
            <At id="category">Bus</At>
          </Line>
        </Dep>
        <Dep time="2017-04-11T08:07:00" journey_ctx="1|160362|1|100|16122015">
          <Stn id="402000656#100" name="Piccadilly Circus (Stop G), London" x="-0.135565" y="51.510069"/>
          <Line dir="Aldwych Drury Lane (Stop E), London" code="5" name="6">
            <At id="operator">18060024</At>
            <At id="category">Bus</At>
          </Line>
        </Dep>
        <Operators>
          <Op code="18060035" name="TOWER TRANSIT LIMITED"/>
          <Op code="18060032" name="LONDON SOVEREIGN LIMITED"/>
          <Op code="18060024" name="METROLINE TRAVEL LIMITED"/>
        </Operators>
      </NextDepartures>
    </MultiNextDeparture>
    <MultiNextDeparture>
      <Stn id="402000653#100" name="Piccadilly Circus (Stop C), London" x="-0.135979" y="51.509871" distance="63" duration="PT3M15S"/>
      <NextDepartures>
          <Dep time="2017-04-11T08:02:00" journey_ctx="1|150454|2|100|16122015">
          <Stn id="402000653#100" name="Piccadilly Circus (Stop C), London" x="-0.135979" y="51.509871"/>
          <Line dir="West HampsteadWest End Green, London" code="5" name="139">
            <At id="operator">18060024</At>
            <At id="category">Bus</At>
          </Line>
        </Dep>
        <Dep time="2017-04-11T08:03:00" journey_ctx="1|184260|0|100|16122015">
          <Stn id="402000653#100" name="Piccadilly Circus (Stop C), London" x="-0.135979" y="51.509871"/>
          <Line dir="Golders Green (stand GF), Golders Green" code="5" name="13">
            <At id="operator">18060032</At>
            <At id="category">Bus</At>
          </Line>
        </Dep>
        <Dep time="2017-04-11T08:10:00" journey_ctx="1|150457|0|100|16122015">
          <Stn id="402000653#100" name="Piccadilly Circus (Stop C), London" x="-0.135979" y="51.509871"/>
          <Line dir="West HampsteadWest End Green, London" code="5" name="139">
            <At id="operator">18060024</At>
            <At id="category">Bus</At>
          </Line>
        </Dep>
        <Operators>
          <Op code="18060024" name="METROLINE TRAVEL LIMITED"/>
          <Op code="18060032" name="LONDON SOVEREIGN LIMITED"/>
        </Operators>
      </NextDepartures>
    </MultiNextDeparture>
    <MultiNextDeparture>
      <Stn id="402016430#100" name="Trocadero Haymarket (Stop H), London" x="-0.134172" y="51.510608" distance="87" duration="PT3M44S"/>
      <NextDepartures>...</NextDepartures>
    </MultiNextDeparture>
    <MultiNextDeparture>
      <Stn id="402000655#100" name="Piccadilly Circus (Stop F), London" x="-0.136491" y="51.509943" distance="94" duration="PT3M52S"/>
      <NextDepartures>...</NextDepartures>
    </MultiNextDeparture>
    <MultiNextDeparture>
      <Stn id="402000652#100" name="Piccadilly Circus (Stop B), London" x="-0.136428" y="51.509296" distance="127" duration="PT4M32S"/>
      <NextDepartures>...</NextDepartures>
    </MultiNextDeparture>
      <MultiNextDeparture>...</MultiNextDeparture>
      <MultiNextDeparture>...</MultiNextDeparture>
      <MultiNextDeparture>...</MultiNextDeparture>
      <MultiNextDeparture>...</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.