bryanbrotonel/Fyndit

Implement assets documents.

Closed this issue · 1 comments

There are three important fields for every location in fyndit. These fields are:
Name, Address and imageName.

All of our current data-sets have different fields, so we will need to standardize the data to a common format (JSON.) Proposed format:

[
  {
    "name": "park",
    "data": [
      {
        "name": "Glenbrook Community Centre",
        "address": "JAMIESON CRT 76 Glenbrook Community Centre New Westminster British Columbia",
        "imageName": "park/14.jpg"
      },
      {
        "name": "Albert Crescent Park",
        "address": "FIRST ST 40 Albert Crescent Park New Westminster British Columbia",
        "imageName": "park/28.jpg"
      }],
etc...

Images are not located in assets/{park/cafe/etc...}/ and are in jpg format.

Resolved in 3ef5818

The data is all aggregated into one json document, assets/data.json. Each entry in that array has a category name (park, cafe etc...) and an array of objects with (name, address and imageName).