captain_perreiro

Untitled

Jul 29th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 2.29 KB | None | 0 0
  1. RoadObjects []RoadObjects
  2.  
  3. type RoadObjects struct {
  4.     Id          string      `json:"id"` - уникальный идентификатор объекта
  5.     Name        string      `json:"name"` - Имя объекта
  6.     Coordinates string      `json:"coordinates"` - координаты через ","
  7.     RoadName    string      `json:"roadName"`  - официальное имя с кило метражом
  8.     MeteoInfo   MeteoInfo   `json:"meteoInfo"` - структура состояния дорожного полотна и погодных данных
  9.     TrafficInfo TrafficInfo `json:"trafficInfo"` - структура трафика движения и вида транспорта
  10. }
  11.  
  12. type MeteoInfo struct {
  13.     Date                      string `json:"date"`   - время изменения объекта
  14.     MeteoTUnderroad           int    `json:"meteoTUnderroad"`
  15.     MeteoDewPoint             int    `json:"meteoTUnderroad"`
  16.     MeteoReagentConcentration int    `json:"meteoReagentConcentration"`
  17.     MeteoHumidity             int    `json:"meteoHumidity"`
  18.     MeteoWindVelocity         int    `json:"meteoWindVelocity"`
  19.     MeteoAirPressure          int    `json:"meteoAirPressure"`
  20.     MeteoPrecipCode           int    `json:"meteoPrecipCode"`
  21.     MeteoFreezingPoint        int    `json:"meteoFreezingPoint"`
  22.     MeteoPrecipIntensity      int    `json:"meteoPrecipIntensity"`
  23.     MeteoTAir                 int    `json:"meteoTAir"`
  24.     MeteoTRoad                int    `json:"meteoTRoad"`
  25.     MeteoLayerType            int    `json:"meteoLayerType"`
  26.     MeteoWindGusts            int    `json:"meteoWindGusts"`
  27.     MeteoAdhesionCoefficient  int    `json:"meteoAdhesionCoefficient"`
  28. }
  29. type TrafficInfo struct {
  30.     Date    string    `json:"date"`
  31.     Traffic []Traffic `json:"traffic"`
  32. }
  33.  
  34. type Traffic struct {
  35.     Lane                int     `json:"lane"`
  36.     Direction           string  `json:"direction"`
  37.     TrafficTotalAmount  int     `json:"trafficTotalAmount"`
  38.     TrafficAverageSpeed float64 `json:"trafficAverageSpeed"`
  39.     TrafficSizeC1       int     `json:"trafficSizeC1"`
  40.     TrafficSizeC2       int     `json:"trafficSizeC2"`
  41.     TrafficSizeC3       int     `json:"trafficSizeC3"`
  42.     TrafficSizeC4       int     `json:"trafficSizeC4"`
  43.     TrafficSizeC5       int     `json:"trafficSizeC5"`
  44.     TrafficSizeC6       int     `json:"trafficSizeC6"`
  45. }
Advertisement
Add Comment
Please, Sign In to add comment