Skip to content

Overview

This document defines APIs of the GEODNET RTK service, including User Management and Base Station Coverage.

Note

All APIs use a request sign generated from request parameters and your secret appKey. Responses use a business envelope with { code, msg, data }.

Log Data Retention

All log-related data (e.g. session logs, login logs) referenced throughout this document follows a unified retention policy unless otherwise specified in a specific API's parameters.

Note

Log data is retained for the most recent 6 months by default. Queries for data older than 6 months will not return results. Please plan your data capture, export, or archival frequency accordingly.

Encryption parameter

Parameter Type Description
appId String Application ID
appKey String Application Key

Note

appId and appKey uniquely identify your tenant and are provided by GEODNET. Please request them from GEODNET.

Encryption method

  1. Sort the keys of all request parameters in ascending character order, excluding appKey and sign.
  2. Concatenate the corresponding values by that key order to a single string.
  3. Concatenate the string with appKey (append).
  4. Compute MD5 hash of the final string to produce the sign value (hex lowercase).

Important

Do not include appKey or sign in the sorted parameter set. Ensure time values are milliseconds (Unix epoch ms) and MD5 output is lowercase hex.

Encryption example

Example parameter
appId: geodnet
appKey: 2916350764adb542
Request parameters
Parameter Example Type Required Description
appId geodnet String Y Application ID
username geoduser String Y username
password geodpass String Y password
trialDays 7 Number Y Free trial days
time 1718150400000 Number Y Current server timestamp in milliseconds
sign 8dd687e158219da6ccc689aef6c0a6a1 String Y Encrypted signature
Steps
  1. Parameter ordering (excluding sign)

    appId, password, time, trialDays, username
    
  2. Field value concatenation

    geodnet + geodpass + 1718150400000 + 7 + geoduser
    = "geodnetgeodpass17181504000007geoduser"
    
  3. Concat with appKey

    "geodnetgeodpass17181504000007geoduser" + "2916350764adb542"
    = "geodnetgeodpass17181504000007geoduser2916350764adb542"
    
  4. Generate sign

    md5("geodnetgeodpass17181504000007geoduser2916350764adb542")
    = 8dd687e158219da6ccc689aef6c0a6a1
    

Implementation hints

import crypto from "crypto";

function buildSign(params, appKey) {
  const keys = Object.keys(params).filter(k => k !== "sign").sort();
  const concat = keys.map(k => String(params[k])).join("") + appKey;
  return crypto.createHash("md5").update(concat).digest("hex");
}

const params = { appId: "geodnet", username: "geoduser", password: "geodpass", trialDays: 7, time: 1718150400000 };
const sign = buildSign(params, "2916350764adb542");
import hashlib

def build_sign(params: dict, app_key: str) -> str:
  keys = sorted(k for k in params.keys() if k != "sign")
  concat = "".join(str(params[k]) for k in keys) + app_key
  return hashlib.md5(concat.encode("utf-8")).hexdigest()

params = {"appId": "geodnet", "username": "geoduser", "password": "geodpass", "trialDays": 7, "time": 1718150400000}
sign = build_sign(params, "2916350764adb542")

Status codes

Every response carries a status code. See the status code list for what each code means.