Class: BusesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/buses_controller.rb

Instance Method Summary collapse

Instance Method Details

#getRouteObject



2
3
4
# File 'app/controllers/buses_controller.rb', line 2

def getRoute
  render json: open("http://www.onemap.sg/BusServiceAPI/Service1.svc/getBR?svc=#{params[:service]}&dir=1&stp=1").read
end