Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RoadObjects []RoadObjects
- type RoadObjects struct {
- Id string `json:"id"` - уникальный идентификатор объекта
- Name string `json:"name"` - Имя объекта
- Coordinates string `json:"coordinates"` - координаты через ","
- RoadName string `json:"roadName"` - официальное имя с кило метражом
- MeteoInfo MeteoInfo `json:"meteoInfo"` - структура состояния дорожного полотна и погодных данных
- TrafficInfo TrafficInfo `json:"trafficInfo"` - структура трафика движения и вида транспорта
- }
- type MeteoInfo struct {
- Date string `json:"date"` - время изменения объекта
- MeteoTUnderroad int `json:"meteoTUnderroad"`
- MeteoDewPoint int `json:"meteoTUnderroad"`
- MeteoReagentConcentration int `json:"meteoReagentConcentration"`
- MeteoHumidity int `json:"meteoHumidity"`
- MeteoWindVelocity int `json:"meteoWindVelocity"`
- MeteoAirPressure int `json:"meteoAirPressure"`
- MeteoPrecipCode int `json:"meteoPrecipCode"`
- MeteoFreezingPoint int `json:"meteoFreezingPoint"`
- MeteoPrecipIntensity int `json:"meteoPrecipIntensity"`
- MeteoTAir int `json:"meteoTAir"`
- MeteoTRoad int `json:"meteoTRoad"`
- MeteoLayerType int `json:"meteoLayerType"`
- MeteoWindGusts int `json:"meteoWindGusts"`
- MeteoAdhesionCoefficient int `json:"meteoAdhesionCoefficient"`
- }
- type TrafficInfo struct {
- Date string `json:"date"`
- Traffic []Traffic `json:"traffic"`
- }
- type Traffic struct {
- Lane int `json:"lane"`
- Direction string `json:"direction"`
- TrafficTotalAmount int `json:"trafficTotalAmount"`
- TrafficAverageSpeed float64 `json:"trafficAverageSpeed"`
- TrafficSizeC1 int `json:"trafficSizeC1"`
- TrafficSizeC2 int `json:"trafficSizeC2"`
- TrafficSizeC3 int `json:"trafficSizeC3"`
- TrafficSizeC4 int `json:"trafficSizeC4"`
- TrafficSizeC5 int `json:"trafficSizeC5"`
- TrafficSizeC6 int `json:"trafficSizeC6"`
- }
Advertisement
Add Comment
Please, Sign In to add comment