Single Shot Request vs. Subscription

HERE GNSS API allows you to request data from HERE GNSS Service in two different modes.

Single Shot Request

When you make a single shot request, the service returns one response Message that contains the current data, for example, the current navigation models of GPS satellites.

After the service has sent you the single response Message, the single shot request is finished.

If you don't make any other single shot requests or subscribe to data in this WebSocket connection, the connection will be closed after about 60 seconds.


When you subscribe to data, you don't get back any data immediately, but the service sends you one Message each time the data you subscribed to changes, for example, each time the navigation models of GPS satellites change.

The service keeps the connection open and continues sending the subscription data until you close the connection or unsubscribe from the data.

If the data you have subscribed to changes very slowly, the service will send WebSocket ping messages to keep the connection open. Your WebSocket library automatically answers with pong messages (if it has been implemented according to the WebSocket specification).

You can subscribe to many different data types in the same connection. Each data type that you have subscribed to will come in a separate Message.

If your connection closes, for example, due to telecommunication problems, you must subscribe to data again after you reconnect to HERE GNSS Service. Use exponential backoff when attempting to reconnect.

results matching ""

    No results matching ""