Hi,
The master branch should only add new capabilities to the older versions
or stable. In master you now have the option of starting a built-in
server (class OTPMain, which will run automatically if you run the
otp.jar file or use the otp shell script in the root of the project), or
you can use OTP as a servlet and drop it into a container like Tomcat.
It is possible to run servlet containers inside Eclipse. It is also
possible to run the OTPMain class inside Eclipse.
When using OTP as a servlet you have to modify data-sources.xml to
indicate where your graph is. When running the stand-alone JAR you can
provide the path to the graphs with the -g command line switch.
For a simple startup, see
https://github.com/opentripplanner/OpenTripPlanner/wiki/TwoMinutes
-Andrew
On 02/19/2014 10:30 PM, Daniel wrote:
> How do you start the server using the master branch? Do you execute it
> in Eclipse? If yes, how do you set the paths of the Graph.obj and
> Graph.properties in the master branch?
> Thanks in advance!
>
>
> Am Mittwoch, 8. Januar 2014 15:01:35 UTC-5 schrieb Arjun:
>
> Hi,
>
> We could use onebusaway exporter to delay a particular train/bus and
> see if it is
> getting updated in the graph (you could use the api to get the
> details for the train-station pair or bus-stand pair).
>
> @Niccolo:
> Using the master branch, all you need to do is create a file called
> Graph.properties in the same folder as your Graph.obj with the
> following details to consume GTFS real-time feed. (Jus paste as is
> except for the url and agencyid if you have to change)
>
> *rt.type = stop-time-updater*
> *rt.sourceType = gtfs-http*
> *rt.url = *
http://localhost:8081/tripUpdate
> <
http://localhost:8081/tripUpdate>
> *rt.frequencySec = 60*
> *rt.defaultAgencyId = GT*
> <
https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FOneBusAway%2Fonebusaway-gtfs-realtime-exporter&sa=D&sntz=1&usg=AFQjCNFCCZeqvQHdv7qglzcbfwR1OVJ-rA>
>
> it seems to work and I can connect to it using the
> simple websocket chrome extension
>
> I now need to tell otp to connect to the websocket
> but I could not find any example for doing so.
>
> I see
> that org.opentripplanner.updater.stoptime.WebsocketGtfsRealtimeUpdater
> should do the job but I don't know where and how I
> should specify it.
>
> I've tried adding
>
> <bean
> class="org.opentripplanner.updater.stoptime.WebsocketGtfsRealtimeUpdater">
> <property name="url"
> value="
http://localhost:8081/tripUpdate
> <
http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A8081%2FtripUpdate&sa=D&sntz=1&usg=AFQjCNFpU-ClUEuH3FKEbPyCMbNHNx2pmA>"/>
> </bean>
> in application-context but it seems that it has its
> own way of specifying the parameters. I also tried
> to hardcode the url to see if it does work but I
> don't see in console anithing saying it's doing so.
>
> Anyone can help?
>
> Thanks
> niccolo
>
> --
> You received this message because you are subscribed to the Google
> Groups "OpenTripPlanner Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
opentripplanner-...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.