Documentation
¶
Index ¶
- func Handler(conf Config, g *echo.Group) (bool, error)
- type APIClient
- type Config
- type DatasetCityResponse
- type DatasetFilesResponse
- type DatasetFilesResponseItem
- type DatasetPrefectureResponse
- type DatasetsQuery
- type DatasetsResponse
- type QueryArea
- type QueryCity
- type QueryCityCityGML
- type QueryDataset
- type QueryPlateauSpecMinor
- type QueryPrefecture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
func NewAPIClient ¶
func (*APIClient) QueryDatasetFiles ¶
func (*APIClient) QueryDatasets ¶
func (c *APIClient) QueryDatasets(ctx context.Context) (DatasetsQuery, error)
type DatasetCityResponse ¶
type DatasetFilesResponse ¶
type DatasetFilesResponse map[string][]DatasetFilesResponseItem
type DatasetPrefectureResponse ¶
type DatasetPrefectureResponse struct { ID string `json:"id"` Title string `json:"title"` Data []*DatasetCityResponse `json:"data"` }
type DatasetsQuery ¶
type DatasetsQuery struct {
Areas []QueryArea `graphql:"areas(input: {areaTypes: PREFECTURE})"`
}
func (*DatasetsQuery) ToDatasets ¶
func (d *DatasetsQuery) ToDatasets() *DatasetsResponse
type DatasetsResponse ¶
type DatasetsResponse struct {
Data []*DatasetPrefectureResponse `json:"data"`
}
type QueryArea ¶
type QueryArea struct { ID graphql.String Name graphql.String Code graphql.String Prefecture QueryPrefecture `graphql:"... on Prefecture"` }
type QueryCity ¶
type QueryCity struct { ID graphql.String Name graphql.String Code graphql.String Datasets []QueryDataset `graphql:"datasets(input: {includeTypes: [\"bldg\"]})"` Citygml *QueryCityCityGML }
type QueryCityCityGML ¶
type QueryCityCityGML struct { FeatureTypes []graphql.String PlateauSpecMinor QueryPlateauSpecMinor }
type QueryDataset ¶
type QueryDataset struct { ID graphql.String Name graphql.String TypeCode graphql.String Description graphql.String }
type QueryPlateauSpecMinor ¶
type QueryPlateauSpecMinor struct {
Version graphql.String
}
type QueryPrefecture ¶
type QueryPrefecture struct {
Cities []QueryCity
}
Click to show internal directories.
Click to hide internal directories.