GET api/BikeStation?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

BikeStationModel
NameDescriptionTypeAdditional information
Stations

Collection of Station

None.

Response Formats

application/json, text/json

Sample:
{
  "Stations": [
    {
      "UnifiedId": 1,
      "DockingStationId": 2,
      "Name": "sample string 3",
      "LocationId": 4,
      "Status": 5,
      "AvailableBikes": 6,
      "DistanceText": "sample string 7",
      "Distance": 8.1,
      "Location": {
        "UnifiedId": 1,
        "LocationId": 2,
        "Latitude": 3.1,
        "Longitude": 4.1,
        "Altitude": 5,
        "Country": "sample string 6",
        "City": "sample string 7",
        "Street": "sample string 8",
        "SuiteId": {},
        "ZipCode": "sample string 10",
        "StreetBuildingIdentifier": "sample string 11",
        "FloorIdentifier": {},
        "DistrictName": "sample string 13",
        "DisplayName": "sample string 14"
      }
    },
    {
      "UnifiedId": 1,
      "DockingStationId": 2,
      "Name": "sample string 3",
      "LocationId": 4,
      "Status": 5,
      "AvailableBikes": 6,
      "DistanceText": "sample string 7",
      "Distance": 8.1,
      "Location": {
        "UnifiedId": 1,
        "LocationId": 2,
        "Latitude": 3.1,
        "Longitude": 4.1,
        "Altitude": 5,
        "Country": "sample string 6",
        "City": "sample string 7",
        "Street": "sample string 8",
        "SuiteId": {},
        "ZipCode": "sample string 10",
        "StreetBuildingIdentifier": "sample string 11",
        "FloorIdentifier": {},
        "DistrictName": "sample string 13",
        "DisplayName": "sample string 14"
      }
    }
  ]
}

application/xml, text/xml

Sample:
<BikeStationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bysykkel.Models">
  <Stations>
    <Station>
      <AvailableBikes>6</AvailableBikes>
      <Distance>8.1</Distance>
      <DistanceText>sample string 7</DistanceText>
      <DockingStationId>2</DockingStationId>
      <Location>
        <Altitude>5</Altitude>
        <City>sample string 7</City>
        <Country>sample string 6</Country>
        <DisplayName>sample string 14</DisplayName>
        <DistrictName>sample string 13</DistrictName>
        <FloorIdentifier />
        <Latitude>3.1</Latitude>
        <LocationId>2</LocationId>
        <Longitude>4.1</Longitude>
        <Street>sample string 8</Street>
        <StreetBuildingIdentifier>sample string 11</StreetBuildingIdentifier>
        <SuiteId />
        <UnifiedId>1</UnifiedId>
        <ZipCode>sample string 10</ZipCode>
      </Location>
      <LocationId>4</LocationId>
      <Name>sample string 3</Name>
      <Status>5</Status>
      <UnifiedId>1</UnifiedId>
    </Station>
    <Station>
      <AvailableBikes>6</AvailableBikes>
      <Distance>8.1</Distance>
      <DistanceText>sample string 7</DistanceText>
      <DockingStationId>2</DockingStationId>
      <Location>
        <Altitude>5</Altitude>
        <City>sample string 7</City>
        <Country>sample string 6</Country>
        <DisplayName>sample string 14</DisplayName>
        <DistrictName>sample string 13</DistrictName>
        <FloorIdentifier />
        <Latitude>3.1</Latitude>
        <LocationId>2</LocationId>
        <Longitude>4.1</Longitude>
        <Street>sample string 8</Street>
        <StreetBuildingIdentifier>sample string 11</StreetBuildingIdentifier>
        <SuiteId />
        <UnifiedId>1</UnifiedId>
        <ZipCode>sample string 10</ZipCode>
      </Location>
      <LocationId>4</LocationId>
      <Name>sample string 3</Name>
      <Status>5</Status>
      <UnifiedId>1</UnifiedId>
    </Station>
  </Stations>
</BikeStationModel>