2013-02-11 2 views
3

Iam Работая над tripplanner, у меня возникла проблема, что мой GTFS не будет работать. Файлы OSM загружаются правильно, tripplanner теперь делает самый быстрый маршрут от точки A до B, но он не учитывает автобусы. Только ходьба.GTFS в OpenTripPlanner

Мой файл GTFS находится здесь: http://www.rkt.no/gt/google_transit.zip.

Iam с использованием OpenTripPlanner.

Любая идея, что я могу сделать, чтобы она работала? Спасибо за ответы.

Вот что мой граф-builder.xml выглядит следующим образом:

<?xml version="1.0" encoding="UTF-8"?> 
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:context="http://www.springframework.org/schema/context" 
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"> 

    <bean id="gtfsBuilder" class="org.opentripplanner.graph_builder.impl.GtfsGraphBuilderImpl"> 
     <property name="gtfsBundles"> 
      <bean id="gtfsBundles" class="org.opentripplanner.graph_builder.model.GtfsBundles"> 
       <property name="bundles"> 
        <list> 
         <bean class="org.opentripplanner.graph_builder.model.GtfsBundle"> 
          <property name="path" value="C:\Users\Mesel\Downloads\google_transit.stops.zip" /> 


          <!-- By default, bikes may only be taken along on transit trips if the GTFS data allows them to be. 
           If the GTFS data doesn't contain appropriate data, but the actual transit trips do allows bikes 
           to be taken along, a defaultBikesAllowed property may be specified to allow bikes. 
          --> 
          <property name="defaultBikesAllowed" value="true" /> 
         </bean> 
        </list> 
       </property> 
      </bean> 
     </property> 

     <!-- GTFS-rt ALERTS --> 
     <property name="gtfsGraphBuilders"> 
      <list> 
       <bean class="org.opentripplanner.graph_builder.impl.transit_index.TransitIndexBuilder" /> 
      </list> 
     </property> 
    </bean> 

    <!-- Configure the GraphBuilderTask --> 
    <bean id="graphBuilderTask" class="org.opentripplanner.graph_builder.GraphBuilderTask"> 
     <!-- The path where the graph bundle will be written --> 
     <property name="path" value="C:/otp" /> 
     <property name="graphBuilders"> 
      <list> 
       <!-- Include an OpenStreetMap graph builder plugin --> 
       <bean class="org.opentripplanner.graph_builder.impl.osm.OpenStreetMapGraphBuilderImpl"> 
        <property name="provider"> 
         <!-- Use an OSM provider that will automatically download OSM data in a specified region --> 
         <bean class="org.opentripplanner.openstreetmap.impl.RegionBasedOpenStreetMapProviderImpl"> 
          <property name="regionsSource"> 
           <!-- The region to collect OSM data --> 
           <bean class="org.opentripplanner.openstreetmap.impl.FixedRegionSourceImpl"> 
            <property name="latFrom" value="58.896" /> 
            <property name="lonFrom" value="5.70873" /> 
            <property name="latTo" value="58.9122" /> 
            <property name="lonTo" value="5.75117" /> 
           </bean> 
          </property> 
          <!-- Specify where downloaded OSM data will be cached --> 
          <property name="cacheDirectory" value="C:/otp/test" /> 
         </bean> 
        </property> 
        <property name="defaultWayPropertySetSource"> 
         <bean class="org.opentripplanner.graph_builder.impl.osm.DefaultWayPropertySetSource" /> 
        </property> 
       </bean> 
      </list> 
     </property> 
    </bean> 
</beans> 
+0

xml-файл кажется правильным, я изменил некоторые пути к cacheDirectory и использовал онлайн-файл gtfs не локально. –

ответ

0

вы подтвердили свой GTFS файлы?

Смежные вопросы