Understanding the prediction response
A successful request to the GET /v2/prediction endpoint returns a series of LPP messages
containing predicted navigation models. Unlike the assistance endpoint, which returns one
LPP message per GNSS system, the prediction endpoint returns multiple LPP messages per
GNSS system, each covering a specific time interval.
The response format depends on the encoding query parameter:
UPER (default) returns a binary multipart/mixed response, while JER returns
LPP messages in JSON format. For full details on encoding formats, content types,
and base message structure, see Response encoding and formats.
Response headers
| Header | Description |
|---|---|
X-Request-ID | Echoes back the value of the X-Request-ID request header, if provided. |
X-Correlation-ID | An auto-generated UUID that uniquely identifies the request. When contacting support, provide this value to help troubleshoot issues. |
X-Prediction-Next | Query parameters for the next follow-up request to get the next batch of prediction data. Omitted if no more prediction data is available. See Prediction data request. |
Content-Encoding | Indicates the encoding applied to the response body. Supported values: gzip, deflate, br. If omitted, the response is not compressed (identity encoding). Clients should inspect this header to determine how to decode the response. |
Content-Type | Depends on the encoding query parameter and the Accept request header. See Response encoding and formats. |
Validity period
Each prediction LPP message covers a specific time interval. The validity information
is conveyed differently depending on the encoding format.
UPER validity headers
In UPER responses, each multipart part includes additional headers with validity information:
| Header | Description |
|---|---|
X-Validity-Start | Start time of the validity period in seconds since Unix epoch. Omitted if prediction data for this GNSS system is not available. |
X-Validity-Duration | Duration of the validity period in seconds. Omitted if prediction data for this GNSS system is not available. |
X-GNSS-Validity-Start | Start time of the validity period in seconds since the corresponding GNSS epoch. Omitted if prediction data for this GNSS system is not available. |
JER validity object
In JER responses, each message object includes a validity field:
| Field | Type | Description |
|---|---|---|
validity | object | The validity period. Omitted if the message contains error information instead of valid data. |
validity.start | integer | Start time of the validity period in seconds since Unix epoch. |
validity.duration | integer | Duration of the validity period in seconds. |
validity.gnssStart | integer | Start time of the validity period in seconds since the corresponding GNSS epoch. |
NoteThe reference time value in the LPP message (
gnss-ReferenceTimefield) corresponds to
the middle of the validity period, that is,
gnssStart + (duration / 2)(orX-GNSS-Validity-Start + (X-Validity-Duration / 2)for UPER).
Response body examples
UPER example
--boundary
Content-Type: application/octet-stream
X-Constellation: gps
X-Validity-Start: 1772366400
X-Validity-Duration: 14400
X-GNSS-Validity-Start: 1456401618
<binary LPP message 1 for GPS>
--boundary
Content-Type: application/octet-stream
X-Constellation: gps
X-Validity-Start: 1772380800
X-Validity-Duration: 14400
X-GNSS-Validity-Start: 1456416018
<binary LPP message 2 for GPS>
--boundary--
JER example (application/json)
application/json){
"prediction": {
"messages": [
{
"gnss": "gps",
"validity": {
"start": 1772366400,
"duration": 14400,
"gnssStart": 1456401618
},
"lpp": {
"gnss-CommonAssistData": {
"gnss-ReferenceTime": {...}
},
"gnss-GenericAssistData": [
{
"gnss-ID": { "gnss-id": "gps" },
"gnss-NavigationModel": {...}
}
]
}
},
{
"gnss": "gps",
"validity": {
"start": 1772380800,
"duration": 14400,
"gnssStart": 1456416018
},
"lpp": {
"gnss-CommonAssistData": {
"gnss-ReferenceTime": {...}
},
"gnss-GenericAssistData": [
{
"gnss-ID": { "gnss-id": "gps" },
"gnss-NavigationModel": {...}
}
]
}
}
]
}
}Partially unavailable data
If prediction data for a particular GNSS system is temporarily unavailable,
the response still includes an entry for that system, but with an error indication:
- UPER: The
X-GNSS-Errorheader is set (for example,currentlyNotAvailable).
The validity headers are omitted. - JER: The
lppobject includesgnss-Errorinstead of navigation model data.
Thevalidityfield is omitted.
Related information
Updated 4 days ago