Data types
In order to make the data types easier to reason about, we've grouped each type into one of three fundamental categories: Map data (data types that are Map specific), Tour data (types that are only used within the Tour itself), and Places (UOIT geographical locations whose relationships span both Map and Tour).
Note: These categories are examples of a 'grouped by' relationship: they connect the data types by common traits but are not things themselves and do not "contain" the data; they are merely representations of relationships between items from one single "set" of data.
Places
-
Locations
Description
A Location in the Tour or Map refers strictly to one of the two UOIT campus locations, i.e. it can only be one of the following:
- North Oshawa campus location
- Downtown Oshawa campus location
In the Tour, Locations are used to group buildings, provide URLs, and provide default scenes. In the Map, they are used to switch between two different map views.
Sample
{ "_id": "57ead45ee481ce773d1544f6", "code": "dt", "label": "Downtown location", "name": "Downtown Oshawa campus location", "default": "5884d4094875180004b48f84" }
-
Buildings
DESCRIPTION
Buildings in the Tour or Map are analagous to their respective UOIT buildings.
In the Tour, buildings are used to group scenes, provide URLs and provide default scenes. In the Map, they are used to provide building metadata (such as descriptions) to their associated Map features.
SAMPLE
{ "_id": "57a8e38b12ad99fe889c95f3", "name": "Business and IT Building (UB)", "label": "Business and IT Building", "code": "ub", "desc": "<p>Referred on campus by many as UB, the 9,700-square-metre Business and Information Technology Building offers our students innovative research laboratories, modern lecture halls, a large café and student lounge areas. It is the home of the Faculty of Business and Information Technology.</p>\r\n<p>Like other UOIT academic buildings, a portion of UB's rooftop is 'green', just one of UOIT's many environmentally friendly features.</p>", "parent": "57ead427e481ce773d1544f5", "default": "583f17cfd2cd0c0400072d9c", "updatedAt": "2016-12-06T15:43:15.348Z" }
Tour data
-
Scenes
Scenes represent what a user "sees" when they visit the Tour. A scene is comprised of a panoramic photograph (which forms the background) and any number of 3D "objects" within it.
Scenes can be linked from other scenes using scene links, and can feature additional information on points of interest with hotspots.
Every scene must have a code, i.e. polonsky_1a, in order to provide a URL for the scene.
{ "_id": "5884d4094875180004b48f84", "parent": { "_id": "57f7ca667919660300d609b2", "updatedAt": "2017-02-09T15:49:59.208Z", "createdAt": "2016-10-07T16:16:38.625Z", "parent": "57ead45ee481ce773d1544f6", "coords": [ -78.861972, 43.898302 ], "desc": "", "code": "ext-dt", "label": "Downtown exterior", "name": "Exterior - Downtown location", "__v": 0, "default": "5884d4094875180004b48f84", "updatedBy": "582ccdb441ce8d04004c9fa6" }, "code": "charles", "name": "61 Charles", "entities": [ ], "hotSpots": [ ], "sceneLinks": [ { "scene": { "_id": "588f536c3e6f6e0004a0df48", "parent": { "_id": "57a8e2a112ad99fe889c95f2", "name": "61 Charles Street", "code": "charles", "parent": { "_id": "57ead45ee481ce773d1544f6", "code": "dt", "name": "Downtown Oshawa campus location" } }, "code": "6c", "name": "Interior 6C" }, "_id": "58909373644f770004e07e71", "rotation": [ 0, -90, 55 ], "position": [ 0.3, 0.75, -5.25 ] }, { "scene": { "_id": "5884d4254875180004b48f85", "parent": { "_id": "57f7ca667919660300d609b2", "parent": { "_id": "57ead45ee481ce773d1544f6", "code": "dt", "name": "Downtown Oshawa campus location" }, "code": "ext-dt", "name": "Exterior - Downtown location" }, "code": "regent", "name": "Regent Theatre" }, "_id": "58909b53644f770004e07e7d", "rotation": [ 0, 35, 60 ], "position": [ -3.25, 0, 2.95 ] } ], "panorama": { "public_id": "scenes/panorama/l7exkppkzi3lg3tndznv", "version": 1485100041, "signature": "3cb9bd6e0178424edb2c3653f7f83505d47540de", "width": 5500, "height": 2750, "format": "jpg", "resource_type": "image", "url": "http://res.cloudinary.com/uoit-virtual-tour/image/upload/v1485100041/scenes/panorama/l7exkppkzi3lg3tndznv.jpg", "secure_url": "https://res.cloudinary.com/uoit-virtual-tour/image/upload/v1485100041/scenes/panorama/l7exkppkzi3lg3tndznv.jpg" } }