POST api/MetroMobile/V2/GetStationBetweenTime

İstasyonların Başlangıç İstasyonuna Olan Uzaklık Sürelerini Listeler(Örn: 3 dk)

Request Information

URI Parameters

None.

Body Parameters

TimeTableRequest
NameDescriptionTypeAdditional information
BoardingStationId

integer

Required

DirectionId

integer

Required

DateTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "BoardingStationId": 1,
  "DirectionId": 2,
  "DateTime": "2021-10-27T11:54:21.7882988+03:00"
}

application/xml, text/xml

Sample:
<TimeTableRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <BoardingStationId>1</BoardingStationId>
  <DateTime>2021-10-27T11:54:21.7882988+03:00</DateTime>
  <DirectionId>2</DirectionId>
</TimeTableRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TimeTableRequest'.

Response Information

Resource Description

ResultOfDirectionStation
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

Error

None.

Data

Collection of DirectionStation

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "Id": 1,
    "Title": "sample string 2",
    "Message": "sample string 3",
    "Trace": "sample string 4",
    "HelpLink": "sample string 5",
    "Source": "sample string 6"
  },
  "Data": [
    {
      "DirectionId": 1,
      "DirectionName": "sample string 2",
      "LineId": 3,
      "LineName": "sample string 4",
      "StationOrder": [
        {
          "Id": 1,
          "StationName": "sample string 2",
          "Order": 3,
          "Time": 4
        },
        {
          "Id": 1,
          "StationName": "sample string 2",
          "Order": 3,
          "Time": 4
        }
      ]
    },
    {
      "DirectionId": 1,
      "DirectionName": "sample string 2",
      "LineId": 3,
      "LineName": "sample string 4",
      "StationOrder": [
        {
          "Id": 1,
          "StationName": "sample string 2",
          "Order": 3,
          "Time": 4
        },
        {
          "Id": 1,
          "StationName": "sample string 2",
          "Order": 3,
          "Time": 4
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<ResultOfDirectionStationuns9C1Um xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <Data>
    <DirectionStation>
      <DirectionId>1</DirectionId>
      <DirectionName>sample string 2</DirectionName>
      <LineId>3</LineId>
      <LineName>sample string 4</LineName>
      <StationOrder>
        <StationOrder>
          <Id>1</Id>
          <Order>3</Order>
          <StationName>sample string 2</StationName>
          <Time>4</Time>
        </StationOrder>
        <StationOrder>
          <Id>1</Id>
          <Order>3</Order>
          <StationName>sample string 2</StationName>
          <Time>4</Time>
        </StationOrder>
      </StationOrder>
    </DirectionStation>
    <DirectionStation>
      <DirectionId>1</DirectionId>
      <DirectionName>sample string 2</DirectionName>
      <LineId>3</LineId>
      <LineName>sample string 4</LineName>
      <StationOrder>
        <StationOrder>
          <Id>1</Id>
          <Order>3</Order>
          <StationName>sample string 2</StationName>
          <Time>4</Time>
        </StationOrder>
        <StationOrder>
          <Id>1</Id>
          <Order>3</Order>
          <StationName>sample string 2</StationName>
          <Time>4</Time>
        </StationOrder>
      </StationOrder>
    </DirectionStation>
  </Data>
  <Error>
    <HelpLink>sample string 5</HelpLink>
    <Id>1</Id>
    <Message>sample string 3</Message>
    <Source>sample string 6</Source>
    <Title>sample string 2</Title>
    <Trace>sample string 4</Trace>
  </Error>
  <Success>true</Success>
</ResultOfDirectionStationuns9C1Um>