 JSZip = require 'jszip'
 request = require 'superagent'
 
+geocaches = require '../geocache.coffee'
 server = require '../backend.coffee'
 
 class PoiActions extends Actions

    submit: (types) ->
        new Promise (resolve, reject) =>
            files = types.map (type) ->
                url: server.url "/poi.csv?type=#{type}"
                name: "#{type}.csv"
            zip = new JSZip()
            zipFolder = zip.folder 'poi'

                    @setFilename next.name
                    request
                        .get next.url
                        .accept 'text/csv'
                        .end (err, res) ->
                            return reject err if err?
                            h next.name, res.text
            h()

        ###
