-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
thisisaaronland
committed
Sep 29, 2021
1 parent
ccbe8e3
commit 1a9cbec
Showing
8 changed files
with
200 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
compile-all: | ||
@make compile-gates | ||
@make compile-galleries | ||
|
||
compile-gates: | ||
go run -mod vendor cmd/compile-gates-data/main.go | ||
|
||
compile-galleries: | ||
go run -mod vendor cmd/compile-galleries-data/main.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
package campus | ||
|
||
// type Campus is a lightweight data structure to represent the SFO campus with pointers its descendants. | ||
type Campus struct { | ||
WhosOnFirstId int64 `json:"id"` | ||
SFOMuseumId string `json:"sfo:id"` | ||
Complex *Complex `json:"complex"` | ||
Garages []*Garage `json:"garages"` | ||
// Buildings []*Building `json:"buildings,omitempty"` | ||
PublicArt []*PublicArt `json:"buildings,omitempty"` | ||
} | ||
|
||
// type Garage is a lightweight data structure to represent garages at SFO with pointers its descendants. | ||
type Garage struct { | ||
WhosOnFirstId int64 `json:"id"` | ||
SFOMuseumId string `json:"sfo:id"` | ||
PublicArt []*PublicArt `json:"publicart"` | ||
} | ||
|
||
// type Complex is a lightweight data structure to represent the terminal complex at SFO with pointers its descendants. | ||
type Complex struct { | ||
WhosOnFirstId int64 `json:"id"` | ||
SFOMuseumId string `json:"sfo:id"` | ||
Terminals []*Terminal `json:"terminals"` | ||
} | ||
|
||
// type ObservationDeck is a lightweight data structure to represent observation decks at SFO with pointers its descendants. | ||
type ObservationDeck struct { | ||
WhosOnFirstId int64 `json:"id"` | ||
SFOMuseumId string `json:"sfo:id"` | ||
PublicArt []*PublicArt `json:"publicart"` | ||
Galleries []*Gallery `json:"galleries"` | ||
} | ||
|
||
// type Terminal is a lightweight data structure to represent terminals at SFO with pointers its descendants. | ||
type Terminal struct { | ||
WhosOnFirstId int64 `json:"id"` | ||
SFOMuseumId string `json:"sfo:id"` | ||
CommonAreas []*CommonArea `json:"commonareas"` | ||
BoardingAreas []*BoardingArea `json:"boardingareas"` | ||
} | ||
|
||
// type CommonArea is a lightweight data structure to represent common areas at SFO with pointers its descendants. | ||
type CommonArea struct { | ||
WhosOnFirstId int64 `json:"id"` | ||
SFOMuseumId string `json:"sfo:id"` | ||
Gates []*Gate `json:"gates"` | ||
Checkpoints []*Checkpoint `json:"checkpoints"` | ||
Galleries []*Gallery `json:"galleries"` | ||
PublicArt []*PublicArt `json:"publicart"` | ||
ObservationDecks []*ObservationDeck `json:"observationdecks"` // for example T2 | ||
} | ||
|
||
// type BoardingArea is a lightweight data structure to represent boarding areas at SFO with pointers its descendants. | ||
type BoardingArea struct { | ||
WhosOnFirstId int64 `json:"id"` | ||
SFOMuseumId string `json:"sfo:id"` | ||
Gates []*Gate `json:"gates"` | ||
Checkpoints []*Checkpoint `json:"checkpoints"` | ||
Galleries []*Gallery `json:"galleries"` | ||
PublicArt []*PublicArt `json:"publicart"` | ||
ObservationDecks []*ObservationDeck `json:"observationdecks"` | ||
} | ||
|
||
// type Gallery is a lightweight data structure to represent SFO Museum galleries at SFO. | ||
type Gallery struct { | ||
WhosOnFirstId int64 `json:"id"` | ||
SFOMuseumId string `json:"sfomuseum:id"` | ||
} | ||
|
||
// type Gate is a lightweight data structure to represent passenger gates at SFO. | ||
type Gate struct { | ||
WhosOnFirstId int64 `json:"id"` | ||
SFOMuseumId string `json:"sfo:id"` | ||
} | ||
|
||
// type Checkpoint is a lightweight data structure to represent security checkpoints at SFO. | ||
type Checkpoint struct { | ||
WhosOnFirstId int64 `json:"id"` | ||
SFOMuseumId string `json:"sfo:id"` | ||
} | ||
|
||
// type PublicArt is a lightweight data structure to represent public art works at SFO. | ||
type PublicArt struct { | ||
WhosOnFirstId int64 `json:"id"` | ||
SFOMuseumId string `json:"sfomuseum:id"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters