Added region_id to the generated geojson

This commit is contained in:
echarp 2018-03-18 18:20:11 +01:00
parent 838d4538a6
commit c37fc6f3cd
1 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,8 @@ class Event < ApplicationRecord
{ type: 'Feature', properties: {
id: id, name: title, start_time: start_time, end_time: end_time,
submission_time: submission_time, decision_time: decision_time,
place_name: place_name, address: address, city: city, region: region.name,
place_name: place_name, address: address, city: city,
region: region.name, region_id: region_id,
tags: tag_list, popupContent: "<a href=\"/events/#{id}\">#{self}</a>"
}, geometry: { type: 'Point', coordinates: [longitude, latitude] } }
end