简体   繁体   English

使用PGRouting的基于GTFS的公交规划

[英]GTFS based Transit Planning using PGRouting

I have followed below tutorial for setting-up OpenTripPlanner by importing GTFS data and it worked. 我已经按照以下教程通过导入GTFS数据来设置OpenTripPlanner并且它工作正常。

http://docs.opentripplanner.org/en/latest/Basic-Tutorial/ http://docs.opentripplanner.org/en/latest/Basic-Tutorial/

But I have to integrate the trip planning on an existing GIS implementation which uses OpenLayers, PostgreSQL, PostGIS and PGRouting. 但我必须将旅行计划整合到现有的GIS实施中,该实施使用OpenLayers,PostgreSQL,PostGIS和PGRouting。 I am not sure is it possible to use OpenTripPlanner APIs to fetch Trips and display on GUI. 我不确定是否可以使用OpenTripPlanner API来获取Trips并在GUI上显示。

I would like to know, Is it possible to do the trip planning similar to OpenTripPlanner using PostGIS and Pgrouting (Without using OpenTripPlanner)? 我想知道,是否可以使用PostGIS和Pgrouting(不使用OpenTripPlanner)进行类似于OpenTripPlanner的旅行计划?

If possible how will be the Pgrouting database structure or query logic for finding upcoming trips between stops with transits? 如果可能的话,Pgrouting数据库结构或查询逻辑将如何在过境站点之间查找即将到来的旅行?

In Pgrouting DB, found two tables POI and spatial reference table other than ways and vertices, do I need to import GTFS data to this POI and spatial reference table? 在Pgrouting DB中,找到了除路径和顶点之外的两个表POI和空间参考表,是否需要将GTFS数据导入此POI和空间参考表?

Thanks in advance. 提前致谢。

pgRouting and OTP are two different platforms with their own respective tools for importing data into their routing engines. pgRouting和OTP是两个不同的平台,它们各自的工具用于将数据导入其路由引擎。 I'm not sure how it would make sense to try to integrate the two instead of merely using one in favor of the other. 我不确定尝试整合两者而不是仅仅使用一个支持另一个而有意义。 If you're set on using pgRouting, I'd recommend following the tutorials for loading data into pgRouting . 如果您已经开始使用pgRouting,我建议您按照教程将数据加载到pgRouting中 Also, for loading transit it does look like pgRouting has the gtfs2pgrouting tool, but it was last updated 8 years ago. 此外,对于加载传输,它看起来像pgRouting有gtfs2pgrouting工具,但它最后更新8年前。

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

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