Skip to content

Instantly share code, notes, and snippets.

🤒
Out sick

jingwei.zuo zuo1188

🤒
Out sick
Block or report user

Report or block zuo1188

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:ded6d2c12533af5e0934c86e7984bbce
1.OSRM及前端工具安装部署与调试
1.1 OSRM安装
代码下载(https://github.com/Project-OSRM/osrm-backend)
安装依赖库
sudo apt install build-essential git cmake pkg-config \
libbz2-dev libstxxl-dev libstxxl1v5 libxml2-dev \
libzip-dev libboost-all-dev lua5.2 liblua5.2-dev libtbb-dev
编译安装
mkdir -p build
cd build
View gist:f8495d8df558ec1ed703278fd2865e81
永久的开放需要的端口
sudo firewall-cmd --zone=public --add-port=3000/tcp --permanent
sudo firewall-cmd --reload
之后检查新的防火墙规则
firewall-cmd --list-all
View gist:476778cd2f5f3118a8d629683cf34cb3
sudo python /home/jingwei/.local/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py
View 新数据导入elasticsearch步骤
1. 启动elasticsearch
2. 启动API项目 及打开DEMO 准备数据测试
3. 修改 ~/pelias.json最后 sw中
"sw":{
"datapath": "/Users/hanzhongjian/mapdesign/data/xz"
}
将路径修改为 数据的路径即可
4. 开始修改sw项目中 sw2json/sw2json.py
View pelias部署方法
参考http://pelias.io/install.html
1. 新建Install.sh,在其中增加:
for repository in schema api whosonfirst geonames openaddresses openstreetmap polylines; do
git clone https://github.com/pelias/${repository}.git # clone from Github
pushd $repository > /dev/null # switch into importer directory
git checkout production # or remove this line to stay with master
npm install # install npm dependencies
popd > /dev/null # return to code directory
done
View pelias部署方法
参考http://pelias.io/install.html
1. 新建Install.sh,在其中增加:
for repository in schema api whosonfirst geonames openaddresses openstreetmap polylines; do
git clone https://github.com/pelias/${repository}.git # clone from Github
pushd $repository > /dev/null # switch into importer directory
git checkout production # or remove this line to stay with master
npm install # install npm dependencies
popd > /dev/null # return to code directory
done
View mac osrm部署及测试文档
mac安装osrm_backend:
brew install tbb
brew install libstxxl
brew install lua
cd osrm-backend
mkdir -p build
cd build
cmake ..
cmake --build .
View gist:43a3a1d9399fec487f87b0213af3de8a
sudo yum install centos-release-scl
sudo yum install devtoolset-4-gcc*
scl enable devtoolset-4 bash
which gcc
gcc --version
You can’t perform that action at this time.