diwise

package
v0.0.0-...-357839d Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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