Skip to content

This library provides realtime train timings for various train stations in both directions. It does so by scraping the Caltrain mobile page.

License

Notifications You must be signed in to change notification settings

sent-hil/caltrain-realtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

caltrain

caltrain provides realtime train timings for various train stations in both directions. It does so by scraping the Caltrain mobile page.

Note, Caltrain alerts are not reflected in train timings.

Please don't abuse this api.

See https://godoc.org/github.com/sent-hil/caltrain-realtime for more api.

Install

go get github.com/sent-hil/caltrain-realtime

Usage

package main

import (
  "github.com/sent-hil/caltrain-realtime"
)

func main() {
  timings, err := caltrain.GetRealTimings(caltrain.SanFrancisco, caltrain.SouthBound)
}

About

This library provides realtime train timings for various train stations in both directions. It does so by scraping the Caltrain mobile page.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages