 
   lines: ->
     _.compact([
-      @get 'address' || ''
-      @get 'address_2' || ''
-      @cityStatePostalCode() || ''
-      @get 'country' || ''
+      @get 'address' or ''
+      @get 'address_2' or ''
+      @cityStatePostalCode() or ''
+      @get 'country' or ''
     ])
 
   cityState: ->
     _.compact([
-      @get 'city' || ''
-      @get 'state' || ''
+      @get 'city' or ''
+      @get 'state' or ''
     ]).join(', ')
 
   cityStateCountry: ->
     _.compact([
-      @get 'city' || ''
-      @get 'state' || ''
-      @get 'country' || ''
+      @get 'city' or ''
+      @get 'state' or ''
+      @get 'country' or ''
     ]).join(', ')
 
   cityStatePostalCode: ->
     _.compact([
-      @cityState() || ''
-      @get('postal_code') || ''
+      @cityState() or ''
+      @get('postal_code') or ''
     ]).join(' ')
 
   singleLine: ->
     _.compact([
-      @get 'city' || ''
+      @get 'city' or ''
       _.compact([
-        @get 'address' || ''
-        @get 'address_2' || ''
+        @get 'address' or ''
+        @get 'address_2' or ''
       ]).join(' ')
     ]).join(', ')
 

      @displayAddress()

  toJSONLD: ->
    address = [@get('address') || '', @get('address_2') || ''].join('')
    compactObject {
      "@type": "Place"
      name: @get('name')

_                   = require 'underscore'
Backbone            = require 'backbone'
{ compactObject }   = require './mixins/compact_object.coffee'

module.exports = class Location extends Backbone.Model
  defaults: ->
    raw: ''
    address: ''
