GET api/Branch?Latitude={Latitude}&Longitude={Longitude}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Latitude

decimal number

None.

Longitude

decimal number

None.

Body Parameters

None.

Response Information

Resource Description

Collection of BranchInfo
NameDescriptionTypeAdditional information
Id

integer

None.

Distance

decimal number

None.

Name

string

None.

Address

AddressInfo

None.

Telephone

string

None.

Fax

string

None.

Email

string

None.

OpeningTimes

OpeningTimesInfo

None.

Url

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Description

string

None.

TeamImages

Collection of GalleryImageInfo

None.

Testimonials

Collection of TestimonialInfo

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Distance": 1.0,
    "Name": "sample string 2",
    "Address": {
      "HouseNameNumber": "sample string 1",
      "Street": "sample string 2",
      "Locality": "sample string 3",
      "City": "sample string 4",
      "County": "sample string 5",
      "Postcode": "sample string 6"
    },
    "Telephone": "sample string 3",
    "Fax": "sample string 4",
    "Email": "sample string 5",
    "OpeningTimes": {
      "Monday": "sample string 1",
      "Tuesday": "sample string 2",
      "Wednesday": "sample string 3",
      "Thursday": "sample string 4",
      "Friday": "sample string 5",
      "Saturday": "sample string 6",
      "Sunday": "sample string 7"
    },
    "Url": "sample string 6",
    "Latitude": 1.0,
    "Longitude": 1.0,
    "Description": "sample string 7",
    "TeamImages": [
      {
        "Thumbnail": "sample string 1",
        "Image": "sample string 2",
        "Id": 3
      },
      {
        "Thumbnail": "sample string 1",
        "Image": "sample string 2",
        "Id": 3
      }
    ],
    "Testimonials": [
      {
        "CustomerName": "sample string 1",
        "Testimonial": "sample string 2"
      },
      {
        "CustomerName": "sample string 1",
        "Testimonial": "sample string 2"
      }
    ]
  },
  {
    "Id": 1,
    "Distance": 1.0,
    "Name": "sample string 2",
    "Address": {
      "HouseNameNumber": "sample string 1",
      "Street": "sample string 2",
      "Locality": "sample string 3",
      "City": "sample string 4",
      "County": "sample string 5",
      "Postcode": "sample string 6"
    },
    "Telephone": "sample string 3",
    "Fax": "sample string 4",
    "Email": "sample string 5",
    "OpeningTimes": {
      "Monday": "sample string 1",
      "Tuesday": "sample string 2",
      "Wednesday": "sample string 3",
      "Thursday": "sample string 4",
      "Friday": "sample string 5",
      "Saturday": "sample string 6",
      "Sunday": "sample string 7"
    },
    "Url": "sample string 6",
    "Latitude": 1.0,
    "Longitude": 1.0,
    "Description": "sample string 7",
    "TeamImages": [
      {
        "Thumbnail": "sample string 1",
        "Image": "sample string 2",
        "Id": 3
      },
      {
        "Thumbnail": "sample string 1",
        "Image": "sample string 2",
        "Id": 3
      }
    ],
    "Testimonials": [
      {
        "CustomerName": "sample string 1",
        "Testimonial": "sample string 2"
      },
      {
        "CustomerName": "sample string 1",
        "Testimonial": "sample string 2"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfBranchInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pattinsons.Domain.Team">
  <BranchInfo>
    <Address xmlns:d3p1="http://schemas.datacontract.org/2004/07/Pattinsons.Domain.Property.Address">
      <d3p1:City>sample string 4</d3p1:City>
      <d3p1:County>sample string 5</d3p1:County>
      <d3p1:HouseNameNumber>sample string 1</d3p1:HouseNameNumber>
      <d3p1:Locality>sample string 3</d3p1:Locality>
      <d3p1:Postcode>sample string 6</d3p1:Postcode>
      <d3p1:Street>sample string 2</d3p1:Street>
    </Address>
    <Description>sample string 7</Description>
    <Distance>1</Distance>
    <Email>sample string 5</Email>
    <Fax>sample string 4</Fax>
    <Id>1</Id>
    <Latitude>1</Latitude>
    <Longitude>1</Longitude>
    <Name>sample string 2</Name>
    <OpeningTimes>
      <Friday>sample string 5</Friday>
      <Monday>sample string 1</Monday>
      <Saturday>sample string 6</Saturday>
      <Sunday>sample string 7</Sunday>
      <Thursday>sample string 4</Thursday>
      <Tuesday>sample string 2</Tuesday>
      <Wednesday>sample string 3</Wednesday>
    </OpeningTimes>
    <TeamImages xmlns:d3p1="http://schemas.datacontract.org/2004/07/Pattinsons.Domain.Property.Info">
      <d3p1:GalleryImageInfo>
        <d3p1:Id>3</d3p1:Id>
        <d3p1:Image>sample string 2</d3p1:Image>
        <d3p1:Thumbnail>sample string 1</d3p1:Thumbnail>
      </d3p1:GalleryImageInfo>
      <d3p1:GalleryImageInfo>
        <d3p1:Id>3</d3p1:Id>
        <d3p1:Image>sample string 2</d3p1:Image>
        <d3p1:Thumbnail>sample string 1</d3p1:Thumbnail>
      </d3p1:GalleryImageInfo>
    </TeamImages>
    <Telephone>sample string 3</Telephone>
    <Testimonials>
      <TestimonialInfo>
        <CustomerName>sample string 1</CustomerName>
        <Testimonial>sample string 2</Testimonial>
      </TestimonialInfo>
      <TestimonialInfo>
        <CustomerName>sample string 1</CustomerName>
        <Testimonial>sample string 2</Testimonial>
      </TestimonialInfo>
    </Testimonials>
    <Url>sample string 6</Url>
  </BranchInfo>
  <BranchInfo>
    <Address xmlns:d3p1="http://schemas.datacontract.org/2004/07/Pattinsons.Domain.Property.Address">
      <d3p1:City>sample string 4</d3p1:City>
      <d3p1:County>sample string 5</d3p1:County>
      <d3p1:HouseNameNumber>sample string 1</d3p1:HouseNameNumber>
      <d3p1:Locality>sample string 3</d3p1:Locality>
      <d3p1:Postcode>sample string 6</d3p1:Postcode>
      <d3p1:Street>sample string 2</d3p1:Street>
    </Address>
    <Description>sample string 7</Description>
    <Distance>1</Distance>
    <Email>sample string 5</Email>
    <Fax>sample string 4</Fax>
    <Id>1</Id>
    <Latitude>1</Latitude>
    <Longitude>1</Longitude>
    <Name>sample string 2</Name>
    <OpeningTimes>
      <Friday>sample string 5</Friday>
      <Monday>sample string 1</Monday>
      <Saturday>sample string 6</Saturday>
      <Sunday>sample string 7</Sunday>
      <Thursday>sample string 4</Thursday>
      <Tuesday>sample string 2</Tuesday>
      <Wednesday>sample string 3</Wednesday>
    </OpeningTimes>
    <TeamImages xmlns:d3p1="http://schemas.datacontract.org/2004/07/Pattinsons.Domain.Property.Info">
      <d3p1:GalleryImageInfo>
        <d3p1:Id>3</d3p1:Id>
        <d3p1:Image>sample string 2</d3p1:Image>
        <d3p1:Thumbnail>sample string 1</d3p1:Thumbnail>
      </d3p1:GalleryImageInfo>
      <d3p1:GalleryImageInfo>
        <d3p1:Id>3</d3p1:Id>
        <d3p1:Image>sample string 2</d3p1:Image>
        <d3p1:Thumbnail>sample string 1</d3p1:Thumbnail>
      </d3p1:GalleryImageInfo>
    </TeamImages>
    <Telephone>sample string 3</Telephone>
    <Testimonials>
      <TestimonialInfo>
        <CustomerName>sample string 1</CustomerName>
        <Testimonial>sample string 2</Testimonial>
      </TestimonialInfo>
      <TestimonialInfo>
        <CustomerName>sample string 1</CustomerName>
        <Testimonial>sample string 2</Testimonial>
      </TestimonialInfo>
    </Testimonials>
    <Url>sample string 6</Url>
  </BranchInfo>
</ArrayOfBranchInfo>