Skip to content
This repository has been archived by the owner on Dec 17, 2022. It is now read-only.

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaroland committed Dec 20, 2017
1 parent ceea503 commit 22e0c0d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ curl 'http://localhost:5555/?latitude=54.793624&longitude=-79.948933&format=geoj
```
docker build -t wof-pip-server .
docker run -p 6161:8080 -e HOST='0.0.0.0' -e EXTRAS='y' -e MODE='sqlite' -e SOURCES='timezone-20171212' wof-pip-server
docker run -p 6161:8080 -e HOST='0.0.0.0' -e EXTRAS='allow' -e MODE='sqlite' -e SOURCES='timezone-20171212' wof-pip-server
fetch https://whosonfirst.mapzen.com/sqlite/timezone-20171212.db
/go-whosonfirst-pip-v2/bin/wof-pip-server -host 0.0.0.0 -allow-extras -mode sqlite /usr/local/data/timezone-20171212.db
00:08:41.764637 [wof-pip-server] STATUS create temporary extras database '/tmp/pip-extras738521352'
Expand Down
34 changes: 17 additions & 17 deletions http/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package http

import (
"github.com/elazarl/go-bindata-assetfs"
"bytes"
"compress/gzip"
"fmt"
"github.com/elazarl/go-bindata-assetfs"
"io"
"io/ioutil"
"os"
Expand Down Expand Up @@ -330,16 +330,16 @@ func AssetNames() []string {

// _bindata is a table, holding each asset generator, mapped to its name.
var _bindata = map[string]func() (*asset, error){
"www/index.html": wwwIndexHtml,
"www/javascript/mapzen.js": wwwJavascriptMapzenJs,
"www/javascript/mapzen.min.js": wwwJavascriptMapzenMinJs,
"www/index.html": wwwIndexHtml,
"www/javascript/mapzen.js": wwwJavascriptMapzenJs,
"www/javascript/mapzen.min.js": wwwJavascriptMapzenMinJs,
"www/javascript/mapzen.whosonfirst.pip.js": wwwJavascriptMapzenWhosonfirstPipJs,
"www/javascript/slippymap.crosshairs.js": wwwJavascriptSlippymapCrosshairsJs,
"www/javascript/tangram.js": wwwJavascriptTangramJs,
"www/javascript/tangram.min.js": wwwJavascriptTangramMinJs,
"www/css/mapzen.js.css": wwwCssMapzenJsCss,
"www/css/mapzen.whosonfirst.pip.css": wwwCssMapzenWhosonfirstPipCss,
"www/tangram/refill-style.zip": wwwTangramRefillStyleZip,
"www/javascript/slippymap.crosshairs.js": wwwJavascriptSlippymapCrosshairsJs,
"www/javascript/tangram.js": wwwJavascriptTangramJs,
"www/javascript/tangram.min.js": wwwJavascriptTangramMinJs,
"www/css/mapzen.js.css": wwwCssMapzenJsCss,
"www/css/mapzen.whosonfirst.pip.css": wwwCssMapzenWhosonfirstPipCss,
"www/tangram/refill-style.zip": wwwTangramRefillStyleZip,
}

// AssetDir returns the file names below a certain
Expand Down Expand Up @@ -381,21 +381,20 @@ type bintree struct {
Func func() (*asset, error)
Children map[string]*bintree
}

var _bintree = &bintree{nil, map[string]*bintree{
"www": &bintree{nil, map[string]*bintree{
"css": &bintree{nil, map[string]*bintree{
"mapzen.js.css": &bintree{wwwCssMapzenJsCss, map[string]*bintree{}},
"mapzen.js.css": &bintree{wwwCssMapzenJsCss, map[string]*bintree{}},
"mapzen.whosonfirst.pip.css": &bintree{wwwCssMapzenWhosonfirstPipCss, map[string]*bintree{}},
}},
"index.html": &bintree{wwwIndexHtml, map[string]*bintree{}},
"javascript": &bintree{nil, map[string]*bintree{
"mapzen.js": &bintree{wwwJavascriptMapzenJs, map[string]*bintree{}},
"mapzen.min.js": &bintree{wwwJavascriptMapzenMinJs, map[string]*bintree{}},
"mapzen.js": &bintree{wwwJavascriptMapzenJs, map[string]*bintree{}},
"mapzen.min.js": &bintree{wwwJavascriptMapzenMinJs, map[string]*bintree{}},
"mapzen.whosonfirst.pip.js": &bintree{wwwJavascriptMapzenWhosonfirstPipJs, map[string]*bintree{}},
"slippymap.crosshairs.js": &bintree{wwwJavascriptSlippymapCrosshairsJs, map[string]*bintree{}},
"tangram.js": &bintree{wwwJavascriptTangramJs, map[string]*bintree{}},
"tangram.min.js": &bintree{wwwJavascriptTangramMinJs, map[string]*bintree{}},
"slippymap.crosshairs.js": &bintree{wwwJavascriptSlippymapCrosshairsJs, map[string]*bintree{}},
"tangram.js": &bintree{wwwJavascriptTangramJs, map[string]*bintree{}},
"tangram.min.js": &bintree{wwwJavascriptTangramMinJs, map[string]*bintree{}},
}},
"tangram": &bintree{nil, map[string]*bintree{
"refill-style.zip": &bintree{wwwTangramRefillStyleZip, map[string]*bintree{}},
Expand Down Expand Up @@ -450,6 +449,7 @@ func _filePath(dir, name string) string {
return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
}


func assetFS() *assetfs.AssetFS {
assetInfo := func(path string) (os.FileInfo, error) {
return os.Stat(path)
Expand Down

0 comments on commit 22e0c0d

Please sign in to comment.