Create api map resource
This commit is contained in:
parent
8cf77a2f36
commit
01b5ed5d28
9 changed files with 30 additions and 30 deletions
|
@ -1,5 +1,5 @@
|
|||
module Api
|
||||
class MapController < ApiController
|
||||
class MapsController < ApiController
|
||||
authorize_resource :class => false
|
||||
|
||||
before_action :set_request_formats
|
||||
|
@ -13,7 +13,7 @@ module Api
|
|||
# Then all the relations that reference the already found nodes and ways are
|
||||
# fetched. All the nodes and ways that are referenced by those ways are then
|
||||
# fetched. Finally all the xml is returned.
|
||||
def index
|
||||
def show
|
||||
# Figure out the bbox
|
||||
# check boundary is sane and area within defined
|
||||
# see /config/application.yml
|
|
@ -19,7 +19,7 @@ class ExportController < ApplicationController
|
|||
case style
|
||||
when "osm"
|
||||
# redirect to API map get
|
||||
redirect_to :controller => "api/map", :action => "index", :bbox => bbox
|
||||
redirect_to api_map_path(:bbox => bbox)
|
||||
|
||||
when "mapnik"
|
||||
# redirect to a special 'export' cgi script
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue