Skip to content

ISI-nc/gtfswriter

This branch is 34 commits behind patrickbr/gtfswriter:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fb19b1a · May 23, 2017

History

9 Commits
Aug 11, 2016
Aug 11, 2016
May 23, 2017
Aug 11, 2016
Aug 11, 2016
May 23, 2017

Repository files navigation

go gtfswriter

A writer for the GTFS structure created by the go gtfsparser. This can be used to write feeds that have been changed programmatically back to a GTFS feed.

Usage

feed := gtfsparser.NewFeed()
error := feed.Parse("sample-feed.zip")

// do stuff with feed

w := gtfswriter.Writer{}
werror := w.Write(feed, "/path/to/output")

Features

Optional fields are not outputted if empty, if default values are used, the writer outputs them empty.

Known restrictions

For direct output in ZIP file, you must create it before:

// do stuff with feed
os.Create("/path/to/output.zip")

w := gtfswriter.Writer{}
werror := w.Write(feed, "/path/to/output")

License

GPL v2, see LICENSE

About

A GTFS writing library for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%