GET api/agronetmobile/getpolygonsforsampling?fieldId={fieldId}

List of polygons

Request Information

URI Parameters

NameDescriptionTypeAdditional information
fieldId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Collection of MapPoint

Response Formats

application/json, text/json

Sample:
[
  [
    {
      "Lat": 1.0,
      "Long": 2.0
    },
    {
      "Lat": 1.0,
      "Long": 2.0
    }
  ],
  [
    {
      "Lat": 1.0,
      "Long": 2.0
    },
    {
      "Lat": 1.0,
      "Long": 2.0
    }
  ]
]

text/html

Sample:
[[{"Lat":1.0,"Long":2.0},{"Lat":1.0,"Long":2.0}],[{"Lat":1.0,"Long":2.0},{"Lat":1.0,"Long":2.0}]]

application/xml, text/xml

Sample:
<ArrayOfArrayOfMapPoint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EkoNET.WebAPI.Models">
  <ArrayOfMapPoint>
    <MapPoint>
      <Lat>1</Lat>
      <Long>2</Long>
    </MapPoint>
    <MapPoint>
      <Lat>1</Lat>
      <Long>2</Long>
    </MapPoint>
  </ArrayOfMapPoint>
  <ArrayOfMapPoint>
    <MapPoint>
      <Lat>1</Lat>
      <Long>2</Long>
    </MapPoint>
    <MapPoint>
      <Lat>1</Lat>
      <Long>2</Long>
    </MapPoint>
  </ArrayOfMapPoint>
</ArrayOfArrayOfMapPoint>