Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Area ¶ added in v1.3.2
type Area struct {
ID string `json:"id"`
Label string `json:"label"`
AreaType string `json:"area_type"`
}
Area is an area model with ID, Label, and area-type
type AreaType ¶ added in v1.2.0
type AreaType struct {
ID string `json:"id"`
Label string `json:"label"`
TotalCount int `json:"total_count"`
}
AreaType is an area-type model with ID and Label
type GetAreaTypeParentsResponse ¶ added in v1.3.2
type GetAreaTypeParentsResponse struct {
AreaTypes []AreaType `json:"area_types"`
}
type GetAreaTypesResponse ¶ added in v1.2.0
type GetAreaTypesResponse struct {
AreaTypes []AreaType `json:"area_types"`
}
GetAreaTypesResponse is the response object for GET /area-types
type GetAreasRequest ¶ added in v1.2.0
type GetAreasRequest struct {
Dataset string `schema:"dataset"`
AreaType string `schema:"area_type"`
Category string `schema:"q"`
}
GetAreasRequest defines the schema for the GET /areas query parameter
type GetAreasResponse ¶ added in v1.2.0
type GetAreasResponse struct {
Areas []Area `json:"areas"`
}
GetAreasResponse is the response object for GET /areas
type GetPopulationTypesResponse ¶ added in v1.2.0
type GetPopulationTypesResponse struct {
PopulationTypes
}
type PopulationType ¶
type PopulationType struct {
Name string `json:"name"`
}
type PopulationTypes ¶
type PopulationTypes struct {
Items []PopulationType `json:"items"`
}
func NewPopulationTypes ¶
func NewPopulationTypes(names []string) PopulationTypes
Click to show internal directories.
Click to hide internal directories.