I want to store location information in DocumentDB, hence using the Point type from DocumentDB. I have a class LocationInfo to map data from the incoming post request.
#r "Newtonsoft.Json"
using Newtonsoft.Json;
using Microsoft.Azure.Documents.Spatial;
public class LocationInfo
{
[JsonProperty(PropertyName = "deviceId")]
public string DeviceId {get; set;}
[JsonProperty(PropertyName = "location")]
public Point Location {get; set;}
[JsonProperty(PropertyName = "activityId")]
public string ActivityId {get; set;}
[JsonProperty(PropertyName = "type")]
public string Type {get; set;}
[JsonProperty(PropertyName = "dateTime")]
public DateTime DateTime {get; set;}
}
My function isn't compiling and I am getting the error below.
error CS0234: The type or namespace name 'Documents' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?)
error CS0246: The type or namespace name 'Point' could not be found (are you missing a using directive or an assembly reference?)
How do I reference using Microsoft.Azure.Documents.Spatial;
in an Azure Function.