POST api/Masters/GetCurrentLocationDetails?latitude={latitude}&longitude={longitude}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
latitude

string

Required

longitude

string

Required

Body Parameters

None.

Response Information

Resource Description

GetCurrentLocationResponse
NameDescriptionTypeAdditional information
DistrictId

integer

None.

StateId

integer

None.

BlockId

integer

None.

IsSuccessful

boolean

None.

SuccessMessage

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "DistrictId": 1,
  "StateId": 2,
  "BlockId": 3,
  "IsSuccessful": true,
  "SuccessMessage": "sample string 5",
  "ErrorMessage": "sample string 6"
}

application/xml, text/xml

Sample:
<GetCurrentLocationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGROMET_MASTERS">
  <BlockId>3</BlockId>
  <DistrictId>1</DistrictId>
  <ErrorMessage>sample string 6</ErrorMessage>
  <IsSuccessful>true</IsSuccessful>
  <StateId>2</StateId>
  <SuccessMessage>sample string 5</SuccessMessage>
</GetCurrentLocationResponse>