Browse developer docs

Query sortie trajectories

POSTuav-protection-work-sorties-log

Request

Send POST to /open/service with serviceName=uav-protection-work-sorties-log and the common signing parameters.

Send extra fields in the JSON body

Use the returned jc_id as flight_id.

Request example
# 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 POST \
  'https://open.xa.com/open/service' \
  --url-query 'serviceName=uav-protection-work-sorties-log' \
  --url-query "appUid=$XAG_APP_UID" \
  --url-query "timestamp=$timestamp" \
  --url-query "token=$token" \
  --header 'Content-Type: application/json' \
  --data '{
  "sn": "YOUR_DRONE_SN",
  "work_guid": "YOUR_JOB_GUID",
  "flight_id": "YOUR_SORTIE_ID"
}'
ParameterRequirementMeaning
snRequiredAuthorized equipment serial number.
work_guidRequiredJob identifier returned as guid in the drone task list.
flight_idRequiredThe jc_id from the job’s flight list.
accountConditionalFor personal data authorization, provide the authorized account as country code, hyphen, then phone number.

Response

data contains the points for the requested flight. Preserve point timestamps and units when handing the track to GIS.

Show example response fields and types
{
  "message": "string",
  "status": "number",
  "success": "boolean",
  "data": [
    {
      "pump_rate": "number",
      "yaw_angle": "number",
      "current_longitude": "number",
      "ground_height": "number",
      "speed": "number",
      "sp_switch": "number",
      "current_latitude": "number",
      "current_height": "number",
      "flight_time": "number",
      "pump_flow": "number",
      "spray_width": "number",
      "timestamp": "number",
      "segment": "number",
      "sling_no": "number",
      "weight": "number",
      "loading_timestamp": "number",
      "unloading_timestamp": "number",
      "real_mileage": "number",
      "payload_weight_kg": "number",
      "confidence_state": "number",
      "payload_ground_height": "number",
      "payload_takeoff_relative_height": "number"
    }
  ]
}

All Agricultural Drones operations

Location
Richmond Hill, Ontario, Canada