URL

http://webapi.leadmaster.com/api/LMAPI/GetCompaniesByLocation

Description

Used to get list of companies based on given latitude and longitude including features of LX+

HttpMethod

POST

Request Information

Parameters

NameDescriptionAdditional information
request
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "miles": 1.0,
  "latitude": 2.0,
  "longitude": 3.0
}

application/xml, text/xml

Sample:
<GetCompaniesByLocationRequestBO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessObjects.ViewModel">
  <latitude>2</latitude>
  <longitude>3</longitude>
  <miles>1</miles>
</GetCompaniesByLocationRequestBO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "StatusCode": 100,
  "IsSuccess": true,
  "Message": "sample string 2",
  "Result": [
    {
      "CompanyId": 1,
      "CompanyName": "sample string 2",
      "CompanyAddress": "sample string 3",
      "miles": 4.0,
      "latitude": 5.0,
      "longitude": 6.0,
      "CompanyPhone": "sample string 7",
      "ContactName": "sample string 8",
      "RecordURL": "sample string 9"
    },
    {
      "CompanyId": 1,
      "CompanyName": "sample string 2",
      "CompanyAddress": "sample string 3",
      "miles": 4.0,
      "latitude": 5.0,
      "longitude": 6.0,
      "CompanyPhone": "sample string 7",
      "ContactName": "sample string 8",
      "RecordURL": "sample string 9"
    },
    {
      "CompanyId": 1,
      "CompanyName": "sample string 2",
      "CompanyAddress": "sample string 3",
      "miles": 4.0,
      "latitude": 5.0,
      "longitude": 6.0,
      "CompanyPhone": "sample string 7",
      "ContactName": "sample string 8",
      "RecordURL": "sample string 9"
    }
  ]
}

application/xml, text/xml

Sample:
<APIResponseBaseOfArrayOfGetCompaniesByLocationResponseBO6ZPUqztj xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessObjects.ViewModel">
  <IsSuccess>true</IsSuccess>
  <Message>sample string 2</Message>
  <Result>
    <GetCompaniesByLocationResponseBO>
      <CompanyAddress>sample string 3</CompanyAddress>
      <CompanyId>1</CompanyId>
      <CompanyName>sample string 2</CompanyName>
      <CompanyPhone>sample string 7</CompanyPhone>
      <ContactName>sample string 8</ContactName>
      <RecordURL>sample string 9</RecordURL>
      <latitude>5</latitude>
      <longitude>6</longitude>
      <miles>4</miles>
    </GetCompaniesByLocationResponseBO>
    <GetCompaniesByLocationResponseBO>
      <CompanyAddress>sample string 3</CompanyAddress>
      <CompanyId>1</CompanyId>
      <CompanyName>sample string 2</CompanyName>
      <CompanyPhone>sample string 7</CompanyPhone>
      <ContactName>sample string 8</ContactName>
      <RecordURL>sample string 9</RecordURL>
      <latitude>5</latitude>
      <longitude>6</longitude>
      <miles>4</miles>
    </GetCompaniesByLocationResponseBO>
    <GetCompaniesByLocationResponseBO>
      <CompanyAddress>sample string 3</CompanyAddress>
      <CompanyId>1</CompanyId>
      <CompanyName>sample string 2</CompanyName>
      <CompanyPhone>sample string 7</CompanyPhone>
      <ContactName>sample string 8</ContactName>
      <RecordURL>sample string 9</RecordURL>
      <latitude>5</latitude>
      <longitude>6</longitude>
      <miles>4</miles>
    </GetCompaniesByLocationResponseBO>
  </Result>
  <StatusCode>Continue</StatusCode>
</APIResponseBaseOfArrayOfGetCompaniesByLocationResponseBO6ZPUqztj>