简体   繁体   English

在Heroku上设置OSRM(开源路由机器)

[英]Setting up OSRM (Open Source Routing Machine) on Heroku

Has anyone had luck building and running a OSRM instance in Heroku? 是否有人在Heroku中构建并运行OSRM实例很幸运? I am looking for a cloud-based solution where I can serve my mobile app. 我正在寻找一种基于云的解决方案,可以在其中为我的移动应用提供服务。 Their wiki page https://github.com/Project-OSRM/osrm-backend/wiki/Building-and-Running-OSRM-on-Heroku exists but has no information written yet. 他们的Wiki页面https://github.com/Project-OSRM/osrm-backend/wiki/Building-and-Running-OSRM-on-Heroku存在,但尚未编写任何信息。

Any help or hints on how to set it up in Heroku would be appreciated. 对于在Heroku中进行设置的任何帮助或提示,我们将不胜感激。

Thanks! 谢谢!

The site http://jpizarrom.github.io/osm-chile/ is using osrm in heroku [1] 网站http://jpizarrom.github.io/osm-chile/在heroku中使用osrm [1]

You can build osrm on Ubuntu 14.04 LTS [2] 您可以在Ubuntu 14.04 LTS上构建osrm [2]

then make a buildpack with the binary osrm-routed, install the dependencies and download the data files from amazon s3. 然后使用二进制osrm路由构建一个buildpack,安装依赖项并从Amazon s3下载数据文件。

Finally you add to the Procfile 最后,您将添加到Procfile

web: osrm-routed -c chile-car.conf car/chile-latest.osrm -p $PORT

[1] bicycle: ' http://osrm-chile-bicycle.herokuapp.com/viaroute ' [1]自行车:“ http://osrm-chile-bicycle.herokuapp.com/viaroute

[2] github.com/Project-OSRM/osrm-backend/wiki/Deployment-using-Chef [2] github.com/Project-OSRM/osrm-backend/wiki/Deployment-using-Chef

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM