Filter by result type
HERE Geocoding and Search has an optional parameter types that allows limiting the results to specific types.
To simplify the usage of this feature, HERE Geocoding and Search API introduces a hierarchical system of values supported by the types filter. These values include:
- The same values as
resultTypeand result sub-types. - "Group" values, which group together logically related result types.
The customer application can set types to either of the values supported by the endpoint or combine values, using a comma separated list.
Note that not all of these values are or will be supported by the types filter for all or any of the endpoints. However, if a value is supported by any of the endpoints, its syntax and semantics will be the same.
Support of types filter by HERE Geocoding and Search endpoints
The values per endpoint which are supported:
| Reverse Geocode | Geocode | Autocomplete | Discover | Autosuggest | Browse | Lookup By ID | |
|---|---|---|---|---|---|---|---|
| area | stable | stable | stable | - | - | - | N/A |
| city | stable | stable | stable | - | - | - | N/A |
| postalCode | - | stable | stable | - | - | - | N/A |
| address | stable | stable | stable | - | - | - | N/A |
| street | stable | stable | stable | - | - | - | N/A |
| houseNumber | stable | stable | stable | - | - | - | N/A |
| place | stable | stable | - | - | - | - | N/A |
"-" - currently not supported; "N/A" - not applicable
Description of the supported values:
area: restricting results to result types:localityoradministrativeAreaincluding all the sub-types.city: restricting results to result typelocalityand locality typecity.postalCode: restricting results to postal codes: either result typepostalCodePointor result typelocalitywith locality typepostalCode. Note that in Ireland and Singapore, where each address has unique postal code,postalCodePointresults are replaced byhouseNumberresults.address: restricting results to result typeshouseNumber,street,postalCodePoint,intersection, oraddressBlock.street: restricting results to result type:street.houseNumber: restricting results to result type:houseNumber, including house number typesPA(Point Address),MPA(Micro Point Address) andinterpolated; including exact house number matches and house number fallbacks.place: restricting results to result type:place.- For
/geocodeendpoint place geocoding is treated as an alternative form of addressing. This allows, for example, geocoding business locations, including business names, in the same way as residential addresses. As a result, theplacetypes filter is typically used in combination with other filters such asaddressorhouseNumber, e.g.,:types=address,place. Specifyingtypes=placecan be useful when the goal is to identify specific places or landmarks. But be aware that address results are not returned and address queries may produce unexpected partially matching place results.
- For
For more information about /types parameter, see: API Reference.
For lookup endpoint, types filter is not applicable and will not be supported at all.
All the values not covered by this table are not supported by the endpoint.
For queries with parameters or values of parameters not supported by specific endpoints, {{book.productName}} responds with a "400" error code.
Note
In rare cases, HERE Geocoding and Search API may still accept non-supported values of
typesfilter or other query parameters and either pass them through or even change the behavior depending on the parameter. This may happen when the feature is in development and is going through testing and feedback process as alpha. Customers are advised not to use non-documented behavior and expect that it may change at any moment. Note additionally, using the types filter on non-supported endpoints (browse, autosuggest, discover) likely results in a 400 error response.
Updated 23 days ago