Browse developer docs

AutoPilot

Read tractor position, work records, and historical guidance tracks.

Integration workflow

Reconcile tractor passes against completed work. Pull the work record and split its time range into supported track windows before measuring overlap or estimating coverage.

  1. Authorized device
  2. Serial + device IDRead current location
  1. List work records
  2. Start and end timesRead historical track
Fetch current position directly. For past work, use record times to request the historical track.

Compatibility. The API category covers XAG agricultural machinery AutoPilot. Confirm the console generation, regional account support and connection before deploying. The location and track services require the AutoPilot device ID in addition to the serial.

List work records

GET /open/service

serviceName=agricultural-machinery-autopilot-report-list

Report bounds use Unix milliseconds. workArea is in square metres, workMileage in metres and workTime in seconds. Status 2 is ended.

Set XAG_APP_UID and XAG_APP_SECRET in your server environment. Substitute the sample IDs with authorized values.

Request
# Requires curl 7.87+, Python 3 and OpenSSL.
: "${XAG_APP_UID:?Set XAG_APP_UID}"
: "${XAG_APP_SECRET:?Set XAG_APP_SECRET}"
timestamp=$(python3 -c 'import time; print(time.time_ns() // 1000000)')
token=$(printf "%s" "$XAG_APP_UID$timestamp$XAG_APP_SECRET" | openssl dgst -sha1 -r | cut -d " " -f 1)

curl --silent --show-error --fail-with-body --max-time 30 --request GET \
  'https://open.xa.com/open/service' \
  --url-query 'serviceName=agricultural-machinery-autopilot-report-list' \
  --url-query 'serialNumber=YOUR_AUTOPILOT_SN' \
  --url-query 'beginDate=1788134400000' \
  --url-query 'endDate=1788739200000' \
  --url-query 'pageNo=1' \
  --url-query 'pageSize=20' \
  --url-query "appUid=$XAG_APP_UID" \
  --url-query "timestamp=$timestamp" \
  --url-query "token=$token"
Illustrative response
{
  "status": 200,
  "success": true,
  "data": {
    "records": [
      {
        "guid": "example-pass",
        "startTime": 1788200000000,
        "endTime": 1788203600000,
        "workArea": 24500,
        "status": 2
      }
    ]
  }
}

Review request signing

Service reference

All services use /open/service with the common signed query parameters. Additional fields are listed below. Open an operation for its parameters, examples and response notes.

Read current location

GETagricultural-machinery-autopilot-current-location

Required service parameters
sn, deviceID

Use the AutoPilot device ID from the authorized device list.

View operation

List work records

GETagricultural-machinery-autopilot-report-list

Required service parameters
serialNumber, beginDate, endDate, pageNo, pageSize

Filters are in milliseconds and apply to the work start time. Maximum page size is 100.

View operation

Read historical tracks

GETagricultural-machinery-autopilot-location-log

Required service parameters
sn, deviceID, recordStart, recordEnd

Use millisecond bounds no more than two hours apart.

View operation
Location
Richmond Hill, Ontario, Canada