aj0strow / carbonmap

Carbon Savings Energy Map
0 stars 0 forks source link

GET /building/:id #2

Open jacobpdq opened 10 years ago

jacobpdq commented 10 years ago
{
    id:1,                               // int
    name:'The Commoner',                // varchar
    imageThumbnail: 'the-commoner.jpg', // varchar
    imageLarge: 'the-commoner-large.jpg',// varchar
    description: 'Description of the space goes here', // text
    address: {
        streetName: 'Pleasant Ave.',    // varchar
        streetNumber: '85',             // varchar
        postalCode: 'K2R3R4',           // varchar
        city: 'Kingston',               // varchar
        province: 'Ontario',            // varchar
        country: 'Canada',              // varchar
    },
    coordinates: {
        latitude: '44.263565',          // float
        longitude: '-76.50336',         // float
    },
    savings: {
        fiveYear: '200000' ,            // int,     ($ savings, 5 year)
        lastMonth: '0.4',               // float    (percentage saved last month)
    },

},

1

aj0strow commented 10 years ago

Haha loving the sql datatypes. @subsumo what size are imageThumbnail and imageLarge?

jacobpdq commented 10 years ago

Which datatypes - wherE?

imageThumb ~ 200px wide, imageLarge > 1000px wide, if possible..

On Jul 3, 2014, at 6:59 PM, AJ notifications@github.com wrote:

Haha loving the sql datatypes. @subsumo what size are imageThumbnail and imageLarge?

— Reply to this email directly or view it on GitHub.

aj0strow commented 10 years ago

@subsumo the savings are for the cumulative. Wouldn't it make more sense to put them in the GET /buildings call? I'll ship this version tonight tho.