go-sptrans alternatives and similar packages
Based on the "Third-party APIs" category.
Alternatively, view go-sptrans alternatives based on common mentions on social networks and blogs.
-
go-openai
OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go -
goamz
Popular fork of goamz which adds some missing API calls to certain packages. -
webhooks
:fishing_pole_and_fish: Webhook receiver for GitHub, Bitbucket, GitLab, Gogs -
githubql
Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql). -
twitter-scraper
Scrape the Twitter frontend API without authentication with Golang. -
geo-golang
Go library to access geocoding and reverse geocoding APIs -
lark
Feishu(飞书)/Lark Open API Go SDK, Support ALL Open API and Event Callback. -
openaigo
OpenAI GPT3/3.5 and GPT4 ChatGPT API Client Library for Go, simple, less dependencies, and well-tested -
hipchat (xmpp)
A golang package to communicate with HipChat over XMPP -
gostorm
GoStorm is a Go library that implements the communications protocol required to write Storm spouts and Bolts in Go that communicate with the Storm shells. -
go-lark
An easy-to-use SDK for Feishu and Lark Open Platform (Instant Messaging API only) -
clarifai
DEPRECATED: please use https://github.com/Clarifai/clarifai-go-grpc -
go-trending
Go library for accessing trending repositories and developers at Github. -
hipchat
This project implements a Go client library for the Hipchat API. -
simples3
Simple no frills AWS S3 Golang Library using REST with V4 Signing (without AWS Go SDK) -
go-tgbot
Golang telegram bot API wrapper, session-based router and middleware -
cachet
Go(lang) client library for Cachet (open source status page system). -
google-play-scraper
Golang scraper to get data from Google Play Store
Collect and Analyze Billions of Data Points in Real Time
Do you think we are missing an alternative of go-sptrans or a related project?
README
go-sptrans

This project is no longer maintained.
go-sptrans is a Go client library for the SPTrans Olho Vivo API.
Features
- [x] Lines
- [x] Stops
- [x] Corridors
- [x] Companies
- [x] Vehicles Position
- [x] Forecast
Documentation
See the documentation at godoc.
Install
go get github.com/sergioaugrod/go-sptrans/sptrans
Usage
Import
import "github.com/sergioaugrod/go-sptrans/sptrans"
Authentication
token = "123456"
client = sptrans.NewClient(token)
client.Authenticate()
Endpoints
Lines
// Search by line description or number
client.Line.Search("Lapa")
client.Line.Search("8000")
// Search by line direction
client.Line.SearchByDirection("Lapa", 1)
Stops
// Search by stop name or address
client.Stop.Search("Afonso")
client.Stop.Search("Rua Baltharzar da Veiga")
// Search by line id
client.Stop.SearchByLine(1273)
// Search by corridor id
client.Stop.SearchByCorridor(8)
Corridors
// All corridors
client.Corridor.All()
Companies
// All companies
client.Company.All()
Vehicles Position
// All Vehicles Position
client.VehiclePosition.All()
// Search by line id
client.VehiclePosition.SearchByLine(1273)
// Search by company id
client.VehiclePosition.SearchByCompany(99)
Forecast
// Search by stop id and line id
client.Forecast.Search(4200953, 2004)
// Search by line id
client.Forecast.SearchByLine(1273)
// Search by stop id
client.Forecast.SearchByStop(8)
Contributing
- Clone it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
[MIT License](LICENSE)
*Note that all licence references and agreements mentioned in the go-sptrans README section above
are relevant to that project's source code only.