Get the nearest stations

GET https://ppk.geodnet.com/api/user/station

Query Params

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

If year/month/day/hour provided, stations are filtered by data availability at that UTC time.

Request Header

Header
Example
Type
Required
Description

token

eyJhbGciOiJIUzI1Ni...

String

Yes

JWT from sign in

Response Body 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

Request Example

https://ppk.geodnet.com/api/user/station?longitude=10&latitude=20

cURL

curl -G "https://ppk.geodnet.com/api/user/station" \
  -H "token: eyJhbGciOiJIUzI1Ni..." \
  --data-urlencode "longitude=10" \
  --data-urlencode "latitude=20"

Response200 Success

{
  "code": 200,
  "message": "Success",
  "data": {
    "stations": [
      { "name": "G001", "distance": 10.23 },
      { "name": "G002", "distance": 60.11 }
    ]
  }
}

Last updated