Skip to content

API Document

kimhunjin edited this page Sep 12, 2018 · 3 revisions

1. get bus route search list

  • url : 142.93.114.140:3000/api/searchBus
  • protocol : get
  • header
key value
token string
  • params
key value explain
number int bus number
  • example
142.93.114.140:3000/api/searchBus?number=1153

output

Data to be used in other APIs

data type explain
busRouteId string bus route private key
busRouteNm string bus number
firstBusTm string bus first time
lastBusTm string bus last time
routeType int bus type ; 공항버스 등
term string bus cycle time
[
  {
    "busRouteid" : [
      "100100418"
    ],
    "busRouteNm" : [
      "6011"
    ],
    "corpNm" : [
      "공항리무진 02----"
    ],
    "edStationNm" : [
      "인천공항"
    ],
    "firstBusTm" : [
      "20180912042000"
    ],
    "firstLowTm" : [
      "   "
    ],
    "lastBusTm" : [
      "20180912210000"
    ],
    "lastBusYn" : [
      " "
    ],
    "length" : [
      "138"
    ],
    "routeType" : [
      "1"
    ],
    "stStationNm" : [
      "월계동대우아파트"
    ],
    "term" : [
      "25"
    ]
  },
  {
   ...
  }
]

2. add bus route and get route list

  • url : 142.93.114.140:3000/api/addBusInfo
  • protocol : post
  • header
key value
token string
Content-Type application/x-www-form-urlencoded
  • body
key value explain
route string bus route id
busNumber string bus number
startTime string bus start time
lastTime string bus last time
term int bus term
type int bus type

output

Data to be used in other APIs

data type explain
route_index int bus route sequence
route_name string bus route name
bus_station string bus station number
[
  {
    "id" : 427,
    "routeid" : "100100154",
    "route_index" : 1,
    "route_name" : "흥안운수상계4동종점",
    "bus_station" : "11491"
  },
   ...
]

Clone this wiki locally