freeway

package
v0.0.0-...-06a308b Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2015 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Freeway

type Freeway struct {
	Secs []*Section     `json:"sections"`
	Ins  []*Interchange `json:"interchanges"`
	Locs []*Location    `json:"locations"`
	// contains filtered or unexported fields
}

func Load

func Load(path string) (f *Freeway, err error)

func (*Freeway) Fetch

func (f *Freeway) Fetch() error

func (*Freeway) HasError

func (f *Freeway) HasError() bool

func (*Freeway) Save

func (f *Freeway) Save(path string, lint bool) error

type Geolocation

type Geolocation struct {
	FromX float64 `json:"from_x"`
	FromY float64 `json:"from_y"`
	ToX   float64 `json:"to_x"`
	ToY   float64 `json:"to_y"`
	// contains filtered or unexported fields
}

type Interchange

type Interchange struct {
	Id    string   `json:"id"`
	Name  string   `json:"name"`
	SecId string   `json:"section_id"`
	Locs  []string `json:"locations"`
}

type Location

type Location struct {
	Id    string   `json:"id"`
	SecId string   `json:"section_id"`
	Ins   []string `json:"interchanges"`
	*Geolocation
	// contains filtered or unexported fields
}

type Section

type Section struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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