module RubyPtv::Routes
Public Instance Methods
route(route_id)
click to toggle source
Get route details for a specified route ID
Required params:
route_id [Integer]
No optional params available
# File lib/ruby_ptv/client/routes.rb, line 19 def route(route_id) data = request("routes/#{route_id}") data["route"] end
routes(options = {})
click to toggle source
Get route details of all route types
No required params
Optional params must have key matching official PTV param name
# File lib/ruby_ptv/client/routes.rb, line 8 def routes(options = {}) data = request("routes", options) data["routes"] end