Public Transit API Developer's Guide

Get Cities

This section provides examples of Get Cities request. This API returns a list of cities where were have transit coverage, as well as list of transit operators, from a given location, within a certain radius.


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


The sample response in XML format is as follows:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Res serviceUrl="">
  <Coverage ref_time="2017-04-11T10:37:34">
    <CityCount TT="184" SR="499" RT="2"/>
      <City name="Berlin" display_name="Berlin, Germany" distance="11142" x="13.37698" y="52.51607" state="Berlin" country="Germany" created="2017-04-11T15:56:18" updated="2017-04-11T15:56:18" relevancy="0.84">
        <Cvg quality="1.0" lines="225" stops="2838"/>
          <Op name="S-Bahn Berlin GmbH" type="RT"/>
          <Op name="Ostdeutsche Eisenbahn GmbH" type="RT"/>
          <Op name="DB Regio AG, Berliner Verkehrsbetriebe" type="RT"/>
          <Op name="NEB Betriebsgesellschaft mbH" type="RT"/>
      <City name="Potsdam" display_name="Potsdam, Germany" distance="21573" x="13.04793" y="52.39935" state="Brandenburg" country="Germany" created="2017-04-11T15:56:18" updated="2017-04-11T15:56:18" relevancy="0.0"/>

1. When coordinates (x,y) are not specified, the complete list of cities are returned, sorted alphabetically by city name.

2. When coordinates (x,y) are specified but max and radius are omitted, all cities within the default 150,000 meters are returned, ordered by distance.

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