GET api/WhereToBuyLocally?latitude={latitude}&longitude={longitude}&radius={radius}&brandID={brandID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
latitude

string

Required

longitude

string

Required

radius

integer

Required

brandID

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of MapLocation
NameDescriptionTypeAdditional information
DisplayName

string

None.

StreetAddress

string

None.

City

string

None.

State

string

None.

StateAbbreviation

string

None.

ZipCode

string

None.

Phone

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

DistanceFromSource

decimal number

None.

DistanceFromSourceFormatted

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "DisplayName": "sample string 1",
    "StreetAddress": "sample string 2",
    "City": "sample string 3",
    "State": "sample string 4",
    "StateAbbreviation": "sample string 5",
    "ZipCode": "sample string 6",
    "Phone": "sample string 7",
    "Latitude": 8.1,
    "Longitude": 9.1,
    "DistanceFromSource": 10.1,
    "DistanceFromSourceFormatted": "10.10"
  },
  {
    "DisplayName": "sample string 1",
    "StreetAddress": "sample string 2",
    "City": "sample string 3",
    "State": "sample string 4",
    "StateAbbreviation": "sample string 5",
    "ZipCode": "sample string 6",
    "Phone": "sample string 7",
    "Latitude": 8.1,
    "Longitude": 9.1,
    "DistanceFromSource": 10.1,
    "DistanceFromSourceFormatted": "10.10"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMapLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HomeAndGardenApi.Map">
  <MapLocation>
    <City>sample string 3</City>
    <DisplayName>sample string 1</DisplayName>
    <DistanceFromSource>10.1</DistanceFromSource>
    <Latitude>8.1</Latitude>
    <Longitude>9.1</Longitude>
    <Phone>sample string 7</Phone>
    <State>sample string 4</State>
    <StateAbbreviation>sample string 5</StateAbbreviation>
    <StreetAddress>sample string 2</StreetAddress>
    <ZipCode>sample string 6</ZipCode>
  </MapLocation>
  <MapLocation>
    <City>sample string 3</City>
    <DisplayName>sample string 1</DisplayName>
    <DistanceFromSource>10.1</DistanceFromSource>
    <Latitude>8.1</Latitude>
    <Longitude>9.1</Longitude>
    <Phone>sample string 7</Phone>
    <State>sample string 4</State>
    <StateAbbreviation>sample string 5</StateAbbreviation>
    <StreetAddress>sample string 2</StreetAddress>
    <ZipCode>sample string 6</ZipCode>
  </MapLocation>
</ArrayOfMapLocation>