Popularity
3.4
Growing
Activity
0.0
Stable
34
3
21
Programming language: Go
License: GNU General Public License v3.0 only
Tags:
Files
Latest version: v1.1.0
go-gtfs alternatives and similar packages
Based on the "Files" category.
Alternatively, view go-gtfs alternatives based on common mentions on social networks and blogs.
-
go-storage
A vendor-neutral storage library for Golang: Write once, run on every storage service. -
bigfile
Bigfile -- a file transfer system that supports http, rpc and ftp protocol https://bigfile.site -
go-exiftool
Golang wrapper for Exiftool : extract as much metadata as possible (EXIF, ...) from files (pictures, pdf, office documents, ...) -
skywalker
A package to allow one to concurrently go through a filesystem with ease -
concurrent-writer
Highly concurrent drop-in replacement for bufio.Writer -
fileconversion
A Go library to convert various file formats to plaintext and provide related functions -
shred
This is a libary to mimic the functionallity of the linux shred command. -
go-staticfiles
Collects assets (css, js, images...) from a different locations and tags file names with a hash for easy versioning and aggressive caching.
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Promo
www.sonarqube.org
Do you think we are missing an alternative of go-gtfs or a related project?
Popular Comparisons
README
go-gtfs
Load GTFS files in golang
Install
go get github.com/artonge/go-gtfs
Examples
Load one directory containing GTFS files:
path/to/gtfs_files
โโโ agency.txt
โโโ calendar_dates.txt
โโโ calendar.txt
โโโ routes.txt
โโโ stops.txt
โโโ stop_times.txt
โโโ transfers.txt
โโโ trips.txt
g, err := gtfs.Load("path/to/gtfs_files", nil)
Load a directory containing sub directories containing GTFS files:
path/to/gtfs_directories
โโโ gtfs1
โย ย โโโ agency.txt
โย ย โโโ calendar_dates.txt
โย ย โโโ routes.txt
โย ย โโโ stops.txt
โย ย โโโ stop_times.txt
โย ย โโโ transfers.txt
โย ย โโโ trips.txt
โโโ gtfs2
โโโ agency.txt
โโโ calendar_dates.txt
โโโ calendar.txt
โโโ routes.txt
โโโ stops.txt
โโโ stop_times.txt
โโโ transfers.txt
โโโ trips.txt
gs, err := gtfs.LoadSplitted("path/to/gtfs_directories", nil)
You can then access the data through the GTFS structure. That structure contains arrays of approriate structures for each files.
type GTFS struct {
Path string // The path to the containing directory
Agency Agency
Routes []Route
Stops []Stop
StopsTimes []Stop
Trips []Trip
Calendars []Calendar
Transfers []Transfer
}
type Route struct {
ID string `csv:"route_id"`
AgencyID string `csv:"agency_id"`
ShortName string `csv:"route_short_name"`
LongName string `csv:"route_long_name"`
Type int `csv:"route_type"`
Desc string `csv:"route_url"`
URL string `csv:"route_desc"`
Color string `csv:"route_color"`
TextColor string `csv:"route_text_color"`
}
...
Contributions
Pull requests are welcome ! :)