gtfsconv

package
v0.0.0-...-083cb07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2015 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package gtfsconv converts GTFS files into an SQLite3 db (w/ spatialite optional), and other extra file formats (csv/json/geojson/kml).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(opt Options, logger *log.Logger) error

Build will consume the GTFS file and export a sqlite3 db, in the target dir/filename, along with extra file formats.

func GoBuild

func GoBuild(opt Options) error

GoBuild will run Build, with an dummy logger.

func SetDefaultOptions

func SetDefaultOptions(opt Options)

SetDefaultOptions sets defaultOptions with new default values.

Types

type Options

type Options struct {
	GTFS       string // path to GTFS source file
	Dir        string // output dir
	Name       string // output sqlite db name
	SkipExtras bool   // skip extra output formats (*.csv, *.json, *.xml)
	Spatialite bool   // include sqlite3 spatialite extension

	KeepDB    bool // re-use existing sqlite db (skip creation), if exist
	SkipClean bool // skip agency-specific GTFS cleanup rules
}

Options Type Helper: available runtime configs

func DefaultOptions

func DefaultOptions() Options

DefaultOptions returns Options with default values.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL