Thanks to visit codestin.com
Credit goes to github.com

Skip to content
David JOULIN edited this page May 9, 2025 · 3 revisions

Welcome to the aog + doc!

Data exchange for Traccar

POST (From Ekylibre or AOG)

payload

  {
    "name": "Castagnet",
    "description": "Ilot PAC 2",
    "area": "POLYGON ((43.38827150557057 -0.2050419195788038, 43.388377215895304 -0.20470553566235594, 43.388479622597174 -0.2044737035037656, 43.38853578103726 -0.2042191427025557, 43.388615063452704 -0.20392367034364156, 43.388790145085835 -0.20360546934207946, 43.388928888662264 -0.20326908542557476, 43.38898174327497 -0.20300088743792344, 43.387809020731055 -0.20168717187328866, 43.38770330941537 -0.20171899197305265, 43.38733662185916 -0.20208265026153072, 43.38702278840563 -0.20239630553456323, 43.386725471003246 -0.20272814372253833, 43.38649091957879 -0.20302816180992522, 43.386715560398414 -0.20330545125463573, 43.386811362853535 -0.2034736432121349, 43.38684439813932 -0.20359183215569487, 43.38715162549377 -0.20384184722917098, 43.38740269185314 -0.2040691336584075, 43.38754143860547 -0.2042191427025557, 43.38770661289675 -0.2044873406893828, 43.38784866242699 -0.2047146271193867, 43.388093118979214 -0.20491918490671424, 43.38827150557057 -0.2050419195788038))"
    }

GET (From Ekylibre or AOG)

  {
    "id": 1,
    "attributes": {},
    "calendarId": 0,
    "name": "Castagnet",
    "description": "Ilot PAC 2",
    "area": "POLYGON ((43.38827150557057 -0.2050419195788038, 43.388377215895304 -0.20470553566235594, 43.388479622597174 -0.2044737035037656, 43.38853578103726 -0.2042191427025557, 43.388615063452704 -0.20392367034364156, 43.388790145085835 -0.20360546934207946, 43.388928888662264 -0.20326908542557476, 43.38898174327497 -0.20300088743792344, 43.387809020731055 -0.20168717187328866, 43.38770330941537 -0.20171899197305265, 43.38733662185916 -0.20208265026153072, 43.38702278840563 -0.20239630553456323, 43.386725471003246 -0.20272814372253833, 43.38649091957879 -0.20302816180992522, 43.386715560398414 -0.20330545125463573, 43.386811362853535 -0.2034736432121349, 43.38684439813932 -0.20359183215569487, 43.38715162549377 -0.20384184722917098, 43.38740269185314 -0.2040691336584075, 43.38754143860547 -0.2042191427025557, 43.38770661289675 -0.2044873406893828, 43.38784866242699 -0.2047146271193867, 43.388093118979214 -0.20491918490671424, 43.38827150557057 -0.2050419195788038))"
    }

POST (From Ekylibre)

payload

{
    "attributes": { "max_speed": 40 },
    "name": "Arion 610",
    "uniqueId": "ARION610_AA123BB",
    "model": "Arion 610"
    "category": "tractor",
    }

GET (From AOG)

  {
    "id": 7,
    "attributes": { "max_speed": 40 },
    "groupId": 0,
    "calendarId": 0,
    "name": "Arion 610",
    "uniqueId": "ARION610_AA123BB",
    "status": "unknown",
    "lastUpdate": "2025-05-05T13:15:18.000+00:00",
    "positionId": 10330,
    "phone": null,
    "model": "Arion 610",
    "contact": null,
    "category": "tractor",
    "disabled": false,
    "expirationTime": null
    }

SEND - UNDER OSMAND PROTOCOL - (From AOG)

  • id or deviceid: The unique identifier for the device. This is a mandatory parameter.
  • valid: Indicates if the location is valid. Acceptable values are "true", "false", "1", and "0".
  • timestamp: The timestamp of the position. It can be in seconds or milliseconds since epoch, ISO 8601 format, or "yyyy-MM-dd HH:mm:ss" format.
  • lat: Latitude of the position. This should be a double value.
  • lon: Longitude of the position. This should be a double value.
  • location: A comma-separated string in the format "latitude,longitude".
  • cell: Cell tower information in the format "mcc,mnc,lac,cellId,signalStrength" or "mcc,mnc,lac,cellId".
  • wifi: WiFi access point information in the format "macAddress,signalStrength". For example "00-14-22-01-23-45,-80".
  • speed: Speed of the device. Units are configurable with knots as a default.
  • bearing or heading: The direction in which the device is moving, in degrees.
  • altitude: Altitude of the device in meters.
  • accuracy: Accuracy of the position in meters.
  • hdop: Horizontal dilution of precision.
  • batt: Battery level of the device.
  • driverUniqueId: Unique identifier for the driver.
  • charge: Indicates if the device is charging. Acceptable values are true and false.

other attributes for agriculture usage stored in attributes

  • toolUniqueId: Tool working number from Ekylibre
  • toolName: Tool name from Ekylibre
  • workingWidth: Working width from AOG. This should be a double value.
  • isWorking: Indicates if the tool of the tractor is in working position. Acceptable values are "true", "false"

GET (From Ekylibre)

 {
    "id": 9919,
    "attributes": {
      "toolUniqueId": "EPAND01"
      "toolName": "épandeur à fumier 6 m",
      "workingWidth": 6.0,
      "isWorking": false,
      "distance": 5912.334438816946,
      "totalDistance": 5915.274736441744,
      "motion": false
    },
    "deviceId": 7,
    "protocol": "osmand",
    "serverTime": "2025-05-05T12:39:15.000+00:00",
    "deviceTime": "2025-05-05T12:39:13.000+00:00",
    "fixTime": "2025-05-05T12:39:13.000+00:00",
    "outdated": false,
    "valid": true,
    "latitude": 47.4492008333333,
    "longitude": -1.57158216666667,
    "altitude": 75.36,
    "speed": 16.5,
    "course": 0,
    "address": null,
    "accuracy": 0.02,
    "network": null,
    "geofenceIds": [1]
  }
Clone this wiki locally