Documentation ¶
Overview ¶
package campus provides methods for working with the SFO airport campus.
Index ¶
- Constants
- Variables
- func NewDatabaseWithIterator(ctx context.Context, dsn string, iterator_uri string, paths ...string) (*sql.DB, error)
- type BoardingArea
- type Campus
- type Checkpoint
- type CommonArea
- type Complex
- func (c *Complex) AltId() string
- func (c *Complex) AsGeoJSONLayers(ctx context.Context, r reader.Reader) (map[string]*geojson.FeatureCollection, error)
- func (c *Complex) AsJSON(ctx context.Context, wr io.Writer) error
- func (c *Complex) AsTree(ctx context.Context, r reader.Reader, wr io.Writer, indent int) error
- func (c *Complex) DeriveAltLookup(ctx context.Context) (map[string]int64, error)
- func (c *Complex) Id() int64
- func (c *Complex) Placetype() string
- func (c *Complex) Walk(ctx context.Context, cb ElementCallbackFunc) error
- type Element
- type ElementCallbackFunc
- type Gallery
- type Garage
- type Gate
- type Hotel
- type Museum
- type ObservationDeck
- func (od *ObservationDeck) AltId() string
- func (od *ObservationDeck) AsTree(ctx context.Context, r reader.Reader, wr io.Writer, indent int) error
- func (od *ObservationDeck) Id() int64
- func (od *ObservationDeck) Placetype() string
- func (od *ObservationDeck) Walk(ctx context.Context, cb ElementCallbackFunc) error
- type PublicArt
- type Terminal
Constants ¶
const FIRST_SFO_COMPLEX int64 = 1159396329
SFO Terminal Complex (1954~ to 1963~) https://millsfield.sfomuseum.org/buildings/1159396329/
Variables ¶
var WARN_IS_CURRENT = true
Functions ¶
Types ¶
type BoardingArea ¶
type BoardingArea struct { Element `json:",omitempty"` WhosOnFirstId int64 `json:"id"` SFOId string `json:"sfo:id"` Gates []*Gate `json:"gates,omitempty"` Checkpoints []*Checkpoint `json:"checkpoints,omitempty"` Galleries []*Gallery `json:"galleries,omitempty"` PublicArt []*PublicArt `json:"publicart,omitempty"` ObservationDecks []*ObservationDeck `json:"observationdecks,omitempty"` Museums []*Museum `json:"museums,omitempty"` // for example AML }
type BoardingArea is a lightweight data structure to represent boarding areas at SFO with pointers its descendants.
func DeriveBoardingAreas ¶ added in v0.7.0
func (*BoardingArea) AltId ¶ added in v0.7.0
func (b *BoardingArea) AltId() string
func (*BoardingArea) Id ¶ added in v0.7.0
func (b *BoardingArea) Id() int64
func (*BoardingArea) Placetype ¶ added in v0.7.0
func (b *BoardingArea) Placetype() string
func (*BoardingArea) Walk ¶ added in v0.7.0
func (b *BoardingArea) Walk(ctx context.Context, cb ElementCallbackFunc) error
type Campus ¶
type Campus struct { Element `json:",omitempty"` WhosOnFirstId int64 `json:"id"` SFOId string `json:"sfo:id"` Complex *Complex `json:"complex"` Garages []*Garage `json:"garages"` Hotels []*Hotel `json:"hotels"` PublicArt []*PublicArt `json:"buildings,omitempty"` }
type Campus is a lightweight data structure to represent the SFO campus with pointers its descendants.
type Checkpoint ¶
type Checkpoint struct { Element `json:",omitempty"` WhosOnFirstId int64 `json:"id"` SFOId string `json:"sfo:id"` }
type Checkpoint is a lightweight data structure to represent security checkpoints at SFO.
func DeriveCheckpoints ¶ added in v0.7.0
func (*Checkpoint) AltId ¶ added in v0.7.0
func (c *Checkpoint) AltId() string
func (*Checkpoint) Id ¶ added in v0.7.0
func (c *Checkpoint) Id() int64
func (*Checkpoint) Placetype ¶ added in v0.7.0
func (c *Checkpoint) Placetype() string
func (*Checkpoint) Walk ¶ added in v0.7.0
func (c *Checkpoint) Walk(ctx context.Context, cb ElementCallbackFunc) error
type CommonArea ¶
type CommonArea struct { Element `json:",omitempty"` WhosOnFirstId int64 `json:"id"` SFOId string `json:"sfo:id"` Gates []*Gate `json:"gates,omitempty"` Checkpoints []*Checkpoint `json:"checkpoints,omitempty"` Galleries []*Gallery `json:"galleries,omitempty"` PublicArt []*PublicArt `json:"publicart,omitempty"` ObservationDecks []*ObservationDeck `json:"observationdecks,omitempty"` // for example T2 Museums []*Museum `json:"museums,omitempty"` // for example AML }
type CommonArea is a lightweight data structure to represent common areas at SFO with pointers its descendants.
func DeriveCommonAreas ¶ added in v0.7.0
func (*CommonArea) AltId ¶ added in v0.7.0
func (c *CommonArea) AltId() string
func (*CommonArea) Id ¶ added in v0.7.0
func (c *CommonArea) Id() int64
func (*CommonArea) Placetype ¶ added in v0.7.0
func (c *CommonArea) Placetype() string
func (*CommonArea) Walk ¶ added in v0.7.0
func (c *CommonArea) Walk(ctx context.Context, cb ElementCallbackFunc) error
type Complex ¶
type Complex struct { Element `json:",omitempty"` WhosOnFirstId int64 `json:"id"` SFOId string `json:"sfo:id"` Terminals []*Terminal `json:"terminals"` }
type Complex is a lightweight data structure to represent the terminal complex at SFO with pointers its descendants.
func DeriveComplex ¶ added in v0.7.0
func (*Complex) AsGeoJSONLayers ¶ added in v0.7.0
func (*Complex) DeriveAltLookup ¶ added in v0.7.0
type ElementCallbackFunc ¶ added in v0.7.0
type Gallery ¶
type Gallery struct { Element `json:",omitempty"` WhosOnFirstId int64 `json:"id"` SFOId string `json:"sfomuseum:id"` }
type Gallery is a lightweight data structure to represent SFO Museum galleries at SFO.
func DeriveGalleries ¶ added in v0.7.0
type Garage ¶
type Garage struct { Element `json:",omitempty"` WhosOnFirstId int64 `json:"id"` SFOId string `json:"sfo:id"` PublicArt []*PublicArt `json:"publicart,omitempty"` }
type Garage is a lightweight data structure to represent garages at SFO with pointers its descendants.
type Gate ¶
type Gate struct { Element `json:",omitempty"` WhosOnFirstId int64 `json:"id"` SFOId string `json:"sfo:id"` }
type Gate is a lightweight data structure to represent passenger gates at SFO.
func DeriveGates ¶ added in v0.7.0
type Hotel ¶ added in v0.7.0
type Hotel struct { Element `json:",omitempty"` WhosOnFirstId int64 `json:"id"` SFOId string `json:"sfo:id"` PublicArt []*PublicArt `json:"publicart,omitempty"` }
type Hotel is a lightweight data structure to represent garages at SFO with pointers its descendants.
type Museum ¶ added in v0.7.0
type Museum struct { Element `json:",omitempty"` WhosOnFirstId int64 `json:"id"` SFOId string `json:"sfo:id"` Galleries []*Gallery `json:"galleries,omitempty"` PublicArt []*PublicArt `json:"publicart,omitempty"` }
type Museum is a lightweight data structure to represent dedicated Museum-related areas, distinct from galleries, at SFO with pointers to its descendants.
func DeriveMuseums ¶ added in v0.7.0
type ObservationDeck ¶
type ObservationDeck struct { Element `json:",omitempty"` WhosOnFirstId int64 `json:"id"` SFOId string `json:"sfo:id"` PublicArt []*PublicArt `json:"publicart,omitempty"` Galleries []*Gallery `json:"galleries,omitempty"` }
type ObservationDeck is a lightweight data structure to represent observation decks at SFO with pointers its descendants.
func DeriveObservationDecks ¶ added in v0.7.0
func (*ObservationDeck) AltId ¶ added in v0.7.0
func (od *ObservationDeck) AltId() string
func (*ObservationDeck) Id ¶ added in v0.7.0
func (od *ObservationDeck) Id() int64
func (*ObservationDeck) Placetype ¶ added in v0.7.0
func (od *ObservationDeck) Placetype() string
func (*ObservationDeck) Walk ¶ added in v0.7.0
func (od *ObservationDeck) Walk(ctx context.Context, cb ElementCallbackFunc) error
type PublicArt ¶
type PublicArt struct { Element `json:",omitempty"` WhosOnFirstId int64 `json:"id"` SFOId string `json:"sfomuseum:id"` }
type PublicArt is a lightweight data structure to represent public art works at SFO.
func DerivePublicArt ¶ added in v0.7.0
type Terminal ¶
type Terminal struct { Element `json:",omitempty"` WhosOnFirstId int64 `json:"id"` SFOId string `json:"sfo:id"` CommonAreas []*CommonArea `json:"commonareas,omitempty"` BoardingAreas []*BoardingArea `json:"boardingareas,omitempty"` }
type Terminal is a lightweight data structure to represent terminals at SFO with pointers its descendants.