Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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