func NewDefaultFeaturesOfInterest() *gossamer.FeatureOfInterestEntity {
	e := gossamer.NewFeatureOfInterestEntity()
	e.Description = "Description for Features of Interest"
	e.EncodingType = gossamer.LOCATION_ENCTYPE_GEOJSON
	e.Feature = "FEATURE"
	return e
	//		"feature": {
	//			"coordinates": [51.08386,-114.13036],
	//			"type": "Point"
	//		}
}
Beispiel #2
0
func InsertFeaturesOfInterest(c gossamer.Client) {
	e := gossamer.NewFeatureOfInterestEntity()
	e.Description = "XXXX"
	e.EncodingType = gossamer.LOCATION_ENCTYPE_GEOJSON
	e.Feature = "Feature ABC 1 2 3"

	err := c.InsertFeaturesOfInterest(e)
	if err != nil {
		log.Fatal(err)
	}
	log.Println("Inserted New Feature of Interest")
}