Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchPoint ¶
func (SearchPoint) ToString ¶
func (s SearchPoint) ToString() string
type VelibStation ¶
type VelibStatus ¶
type VelibStatus struct { Nhits int `json:"nhits"` Parameters struct { Dataset string `json:"dataset"` Timezone string `json:"timezone"` Rows int `json:"rows"` Format string `json:"format"` GeofilterDistance []string `json:"geofilter.distance"` Facet []string `json:"facet"` } `json:"parameters"` Records []struct { Datasetid string `json:"datasetid"` Recordid string `json:"recordid"` Fields struct { StationState string `json:"station_state"` Maxbikeoverflow int `json:"maxbikeoverflow"` Densitylevel string `json:"densitylevel"` Nbbikeoverflow int `json:"nbbikeoverflow"` Dist string `json:"dist"` Nbedock int `json:"nbedock"` StationName string `json:"station_name"` Kioskstate string `json:"kioskstate"` Nbfreeedock int `json:"nbfreeedock"` StationType string `json:"station_type"` StationCode string `json:"station_code"` Creditcard string `json:"creditcard"` Nbfreedock int `json:"nbfreedock"` Duedate string `json:"duedate"` Nbebikeoverflow int `json:"nbebikeoverflow"` Nbebike int `json:"nbebike"` Overflow string `json:"overflow"` Nbdock int `json:"nbdock"` Geo []float64 `json:"geo"` Overflowactivation string `json:"overflowactivation"` Nbbike int `json:"nbbike"` } `json:"fields"` Geometry struct { Type string `json:"type"` Coordinates []float64 `json:"coordinates"` } `json:"geometry"` RecordTimestamp time.Time `json:"record_timestamp"` } `json:"records"` FacetGroups []struct { Facets []struct { Count int `json:"count"` Path string `json:"path"` State string `json:"state"` Name string `json:"name"` } `json:"facets"` Name string `json:"name"` } `json:"facet_groups"` }
func (VelibStatus) ExtractStations ¶
func (status VelibStatus) ExtractStations() []VelibStation
ExtractStations extract the station information from the velib status
Click to show internal directories.
Click to hide internal directories.