5

我按照下面的教程通过导入 GTFS 数据来设置 OpenTripPlanner 并且它有效。

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

但我必须将旅行计划整合到使用 OpenLayers、PostgreSQL、PostGIS 和 PGRouting 的现有 GIS 实施中。我不确定是否可以使用 OpenTripPlanner API 来获取旅行并在 GUI 上显示。

我想知道,是否可以使用 PostGIS 和 Pgrouting(不使用 OpenTripPlanner)进行类似于 OpenTripPlanner 的旅行计划?

如果可能的话,Pgrouting 数据库结构或查询逻辑将如何用于查找停靠站之间的即将到来的行程?

在Pgrouting DB中,发现除了ways和vertices之外还有两个表POI和空间参考表,我需要将GTFS数据导入到这个POI和空间参考表吗?

提前致谢。

4

1 回答 1

1

pgRouting and OTP are two different platforms with their own respective tools for importing data into their routing engines. 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. Also, for loading transit it does look like pgRouting has the gtfs2pgrouting tool, but it was last updated 8 years ago.

于 2019-01-18T23:33:32.797 回答