On 06/27/2013 11:38 AM, Igor Petruk wrote:
> I don't specify street names, I use exact stop ID's, which should be a
> Vertex description for exact stop. It doesn't need to walk a single feet
> on the street as well as I understand. But the user does need to walk on
> transfers, I have supplied all in-station transfers in transfers.txt. Do
> I need to populate it also for inter-station transfers?
The OTP API if often called from map-based trip planners, so endpoints
are often specified as coordinates and the nearest edge or vertex is
used as the starting point.
If you want to start at a specific vertex, you can specify vertex IDs in
the fromPlace and toPlace query parameters, and stops have vertex IDs
like agency_stopid, so you can do
"?fromPlace=agency_stop&toPlace=agency_otherstop".
> I think I am a bit confused about location of domain data. Is
> underground path data included in OSM? Because train path in not
> really a street.
Underground paths could be included in OSM. What kind of underground
path are you thinking of, paths between stops like walking tunnels in a
metro system? I don't understand the connection with trains. GTFS and
OSM are separate data sets and will only be harmonized in some cities,
so GTFS may contain transfers that are not mapped in OSM and vice versa.
> Or is it treated as as a kind of street (or something else)
> and included in OSM? If it is not in OSM, then it must be in GTFS, not
> just transfer time, but the actual path.
We do not use OSM data for on-transit legs. All transit data comes from
GTFS, including the path taken by trains (from shapes.txt). The "shapes"
are optional and not necessary for routing since we have a table of all
the inter-stop times.
> Is this what trips.txt is all
> about? If I specify transfers.txt, trips.txt, stops.txt and us exact
> stop ID's as from/to, should it work without OSM data?
The purpose and content of the files making up a GTFS feed is described
in detail at
https://developers.google.com/transit/gtfs/reference. OTP
should work with no OSM data if 1) you specify endpoints as stop
vertices, 2) you specify all transfers anyone could ever want to make in
transfers.txt (that's going to be a big list), and 3) you tell the graph
builder to create transfers based on transfers.txt, not by linking to OSM.
-Andrew