GET api/v1/grainbin/lat/{lat}/lon/{lon}/radius/{radius_in_meters}

Provides grain bin details within a given radius based on the latitude and longitude values.

Request Information

Headers

In order to receive live data, you must provide the necessary information to authenticate. This will require an API-Key, which is to be provided within the request header for every request. If an API-Key is not provided, sandbox data will be returned.

Name Description Type Additional Information
API-Key 32 Character GUID key String Required to return live information. If not provided, sandbox data will be returned.

URI Parameters

NameDescriptionTypeAdditional information
lat

Latitude for growers within a certain radius, between -90 and 90 in decimal degrees.

decimal number

Required

lon

Longitude for growers within a certain radius, between -180 and 180 in decimal degrees.

decimal number

Required

radius_in_meters

Radius for the latitude and longitude, Radius Minumum 1: Maximum: 10000 meters.

integer

Required

Body Parameters

None.

Response Information

Resource Description

GrainBin Detail

Collection of V1_Bin
NameDescriptionTypeAdditional information
FMID_Bin_Id

Farm Market iD Internal Bin ID

integer

Required

Lat

The Latitude of the Bin

decimal number

Required

Lon

The Longitude of the Bin

decimal number

Required

Storage_Capacity

The storage capacity of the bin

decimal number

Required

FMID_Land_Id

Farm Market iD Internal Land ID

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "FMID_Bin_Id": 1,
    "Lat": 2.1,
    "Lon": 3.1,
    "Storage_Capacity": 4.0,
    "FMID_Land_Id": 5
  },
  {
    "FMID_Bin_Id": 1,
    "Lat": 2.1,
    "Lon": 3.1,
    "Storage_Capacity": 4.0,
    "FMID_Land_Id": 5
  }
]

text/html

Sample:
[{"FMID_Bin_Id":1,"Lat":2.1,"Lon":3.1,"Storage_Capacity":4.0,"FMID_Land_Id":5},{"FMID_Bin_Id":1,"Lat":2.1,"Lon":3.1,"Storage_Capacity":4.0,"FMID_Land_Id":5}]

application/xml, text/xml

Sample:
<ArrayOfV1_Bin xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FF_API.Models.Grainbin.V1">
  <V1_Bin>
    <FMID_Bin_Id>1</FMID_Bin_Id>
    <FMID_Land_Id>5</FMID_Land_Id>
    <Lat>2.1</Lat>
    <Lon>3.1</Lon>
    <Storage_Capacity>4</Storage_Capacity>
  </V1_Bin>
  <V1_Bin>
    <FMID_Bin_Id>1</FMID_Bin_Id>
    <FMID_Land_Id>5</FMID_Land_Id>
    <Lat>2.1</Lat>
    <Lon>3.1</Lon>
    <Storage_Capacity>4</Storage_Capacity>
  </V1_Bin>
</ArrayOfV1_Bin>