diff --git a/app/models/event.rb b/app/models/event.rb index 88d0b0a6..3e3cc378 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -88,9 +88,10 @@ class Event < ActiveRecord::Base def as_json(_options = {}) { type: 'Feature', properties: { - id: id, name: title, tags: tags, - popupContent: "#{self}", - start_time: start_time, end_time: end_time, locality: locality + id: id, name: title, start_time: start_time, end_time: end_time, + place_name: place_name, address: address, city: city, locality: locality, + tags: tags, + popupContent: "#{self}" }, geometry: { type: 'Point', coordinates: [longitude, latitude] } } end