0.0
No commit activity in last 3 years
No release in over 3 years
*Currently under development*. An unofficial gem to query the mybustracker.co.uk web service for bus times etc. #edinburgh
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.4.4, ~> 1.4
>= 1.0.1, ~> 1.0
>= 2.11.2, ~> 2.11
>= 0.2.7, ~> 0.2
 Project Readme

Introducing the MyBusTracker gem

require 'mybustracker'

mbt = MyBusTracker.new api_key: '*secret API key *'

service = mbt.service '44'

service.bus_stops

Output:

[
 "Whitecraig", "Whitecraig Ave", "Wallyford Termin", "Wallyford Termin", 
 "Wallyford Loan", "Wallyford P&R", "Macbeth Moir", "Macbeth Moir", 
 "Macbeth Moir", "Pinkie Mains", "Edenhall Road", "Park Lane", "King Street",
 "Brunton Theatre", "The Ship Inn", "Edinburgh Road", "Eastfield Garden", 
 "Milton Terrace", "Portobello Cemet", "Brunstane Bank", "Duddingston Hous", 
 "Duddingston Mill", "Northfield Terra", "Northfield Terra", "Abercorn Road",
 "Meadowbank House", "Meadowbank Stadi", "Wishaw Terrace", "Marionville Road",
 "[EC] Leopold Pla", "[PT] Princes Str", "[SF] Shandwick P", "Dalry Primary Sc",
 "Moat Drive", "Slateford Stn", "Hailes Avenue", "Hailes Avenue", "Spylaw Park", 
 "Juniper Green Ch", "Baberton Avenue", "Muirwood Road", "Nether Currie", 
 "Curriehill", "Stewart Road", "Lanark Road End", "Lovedale Road", "Thriepmuir"
]
r = service.query from: "Jock's Lodge", to: 'Dalry Road'

Output:

{
  :from=>{
    :bus_stop=>"Meadowbank House", 
    :bus_stop_id=>"36234737", 
    :times=>["9:37pm", "10:09pm"]
  }, 
  :to=>{
    :bus_stop=>"Caledonian Villa", 
    :bus_stop_id=>"36232672", 
    :times=>["10:00pm", "10:32pm"]
  }, 
  :stops=>[
    "Meadowbank House", "Meadowbank Stadi", "Wishaw Terrace", "Marionville Road", 
    "Abbeyhill", "Brunton Place", "Wellington Stree", "Brunswick Street", 
    "[EC] Leopold Pla", "[YB] York Place", "[YC] North St Da", "[PT] Princes Str",
    "[PY] Princes Str", "[SF] Shandwick P", "[SG] Atholl Cres", "[HG] Haymarket", 
    "Caledonian Villa"
  ], 
  :start=>"9:37pm", :end=>"10:00pm", :travel_time=>"~23 minutes"
} 

Resources

lothianbuses bus mybustracker gem travel times