opentripplanner / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
2.13k stars 1.01k forks source link

Missing info about how to get Vertex Label #2903

Closed Erhanjinn closed 3 years ago

Erhanjinn commented 4 years ago

Hello,

I wanted to use the isochrone resource, but I could not get it to work with Vertex labelas fromPlace.

At http://dev.opentripplanner.org/apidoc/1.4.0/resource_LIsochrone.html, there is no info about how to get such label. When I search my stop with http://localhost:8090/otp/routers/my_city/index/stops/1:112442 I get a valid result, but I am unable to contruct Vertex label out of it.

According to https://github.com/opentripplanner/OpenTripPlanner/blob/dev-1.x/src/main/java/org/opentripplanner/routing/graph/Vertex.java the label is an input parameter to the constructor, so I cannot really understand the way it is constructed.

Is it possible to compute Vertex label only knowing the GTFS files?

Thanks

abyrd commented 3 years ago

As mentioned in the issue template: this issue system is intended for reporting bugs and tracking progress in software development. For all other usage and software development questions or discussion, please write to one of the mailing lists (Google groups): https://groups.google.com/forum/#!forum/opentripplanner-dev https://groups.google.com/forum/#!forum/opentripplanner-users

Indeed the label is passed in when the Vertex is constructed. In the TransitStopVertex constructor, stop.getId().toString() is passed into the Vertex constructor as the label. The String representation of a stop ID is feedId + ID_SEPARATOR + id, so "feedId:stopId".