GET api/Equipments/{spreaderId}/SimplifiedMessages/Last

Get the last messages of a specific equipements. The data from this call is simplified.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
spreaderId

Id of the equipment

integer

Required

Body Parameters

None.

Response Information

Resource Description

List of Messages

Collection of SimplifiedSpreaderMessage
NameDescriptionTypeAdditional information
Id

Id of the message.

integer

None.

EquipmentID

Id of the

integer

None.

Timestamp

Timestamp of the board computer

date

None.

Latitude

Latitude of the position of the Spreader

decimal number

None.

Longitude

Longitude of the position of the Spreader

decimal number

None.

SpreaderActivity

Activity of the spreader: 0 = Driving without spreading 1 = Spreading

byte

None.

SpreaderWidth

Working width in meters of the spreader

decimal number

None.

SpreaderWidthLeft

The distance to the left of the spreader that is sprinkled by the spreader. SpreaderWidthRight is calculated by substracting this value from SpreaderWidth.

decimal number

None.

SpreaderDosage

The grams of salt that is used for every square meter

decimal number

None.

PercentageLiquid

A part of the compound that is sprinkled can be liquid. This value determines the percentage that is liquid. This liquid is mixed with solid salt.

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "EquipmentID": 2,
    "Timestamp": "2020-02-14T21:45:10.2079559+00:00",
    "Latitude": 4.0,
    "Longitude": 5.0,
    "SpreaderActivity": 64,
    "SpreaderWidth": 1.0,
    "SpreaderWidthLeft": 1.0,
    "SpreaderDosage": 1.0,
    "PercentageLiquid": 1
  },
  {
    "Id": 1,
    "EquipmentID": 2,
    "Timestamp": "2020-02-14T21:45:10.2079559+00:00",
    "Latitude": 4.0,
    "Longitude": 5.0,
    "SpreaderActivity": 64,
    "SpreaderWidth": 1.0,
    "SpreaderWidthLeft": 1.0,
    "SpreaderDosage": 1.0,
    "PercentageLiquid": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfSimplifiedSpreaderMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gladheiddata.nl.Models">
  <SimplifiedSpreaderMessage>
    <EquipmentID>2</EquipmentID>
    <Id>1</Id>
    <Latitude>4</Latitude>
    <Longitude>5</Longitude>
    <PercentageLiquid>1</PercentageLiquid>
    <SpreaderActivity>64</SpreaderActivity>
    <SpreaderDosage>1</SpreaderDosage>
    <SpreaderWidth>1</SpreaderWidth>
    <SpreaderWidthLeft>1</SpreaderWidthLeft>
    <Timestamp>2020-02-14T21:45:10.2079559+00:00</Timestamp>
  </SimplifiedSpreaderMessage>
  <SimplifiedSpreaderMessage>
    <EquipmentID>2</EquipmentID>
    <Id>1</Id>
    <Latitude>4</Latitude>
    <Longitude>5</Longitude>
    <PercentageLiquid>1</PercentageLiquid>
    <SpreaderActivity>64</SpreaderActivity>
    <SpreaderDosage>1</SpreaderDosage>
    <SpreaderWidth>1</SpreaderWidth>
    <SpreaderWidthLeft>1</SpreaderWidthLeft>
    <Timestamp>2020-02-14T21:45:10.2079559+00:00</Timestamp>
  </SimplifiedSpreaderMessage>
</ArrayOfSimplifiedSpreaderMessage>