Download API¶
| Endpoint | ||
|---|---|---|
| GET | Get the nearest stations | /api/user/station |
| POST | Create download order | /api/user/download |
| POST | Create NRCAN results file download order | /api/user/estimation/download |
| GET | Get download order status | /api/download/status/:orderId |
| GET | Download | /api/download/:orderId |
| POST | Get station epoch ratio and MP12 | /api/user/check/station/epoch-ratio |
Get the nearest stations¶
GET https://ppk.geodnet.com/api/user/station
| Header | Example | Type | Required | Description |
|---|---|---|---|---|
| token | eyJhbGciOiJIUzI1Ni... | String | Yes | JWT from sign in |
| Parameter | Example | Type | Required | Description |
|---|---|---|---|---|
| longitude | 10 | String | Yes | Longitude decimal degrees |
| latitude | 20 | String | Yes | Latitude decimal degrees |
| year | 2024 | String | No | UTC year for data availability |
| month | 6 | String | No | UTC month |
| day | 22 | String | No | UTC day |
| hour | 0 | String | No | UTC hour |
Caution
If year/month/day/hour provided, stations are filtered by data availability at that UTC time.
Content type: application/json
| Parameter | Example | Type | Description |
|---|---|---|---|
| code | 200 | Number | Status code |
| message | Success | String | Status code description |
| data.stations | [...] | Array | Station list; empty if none matches |
| data.stations[].name | G001 | String | Station name |
| data.stations[].distance | 10.23 | Number | Distance in km |
Create download order¶
POST https://ppk.geodnet.com/api/user/download
Content type: application/json
| Parameter | Example | Type | Required | Description |
|---|---|---|---|---|
| startYear | 2024 | Number | Yes | Year start |
| startMonth | 6 | Number | Yes | Month start |
| startDay | 22 | Number | Yes | Day start |
| startHour | 0 | Number | Yes | Hour start |
| endYear | 2024 | Number | Yes | Year end |
| endMonth | 6 | Number | Yes | Month end |
| endDay | 23 | Number | Yes | Day end |
| endHour | 0 | Number | Yes | Hour end |
| stations | ["G001"] | Array | Yes | Station list |
| type | 2 | Number | No | Default All; 1: All, 2: 30 second |
| fileType | 0 | Number | No | Default RTCM; 0: RTCM, 1: RINEX 3.04, 2: RINEX 2.11 |
Important
When downloading the RINEX file, only one site can be downloaded per request, and cross-day downloading is not allowed.
Content type: application/json
| Parameter | Example | Type | Description |
|---|---|---|---|
| code | 200 | Number | Status code |
| message | Success | String | Status code description |
| data.orderId | 667bebbe9f32c8ef2dd4643f | String | Order No. |
curl -X POST "https://ppk.geodnet.com/api/user/download" \
-H "Content-Type: application/json" \
-H "token: eyJhbGciOiJIUzI1Ni..." \
-d '{
"startYear": 2024,
"startMonth": 6,
"startDay": 22,
"startHour": 0,
"endYear": 2024,
"endMonth": 6,
"endDay": 23,
"endHour": 0,
"stations": ["G001"],
"type": 2,
"fileType": 0
}'
Create NRCAN results file download order¶
POST https://ppk.geodnet.com/api/user/estimation/download
Content type: application/json
| Parameter | Example | Type | Required | Description |
|---|---|---|---|---|
| startDate | 2025-06-01 | Date | Yes | YYYY-MM-DD |
| endDate | 2025-06-26 | Date | Yes | YYYY-MM-DD format. Maximum 30 days from startDate |
| station | G001 | String | Yes | Base station name |
Caution
The time range (endDate − startDate) cannot exceed 30 days.
Content type: application/json
| Parameter | Example | Type | Description |
|---|---|---|---|
| code | 200 | Number | Status code |
| message | Success | String | Status code description |
| data.orderId | 685e5f63069bfe72e44d17fb | String | Order No. |
Get download order status¶
GET https://ppk.geodnet.com/api/download/status/:orderId
| Header | Example | Type | Required | Description |
|---|---|---|---|---|
| token | eyJhbGciOiJIUzI1Ni... | String | Yes | JWT from sign in |
| Parameter | Example | Type | Required | Description |
|---|---|---|---|---|
| orderId | 685e5f63069bfe72e44d17fb | String | Yes | Order No. |
Content type: application/json
| Parameter | Example | Type | Description |
|---|---|---|---|
| code | 200 | Number | Status code |
| message | Success | String | Status code description |
| data.status | 2 | Number | 1: Processing; 2: Completed; 3: Failed |
Download¶
GET https://ppk.geodnet.com/api/download/:orderId
| Header | Example | Type | Required | Description |
|---|---|---|---|---|
| token | eyJhbGciOiJIUzI1Ni... | String | Yes | JWT from sign in |
| Parameter | Example | Type | Required | Description |
|---|---|---|---|---|
| orderId | 685e5f63069bfe72e44d17fb | String | Yes | Order No. |
Content type: application/json
When request is abnormal, for example invalid orderId or not completed, a JSON is returned:
| Parameter | Example | Type | Description |
|---|---|---|---|
| code | 304 | Number | Error code, see status code list |
| message | The download task has not been completed | String | Error description |
Normal success: returns a ZIP file stream, no JSON body.
If parameters are valid and the order is completed, the response is a ZIP file stream.
If the request is abnormal, for example invalid orderId or not completed, the response is JSON with error code/message.
Get station epoch ratio and MP12¶
POST https://ppk.geodnet.com/api/user/check/station/epoch-ratio
Checks whether a station's data for a time range meets the quality requirements for use.
| Header | Example | Type | Required | Description |
|---|---|---|---|---|
| Content-Type | application/json | String | Yes | Request body format. |
Content type: application/json
| Parameter | Example | Type | Required | Description |
|---|---|---|---|---|
| station | BJFS | String | Yes | Station name. Leading and trailing spaces are trimmed. Cannot be empty. |
| start | 1735689600000 | Number | Yes | Start timestamp in milliseconds, inclusive (>=). Must be a non-negative integer. |
| end | 1735776000000 | Number | Yes | End timestamp in milliseconds, exclusive (<). Must be an integer greater than start. The query interval [start, end) must not span multiple UTC days. |
Time range rules
startandendshould be aligned to the hour. Each QC record represents one hour, and a range shorter than one hour is counted as one hour.startandendmust fall within the same UTC day. Cross-day queries are not supported. To query multiple days, send one request per UTC day.
Content type: application/json
| Parameter | Example | Type | Description |
|---|---|---|---|
| code | 200 | Number | Status code. 200 indicates success; 322 indicates the range is not inside one UTC day. |
| message | Success | String | Status description. |
| data | {...} | Object | Result object. Returned on success. |
| data.station | BJFS | String | Station name after trimming leading and trailing spaces. |
| data.start | 1735689600000 | Number | Start timestamp in milliseconds, inclusive. |
| data.end | 1735776000000 | Number | End timestamp in milliseconds, exclusive. |
| data.ratio | 95.49 | Number | Epoch completeness percentage, rounded to 2 decimal places. 95.49 means 95.49%. The minimum required completeness is 90%. |
| data.mp12 | 0.72 | Number or null | Arithmetic mean of numeric mp.MP12 values, rounded to 4 decimal places. Null when no numeric MP12 values are available. The maximum allowed average is 0.7. |
| data.qualified | false | Boolean | Whether the station data meets all QC requirements. True requires epoch completeness >= 90%, at least one returned QC record, a numeric MP12 value in every returned record, and MP12 average <= 0.7. |
Conditions that prevent use
Station data is not allowed for use (qualified: false) when any of the following conditions is met:
- The unrounded epoch completeness percentage is below 90%.
- The unrounded MP12 average is greater than 0.7.
- No QC records are returned for the query interval.
- Any returned QC record has a missing or non-numeric MP12 value.