Class: BusesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- BusesController
- Defined in:
- app/controllers/buses_controller.rb
Instance Method Summary collapse
Instance Method Details
#getRoute ⇒ Object
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 |