> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# HERE

> HERE Geocoding & Search v7 (geocode, reverse geocode, place search by text or category, lookup by id) and Routing v8 (traffic-aware routes for cars, trucks, walking and more).

![](https://mintcdn.com/webrouter/gPu3tCeozwRcDBjt/logo/data-apis/here-maps.svg?fit=max\&auto=format\&n=gPu3tCeozwRcDBjt\&q=85\&s=8e332e217dfa96954fcb4e05626aba3a)

[Web Catalog · Maps](https://docs.webrouter.net/data-apis.md?category=maps)

Needs&#x20;

`HERE_API_KEY`

Endpoints

6

Auth

Key in query

[Vendor docs](https://docs.here.com/geocoding-and-search/docs/introduction-to-here-geocoding-search-api-v7)

&#x20;·&#x20;

[Pricing](https://www.here.com/get-started/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `HERE_API_KEY` | required | A HERE API key (platform.here.com > Access manager > Apps > API keys), sent as the apiKey query parameter. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Each service has its own host; this entry routes each call to the right one.
* Points are latitude first (at=52.5308,13.3856; origin=52.5308,13.3856), but a bbox is west longitude, south latitude, east longitude, north latitude.
* Search areas: in=countryCode:USA,CAN (ISO alpha-3, uppercase), in=circle:52.53,13.38;r=10000 (metres) or in=bbox:13.08,52.33,13.76,52.67.
* Parameters marked RESTRICTED or ALPHA in HERE's reference need a contract or may change; they are left out here.

## Endpoints

GET

Geocode an address or place

Coordinates, full postal address and match scoring for a free-text or qualified address query.

[Open](#here-maps-geocode)

GET

Reverse geocode a coordinate

The nearest address, street, place or area to a point.

[Open](#here-maps-revgeocode)

GET

Search places and addresses by text

Places and addresses matching free text (a name, category, chain or phone number) near a point or in an area, by relevance.

[Open](#here-maps-discover)

GET

Browse places by category near a point

Places filtered by HERE category, chain, cuisine or name, ranked by distance from a point.

[Open](#here-maps-browse)

GET

Look up a place by HERE id

The full record of one result (address, contacts, opening hours, categories) by the id a search returned.

[Open](#here-maps-lookup)

GET

Calculate a route

Routes between an origin and a destination, through optional vias, with duration, length, traffic and turn-by-turn actions.

[Open](#here-maps-routes)

### Geocode an address or place

GET

`/v1/geocode`

`here-maps.geocode`

Coordinates, full postal address and match scoring for a free-text or qualified address query.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q`</td><td>string</td><td>query</td><td>Free-text query; q or qq is required. Example `Invalidenstr 116, 10115 Berlin`</td></tr>

    <tr>
      <td>
        `qq`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Qualified query, semicolon-separated sub-parameters, e.g. houseNumber=116;street=Invalidenstr;city=Berlin;country=Germany.
      </td>
    </tr>

    <tr>
      <td>
        `at`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Search centre as lat,lon, to favour nearby matches.
      </td>
    </tr>

    <tr><td>`area`</td><td>string</td><td>query</td><td>Hard country filter: countryCode:DEU or countryCode:CAN,MEX,USA. Example `countryCode:DEU`</td></tr>

    <tr>
      <td>
        `types`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated result types, e.g. address, area, city, houseNumber, place, postalCode, street.
      </td>
    </tr>

    <tr>
      <td>
        `lang`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        BCP 47 language code for results.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results, 1-100, default 20.
      </td>
    </tr>

    <tr>
      <td>
        `politicalView`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO alpha-3 country code for disputed borders.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.here.com/geocoding-and-search/reference/get_geocode) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-geocode), [API Ninjas](https://docs.webrouter.net/data-apis/apininjas.md#apininjas-geocode), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-geocode-search), [Google Maps Platform](https://docs.webrouter.net/data-apis/google-maps.md#google-maps-geocode-forward), [GraphHopper Directions API](https://docs.webrouter.net/data-apis/graphhopper.md#graphhopper-geocode-forward), [OpenCage Geocoding](https://docs.webrouter.net/data-apis/opencage.md#opencage-geocode-forward)

```python Python theme={null}
router.call_data_api("here-maps.geocode", {'q': 'Invalidenstr 116, 10115 Berlin', 'area': 'countryCode:DEU'})
```

```text MCP theme={null}
call_data_api(endpoint="here-maps.geocode", params={"q": "Invalidenstr 116, 10115 Berlin", "area": "countryCode:DEU"})
```

### Reverse geocode a coordinate

GET

`/v1/revgeocode`

`here-maps.revgeocode`

The nearest address, street, place or area to a point.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`at`</td><td>string</td><td>query</td><td>lat,lon; at or in=circle is required. Example `52.5308,13.3856`</td></tr>

    <tr>
      <td>
        `area`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        circle:lat,lon;r=metres, instead of at.
      </td>
    </tr>

    <tr>
      <td>
        `types`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated: address, area, city, houseNumber, place, street.
      </td>
    </tr>

    <tr>
      <td>
        `bearing`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Heading in degrees from north, to match the street being driven (types=street only).
      </td>
    </tr>

    <tr>
      <td>
        `lang`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        BCP 47 language code.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results, 1-100, default 1.
      </td>
    </tr>

    <tr>
      <td>
        `politicalView`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO alpha-3 country code for disputed borders.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.here.com/geocoding-and-search/reference/get_revgeocode) · Same job: [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-geocode-reverse), [Google Maps Platform](https://docs.webrouter.net/data-apis/google-maps.md#google-maps-geocode-reverse), [GraphHopper Directions API](https://docs.webrouter.net/data-apis/graphhopper.md#graphhopper-geocode-reverse), [OpenCage Geocoding](https://docs.webrouter.net/data-apis/opencage.md#opencage-geocode-reverse), [TomTom](https://docs.webrouter.net/data-apis/tomtom.md#tomtom-geocode-reverse)

```python Python theme={null}
router.call_data_api("here-maps.revgeocode", {'at': '52.5308,13.3856'})
```

```text MCP theme={null}
call_data_api(endpoint="here-maps.revgeocode", params={"at": "52.5308,13.3856"})
```

### Search places and addresses by text

GET

`/v1/discover`

`here-maps.discover`

Places and addresses matching free text (a name, category, chain or phone number) near a point or in an area, by relevance.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>Free-text query. Example `coffee`</td></tr>
    <tr><td>`at`</td><td>string</td><td>query</td><td>Search centre lat,lon; one of at, in=circle or in=bbox is required. Example `52.5308,13.3856`</td></tr>

    <tr>
      <td>
        `area`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        countryCode:..., circle:lat,lon;r=metres or bbox:west,south,east,north.
      </td>
    </tr>

    <tr>
      <td>
        `lang`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        BCP 47 language code.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results, 1-100, default 20.
      </td>
    </tr>

    <tr>
      <td>
        `politicalView`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO alpha-3 country code for disputed borders.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.here.com/geocoding-and-search/reference/get_discover) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-places-search), [Atly](https://docs.webrouter.net/data-apis/atly.md#atly-places-search), [Best Buy](https://docs.webrouter.net/data-apis/bestbuy.md#bestbuy-stores-search), [FDIC BankFind Suite](https://docs.webrouter.net/data-apis/fdic.md#fdic-locations-search), [Foursquare Places API](https://docs.webrouter.net/data-apis/foursquare.md#foursquare-places-search), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-places-search)

```python Python theme={null}
router.call_data_api("here-maps.discover", {'q': 'coffee', 'at': '52.5308,13.3856'})
```

```text MCP theme={null}
call_data_api(endpoint="here-maps.discover", params={"q": "coffee", "at": "52.5308,13.3856"})
```

### Browse places by category near a point

GET

`/v1/browse`

`here-maps.browse`

Places filtered by HERE category, chain, cuisine or name, ranked by distance from a point.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`at` required</td><td>string</td><td>query</td><td>Search centre lat,lon. Example `52.5308,13.3856`</td></tr>

    <tr>
      <td>
        `categories`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated HERE category ids; prefix ! to exclude one (ids are listed in the HERE Places Category System).
      </td>
    </tr>

    <tr>
      <td>
        `chains`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated HERE chain ids.
      </td>
    </tr>

    <tr>
      <td>
        `foodTypes`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated HERE cuisine ids.
      </td>
    </tr>

    <tr>
      <td>
        `name`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Partial match on the place name.
      </td>
    </tr>

    <tr>
      <td>
        `area`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Hard area filter: countryCode:..., circle:lat,lon;r=metres or bbox:west,south,east,north.
      </td>
    </tr>

    <tr>
      <td>
        `lang`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        BCP 47 language code.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results, 1-100, default 20.
      </td>
    </tr>

    <tr>
      <td>
        `politicalView`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO alpha-3 country code for disputed borders.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.here.com/geocoding-and-search/reference/get_browse) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-places-search), [Atly](https://docs.webrouter.net/data-apis/atly.md#atly-places-search), [Best Buy](https://docs.webrouter.net/data-apis/bestbuy.md#bestbuy-stores-search), [FDIC BankFind Suite](https://docs.webrouter.net/data-apis/fdic.md#fdic-locations-search), [Foursquare Places API](https://docs.webrouter.net/data-apis/foursquare.md#foursquare-places-search), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-places-search)

```python Python theme={null}
router.call_data_api("here-maps.browse", {'at': '52.5308,13.3856'})
```

```text MCP theme={null}
call_data_api(endpoint="here-maps.browse", params={"at": "52.5308,13.3856"})
```

### Look up a place by HERE id

GET

`/v1/lookup`

`here-maps.lookup`

The full record of one result (address, contacts, opening hours, categories) by the id a search returned.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`id` required</td><td>string</td><td>query</td><td>A result id from geocode, discover or browse. Example `here:pds:place:276u33db-8097f3194e4b411081b761ea9a366776`</td></tr>

    <tr>
      <td>
        `lang`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        BCP 47 language code.
      </td>
    </tr>

    <tr>
      <td>
        `politicalView`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO alpha-3 country code for disputed borders.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.here.com/geocoding-and-search/reference/get_lookup) · Same job: [Atly](https://docs.webrouter.net/data-apis/atly.md#atly-places-get), [Foursquare Places API](https://docs.webrouter.net/data-apis/foursquare.md#foursquare-places-get), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-places-details), [Google Maps Platform](https://docs.webrouter.net/data-apis/google-maps.md#google-maps-places-details), [Whitepages Pro](https://docs.webrouter.net/data-apis/whitepages.md#whitepages-property-owners), [Yelp Fusion](https://docs.webrouter.net/data-apis/yelp.md#yelp-businesses-get)

```python Python theme={null}
router.call_data_api("here-maps.lookup", {'id': 'here:pds:place:276u33db-8097f3194e4b411081b761ea9a366776'})
```

```text MCP theme={null}
call_data_api(endpoint="here-maps.lookup", params={"id": "here:pds:place:276u33db-8097f3194e4b411081b761ea9a366776"})
```

### Calculate a route

GET

`/v8/routes`

`here-maps.routes`

Routes between an origin and a destination, through optional vias, with duration, length, traffic and turn-by-turn actions.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`transportMode` required</td><td>string</td><td>query</td><td>Mode; bicycle, bus, privateBus and networkRestrictedTruck are beta. One of `car`, `truck`, `pedestrian`, `bicycle`, `scooter`, `taxi`, `bus`, `privateBus`, `networkRestrictedTruck` Example `car`</td></tr>
    <tr><td>`origin` required</td><td>string</td><td>query</td><td>lat,lon of the start. Example `52.5308,13.3847`</td></tr>
    <tr><td>`destination` required</td><td>string</td><td>query</td><td>lat,lon of the end. Example `52.5323,13.3789`</td></tr>

    <tr>
      <td>
        `via`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Stops in order, each lat,lon (append !passThrough=true to pass without stopping); sent as repeated via parameters.
      </td>
    </tr>

    <tr><td>`return_parts`</td><td>string</td><td>query</td><td>Comma-separated parts to include: summary, polyline, actions, instructions, travelSummary, turnByTurnActions, typicalDuration, elevation, incidents, tolls... Example `summary,polyline`</td></tr>
    <tr><td>`routingMode`</td><td>string</td><td>query</td><td>Default fast. One of `fast`, `short`</td></tr>

    <tr>
      <td>
        `departureTime`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        RFC 3339 date-time, or any for time-independent routing.
      </td>
    </tr>

    <tr>
      <td>
        `arrivalTime`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        RFC 3339 date-time to arrive by.
      </td>
    </tr>

    <tr>
      <td>
        `alternatives`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Alternative routes, 0-6, default 0.
      </td>
    </tr>

    <tr>
      <td>
        `avoid_features`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated: tollRoad, controlledAccessHighway, ferry, carShuttleTrain, tunnel, dirtRoad, seasonalClosure, uTurns...
      </td>
    </tr>

    <tr><td>`units`</td><td>string</td><td>query</td><td>Units in instructions, default metric. One of `metric`, `imperial`</td></tr>

    <tr>
      <td>
        `lang`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Preferred BCP 47 language for instructions.
      </td>
    </tr>

    <tr>
      <td>
        `currency`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO 4217 code for toll costs.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.here.com/routing/reference/routing-api-v8-calculateroutes) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-directions-driving), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-routing), [Mapbox](https://docs.webrouter.net/data-apis/mapbox.md#mapbox-directions-get), [TomTom](https://docs.webrouter.net/data-apis/tomtom.md#tomtom-routing-calculate)

```python Python theme={null}
router.call_data_api("here-maps.routes", {'transportMode': 'car', 'origin': '52.5308,13.3847', 'destination': '52.5323,13.3789', 'return_parts': 'summary,polyline'})
```

```text MCP theme={null}
call_data_api(endpoint="here-maps.routes", params={"transportMode": "car", "origin": "52.5308,13.3847", "destination": "52.5323,13.3789", "return_parts": "summary,polyline"})
```

> [!NOTE]
>
> * Pass return to choose what each route section carries: summary for duration and length, polyline for geometry, actions and instructions for turn-by-turn.
> * polyline comes in HERE's Flexible Polyline encoding, not Google's.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.