Public Transit API Developer's Guide

Station Search by Name

This section provides examples of Station Search By Name 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/search/by_name
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&y=40.735306
&x=-73.989857
&name=union
&radius=120
&max=3

Response

The sample response in XML format is as follows:

<Res serviceUrl="http://search.st.ext.pt.svc.ovi.com/t0k2/">
    <Stations>
      <Stn id="717080445" name="14 St - Union Sq" distance="70" duration="PT0H1M10S" x="-73.989951" y="40.734673" has_board="1" country="United States" ccode="USA" state="NY" postal="10003" district="Gramercy Park" street="Union Sq E" number="6" city="New York"/>
      <Stn id="717061414" name="Union SQ E/E 15 St" distance="34" duration="PT0H0M34S" x="-73.989609" y="40.735550" has_board="1" country="United States" ccode="USA" state="NY" postal="10003" district="Gramercy Park" street="Union Sq E" number="24" city="New York"/>
      <Stn id="717081137" name="Union Sq - 14 St" distance="93" duration="PT0H1M33S" x="-73.990730" y="40.734789" has_board="1" country="United States" ccode="USA" state="NY" postal="10003" district="Flatiron District" city="New York"/>
    </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.