2014-08-06 14:47:47 +02:00
|
|
|
# Geocoding
|
|
|
|
#
|
|
|
|
# Access to OSM controls
|
2014-04-28 00:33:21 +02:00
|
|
|
class MapsController < ApplicationController
|
|
|
|
def index
|
2014-07-31 01:32:47 +02:00
|
|
|
respond_to do |format|
|
|
|
|
format.html
|
2014-08-06 14:47:47 +02:00
|
|
|
format.json do
|
|
|
|
render json: Event.moderated.future
|
|
|
|
.joins(:related_city).includes(:related_city)
|
|
|
|
.map { |event| event.to_json }
|
|
|
|
end
|
2014-07-31 01:32:47 +02:00
|
|
|
end
|
2014-04-28 00:33:21 +02:00
|
|
|
end
|
|
|
|
end
|