Signals
The /signals endpoint enables developers to contribute to the continuous improvement of HERE Geocoding and Search response quality by sharing end-user interactions with API response items returned by any endpoint.
Currently, the endpoints that benefit most from end-user feedback are:
- the
/discoverendpoint - the
/autosuggestendpoint
Requests
The /signals endpoint call shares information about an action performed by a user at a specific time on an item at a given rank within a search response.
Each request to the /signals endpoint must include the following fields:
action: The action performed by the user.timestamp: The time the action occurred.correlationId: The identifier of the API response acted upon.resourceId: The identifier of the specific item acted upon.rank: The item's position in the response.
Request Format
A /signals endpoint call is an HTTP 1.1 POST request to the following base URL:
https://signals.search.hereapi.com
The request body must use the x-www-form-urlencoded format:
version=1&timetamp=<timestamp>&resourceId=<resourceId>&correlationId=<correlationId>&rank=<rank>&action=<action>Example:
version=1×tamp=1675403788324&resourceId=here:pds:place:250u09tu-4561b8da952f4fd79c4e1998c3fcf032&correlationId=22457435-efcf-46b9-8c87-62912f3f2f0&rank=0&action=here:gs:action:navigate-toField Details
version
versionEach /signals call body must contain a version field. Currently, only version=1 is supported.
action
actionEvery request to the /signals endpoint must include an action field.
The supported actions are:
action | To be sent when the end-user ... |
|---|---|
here:gs:action:call | uses the result's phone number |
here:gs:action:email | uses the result's email address |
here:gs:action:navigate-to | starts a navigation to the result item |
here:gs:action:navigate-from | starts a navigation from the result item |
here:gs:action:pin | bookmarks a result or adds it to a collection |
here:gs:action:tap | taps on the result displayed on a map |
here:gs:action:view | selects a result in a list |
here:gs:action:share | shares/sends a result to another user or as a mail/PM |
here:gs:action:visit | visits the result's website |
Note:
Applications offering navigation between two search results must send two signals:
- One for the destination (
here:gs:action:navigate-to)- One for the starting location (
here:gs:action:navigate-from)- A
navigate-fromsignal is not required if the starting position is the user’s current location or does not originate from a HERE Geocoding and Search API search result.
correlationId and resourceId
correlationId and resourceIdEach API response includes a header: X-Correlation-ID. Use this value for the correlationId field.
Each response item includes an id field. Use this value for the resourceId field.
timestamp
timestampThe timestamp field must be the Unix Epoch time in milliseconds when the user performed the action.
rank
rankThe rank field represents the index of the item within the items array of the response.
- The first item has index 0.
- For
/lookupresponses (which contain a single item and noitemsarray), setrank=0.
Note
The
/signalsendpoint is released as RESTRICTED. See the privilege section in the feature maturity topic for more information.
For more information, see the API reference.
Updated last month