2014-08-06 14:47:47 +02:00
|
|
|
# Geocoding
|
|
|
|
#
|
|
|
|
# Access to OSM controls
|
2014-04-28 00:33:21 +02:00
|
|
|
class MapsController < ApplicationController
|
2014-11-05 21:25:18 +01:00
|
|
|
has_scope :region, :locality, :tag
|
|
|
|
|
2014-04-28 00:33:21 +02:00
|
|
|
def index
|
2014-07-31 01:32:47 +02:00
|
|
|
respond_to do |format|
|
|
|
|
format.html
|
2014-11-05 21:25:18 +01:00
|
|
|
format.json { render json: apply_scopes(Event.moderated.future.geo) }
|
2014-07-31 01:32:47 +02:00
|
|
|
end
|
2014-04-28 00:33:21 +02:00
|
|
|
end
|
|
|
|
end
|