GET api/SocialDriver/nearbyfuelstation?latitude={latitude}&longitude={longitude}&radius={radius}

Get nearby fuel stations and their prices for fuel

Request Information

URI Parameters

NameDescriptionTypeAdditional information
latitude

The latitude being queried

decimal number

Required

longitude

The longitude being queried

decimal number

Required

radius

The radius in metres

integer

Required

Body Parameters

None.

Response Information

Resource Description

NearbyFuelStationResponse

ViewNearbyFuelStationResponse
NameDescriptionTypeAdditional information
FuelStations

A list of fuel stations

Collection of ResponseFuelStation

None.

Response Formats

application/json, text/json

Sample:
{
  "FuelStations": [
    {
      "CatNo": 1,
      "Brand": "sample string 2",
      "Name": "sample string 3",
      "Street": "sample string 4",
      "Town": "sample string 5",
      "County": "sample string 6",
      "Postcode": "sample string 7",
      "Latitude": 8.1,
      "Longitude": 9.1,
      "Distance": 10.1,
      "FuelPrices": [
        {
          "FuelType": 1,
          "Price": 1.1,
          "LastUpdated": "2025-04-27T16:50:14.3941531+00:00"
        },
        {
          "FuelType": 1,
          "Price": 1.1,
          "LastUpdated": "2025-04-27T16:50:14.3941531+00:00"
        }
      ],
      "BrandLogoURL": "sample string 11"
    },
    {
      "CatNo": 1,
      "Brand": "sample string 2",
      "Name": "sample string 3",
      "Street": "sample string 4",
      "Town": "sample string 5",
      "County": "sample string 6",
      "Postcode": "sample string 7",
      "Latitude": 8.1,
      "Longitude": 9.1,
      "Distance": 10.1,
      "FuelPrices": [
        {
          "FuelType": 1,
          "Price": 1.1,
          "LastUpdated": "2025-04-27T16:50:14.3941531+00:00"
        },
        {
          "FuelType": 1,
          "Price": 1.1,
          "LastUpdated": "2025-04-27T16:50:14.3941531+00:00"
        }
      ],
      "BrandLogoURL": "sample string 11"
    }
  ]
}

application/xml, text/xml

Sample:
<ViewNearbyFuelStationResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <FuelStations>
    <ResponseFuelStation>
      <CatNo>1</CatNo>
      <Brand>sample string 2</Brand>
      <Name>sample string 3</Name>
      <Street>sample string 4</Street>
      <Town>sample string 5</Town>
      <County>sample string 6</County>
      <Postcode>sample string 7</Postcode>
      <Latitude>8.1</Latitude>
      <Longitude>9.1</Longitude>
      <Distance>10.1</Distance>
      <FuelPrices>
        <ResponseFuelInformation>
          <FuelType>SuperUnleaded</FuelType>
          <Price>1.1</Price>
          <LastUpdated>2025-04-27T16:50:14.3941531+00:00</LastUpdated>
        </ResponseFuelInformation>
        <ResponseFuelInformation>
          <FuelType>SuperUnleaded</FuelType>
          <Price>1.1</Price>
          <LastUpdated>2025-04-27T16:50:14.3941531+00:00</LastUpdated>
        </ResponseFuelInformation>
      </FuelPrices>
      <BrandLogoURL>sample string 11</BrandLogoURL>
    </ResponseFuelStation>
    <ResponseFuelStation>
      <CatNo>1</CatNo>
      <Brand>sample string 2</Brand>
      <Name>sample string 3</Name>
      <Street>sample string 4</Street>
      <Town>sample string 5</Town>
      <County>sample string 6</County>
      <Postcode>sample string 7</Postcode>
      <Latitude>8.1</Latitude>
      <Longitude>9.1</Longitude>
      <Distance>10.1</Distance>
      <FuelPrices>
        <ResponseFuelInformation>
          <FuelType>SuperUnleaded</FuelType>
          <Price>1.1</Price>
          <LastUpdated>2025-04-27T16:50:14.3941531+00:00</LastUpdated>
        </ResponseFuelInformation>
        <ResponseFuelInformation>
          <FuelType>SuperUnleaded</FuelType>
          <Price>1.1</Price>
          <LastUpdated>2025-04-27T16:50:14.3941531+00:00</LastUpdated>
        </ResponseFuelInformation>
      </FuelPrices>
      <BrandLogoURL>sample string 11</BrandLogoURL>
    </ResponseFuelStation>
  </FuelStations>
</ViewNearbyFuelStationResponse>