- Notifications
You must be signed in to change notification settings - Fork0
Go package for dealing with sl.se's apis
License
NotificationsYou must be signed in to change notification settings
frozzare/go-sl
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Go package for dealing withsl.se's apis.
go get -u github.com/frozzare/go-sl
- Location Lookup
- Realtime V4
- Travelplanner V3 (Only Trip, Journey and Reconstruction not XSD)
package mainimport ("fmt""log""github.com/frozzare/go-sl")funcmain() {api:=sl.NewClient(nil)res,err:=api.Realtime.Search(context.Background(),&sl.RealtimeSearchOptions{Key:"YOUR_API_KEY",SiteID:"1002",// 1002 = Stockholm Central/City})iferr!=nil {log.Fatal(err)}fmt.Println(res)}
MIT ©Fredrik Forsmo