Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import {NewDocument, RetrievedDocument} from 'documentdb';
export class PhotoLocationDocument implements NewDocument<PhotoLocationDocument>,
RetrievedDocument<PhotoLocationDocument>{
/* NewDocument Interface */
id:string;
/* RetrievedDocument Interface */
_ts:string;
_self:string;
/* Photo Location Properties */
name:string;
tags: string[];
address: {
street: string,
city: string,
zip: string,
country: string
};
geoLocation: {
type: string;
coordinates: number[];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.