Using ptv-sdk with ptv.vic.gov.au

Go integration

Install
go get github.com/dylanmazurek/ptv-sdk
Quick start
import "ptv-sdk"

// Initialize client
client := ptv-sdk.NewClient("YOUR_API_KEY")
View route names and numbers for all routes
curl \
  http://timetableapi.ptv.vic.gov.au/v3/routes
List all ticket outlets
curl \
  http://timetableapi.ptv.vic.gov.au/v3/outlets
View all disruptions for all route types
curl \
  http://timetableapi.ptv.vic.gov.au/v3/disruptions
SDK on GitHub 📄 API Docs
SDK
ptv-sdk
Go
API
ptv.vic.gov.au
ptv.vic.gov.au
At a glance
Language Go
Endpoints26
Base URLhttp://timetableapi.ptv.vic.gov.au