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.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
vendor
.gitignore
LICENSE
README.md
caltrain.go
doc.go

README.md

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)
}
You can’t perform that action at this time.