domain

package
v0.0.0-...-168afb6 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BikewaysGeoJSON

type BikewaysGeoJSON GeoJSON[BikewaysProperties, [][]float64]

type BikewaysProperties

type BikewaysProperties struct {
	TypologieSimple       string  `json:"typologie_simple"`
	Bidirectionnel        string  `json:"bidirectionnel"`
	Statut                string  `json:"statut"`
	SensVelo              string  `json:"sens_velo"`
	Voie                  string  `json:"voie"`
	Arrdt                 int     `json:"arrdt"`
	Bois                  string  `json:"bois"`
	Length                float64 `json:"length"`
	LongueurDuTronconEnKm float64 `json:"longueur_du_troncon_en_km"`
	CouloirBus            string  `json:"couloir_bus"`
	GeoPoint2D            struct {
		Lon float64 `json:"lon"`
		Lat float64 `json:"lat"`
	} `json:"geo_point_2d"`
}

type BoroughsGeoJSON

type BoroughsGeoJSON GeoJSON[BoroughsProperties, [][][]float64]

type BoroughsProperties

type BoroughsProperties struct {
	NSqAr     int     `json:"n_sq_ar"`
	CAr       int     `json:"c_ar"`
	CArinsee  int     `json:"c_arinsee"`
	LAr       string  `json:"l_ar"`
	LAroff    string  `json:"l_aroff"`
	NSqCo     int     `json:"n_sq_co"`
	Surface   float64 `json:"surface"`
	Perimetre float64 `json:"perimetre"`
	GeomXY    struct {
		Lon float64 `json:"lon"`
		Lat float64 `json:"lat"`
	} `json:"geom_x_y"`
}

type DistributionData

type DistributionData struct {
	Time       string  `json:"time"`
	Mechanical float64 `json:"mechanical"`
	Electric   float64 `json:"electric"`
}

type DistrictsGeoJSON

type DistrictsGeoJSON GeoJSON[DistrictsProperties, [][][]float64]

type DistrictsProperties

type DistrictsProperties struct {
	NSqQu     string  `json:"n_sq_qu"`
	CQu       string  `json:"c_qu"`
	CQuinsee  string  `json:"c_quinsee"`
	LQu       string  `json:"l_qu"`
	CAr       int     `json:"c_ar"`
	NSqAr     string  `json:"n_sq_ar"`
	Perimetre float64 `json:"perimetre"`
	Surface   float64 `json:"surface"`
	GeomXY    struct {
		Lon float64 `json:"lon"`
		Lat float64 `json:"lat"`
	} `json:"geom_x_y"`
	StAreaShape      float64 `json:"st_area_shape"`
	StPerimeterShape float64 `json:"st_perimeter_shape"`
}

type Feature

type Feature[T any, U any] struct {
	Type     string `json:"type"`
	Geometry struct {
		Type        string `json:"type"`
		Coordinates U      `json:"coordinates"`
	} `json:"geometry"`
	Properties T `json:"properties"`
}

type GeoJSON

type GeoJSON[T any, U any] struct {
	Type     string          `json:"type"`
	Features []Feature[T, U] `json:"features"`
}

type StationInformation

type StationInformation struct {
	StationID int64   `json:"station_id"`
	Capacity  float64 `json:"capacity"`
	Latitude  float64 `json:"lat"`
	Longitude float64 `json:"lon"`
	Name      string  `json:"name"`
}

type StationStatus

type StationStatus struct {
	StationCode            string `json:"stationCode"`
	StationID              int    `json:"station_id"`
	NumBikesAvailable      int    `json:"num_bikes_available"`
	NumBikesAvailableTypes []struct {
		Mechanical *int `json:"mechanical"`
		Ebike      *int `json:"ebike"`
	} `json:"num_bikes_available_types"`
	NumDocksAvailable int `json:"num_docks_available"`
	IsInstalled       int `json:"is_installed"`
	IsReturning       int `json:"is_returning"`
	IsRenting         int `json:"is_renting"`
	LastReported      int `json:"last_reported"`
}

type Timeseries

type Timeseries struct {
	Date       time.Time `json:"date"`
	Mechanical int64     `json:"mechanical"`
	Electric   int64     `json:"electric"`
}

Jump to

Keyboard shortcuts

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