Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RoadSurfaceObservedIDPrefix contains the mandatory prefix for Road Surfaces Observed RoadSurfaceObservedIDPrefix string = "urn:ngsi-ld:RoadSurfaceObserved:" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoadSurfaceObserved ¶
type RoadSurfaceObserved struct { ngsi.BaseEntity Location geojson.GeoJSONProperty `json:"location"` SurfaceType fiware.RoadSurfaceType `json:"surfaceType"` RefRoadSegment *ngsi.MultiObjectRelationship `json:"refRoadSegment,omitempty"` DateObserved *ngsi.DateTimeProperty `json:"dateObserved,omitempty"` }
RoadSurfaceObserved is a Diwise entity
func NewRoadSurfaceObserved ¶
func NewRoadSurfaceObserved(id string, surfaceType string, probability float64, latitude float64, longitude float64) *RoadSurfaceObserved
NewRoadSurfaceObserved creates a new instance of RoadSurfaceObserved
func (*RoadSurfaceObserved) WithRoadSegment ¶
func (rso *RoadSurfaceObserved) WithRoadSegment(segmentID string) (*RoadSurfaceObserved, error)
WithRoadSegment creates a reference to a road segment.
Click to show internal directories.
Click to hide internal directories.