On 11/28/2013 10:39 PM, Mark_Lester wrote:
> 1. I have the basic requirement to get the From/To dialogue appearing. I
> cannot find in any config file or template why this isnt turning up.
It sounds like you want a Geocoder. The OTP API accepts latitude and
longitude coordinates or stop ids as trip endpoints. A geocoder converts
place names into positions that the API understands.
Here is a mailing list post explaining how to set up a geocoder:
https://groups.google.com/d/msg/opentripplanner-dev/81RfyaCpy1A/0RF_iIG8IuUJ
> Do I have to flag something in the data, Graph.obj, that these are station
> names to be used in a lookup and accept them ?
I don't believe the OTP API supports station names as endpoints. It's a
decent idea though, might save some people the trouble of setting up a
geocoder.
> It's barely usable now as you have to score a direct hit on
> the station, and for non locals you just want to type in somewhere like
> "Sylhet" and let it happen.
It sounds like you have not loaded a street network into your graph. OTP
attempts to connect the endpoints to the street network, which then lead
to the transit stations. It is possible to snap the endpoints directly
to a station, but as you've noticed the radius is much smaller. That
radius would need to be much larger to work well with graphs lacking a
street network.
> 2. I then would like to develop the interface so you can get alternative
> timetable data in a window, stuff like trains from this station, or all
> trains on this route, or even just the full itinerary of a given train.
This already exists. You will need to include the TransitIndex when you
build your graph, and you will need to use a client that benefits from
that index. The leaflet client can display routes and next arrivals, etc.
> 3. I then have the more major task of allowing someone to click on a
> given trip and edit it, graphically, by adding/deleting/editing stops
> and stop_times. i.e. if you want a GTFS editor, then surely this is the
> most obvious place to have it. I am certain you've already though about
> that in general. I did fetch all the gtfs editing stuff that seemed
> freely available. None of it seemed to be more than a few hours work.
A graphical GTFS route editor would be nice, and I believe some tools of
this kind already exist, but I'm not sure many people would agree that
the most obvious place for a GTFS editor is embedded in a public-facing
route planner.
I'm fairly sure that the GTFS editors out there, while perhaps not the
most polished software in existence, took significantly more than "a few
hours work" to write.
-Andrew