Skip to content

Instantly share code, notes, and snippets.

@joshdcar
Created March 1, 2017 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshdcar/d13bc36b46ab6544e22add0c5dbc2dc2 to your computer and use it in GitHub Desktop.
Save joshdcar/d13bc36b46ab6544e22add0c5dbc2dc2 to your computer and use it in GitHub Desktop.
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