Short answers:
1. Yes
2. See below
3. Yes
Long Answer:
The shapes.txt is based off of each unique path that a bus route takes. So for every direction, deviation, short turn, etc, there needs to be an identifying shape associated with a trip in stop_times.txt if you include a shapes.txt file, although the file is optional. Shapes in GTFS are specific to the trip since buses that have the same Route ID may not necessarily follow the same path for each trip (by direction) like school trips, commuter trips, or short turns.
So not only is the shape_pt_sequence needed to determine the direction the path is taking, the optional shape_dist_traveled will allow google and others to draw the path in transit directions.
Hope this helps,
Steven
--
You received this message because you are subscribed to the Google Groups "Transit Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to transit-develop...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I would add that in most cases, I encourage feed providers to NOT specify shape_dist_traveled since (a) it's tricky to get the value right and (b) most GTFS consumers can match stops to shapes without it.
On Sat, Mar 21, 2015 at 11:00 PM Steven Judd <stevenwe...@gmail.com> wrote:
Short answers:
1. Yes
2. See below
3. YesLong Answer:
The shapes.txt is based off of each unique path that a bus route takes. So for every direction, deviation, short turn, etc, there needs to be an identifying shape associated with a trip in stop_times.txt if you include a shapes.txt file, although the file is optional. Shapes in GTFS are specific to the trip since buses that have the same Route ID may not necessarily follow the same path for each trip (by direction) like school trips, commuter trips, or short turns.So not only is the shape_pt_sequence needed to determine the direction the path is taking, the optional shape_dist_traveled will allow google and others to draw the path in transit directions.
Hope this helps,
Steven
On Mar 21, 2015 2:06 PM, <christen...@gmail.com> wrote:
Brand new the Transit feed process. Hoping someone can get me sqaured away on a few items.--
1. Is Shapes.txt what Google Transit needs to draw the route lines?
2. Shouldn't shape_id be the route ID?
3. shape_pt_sequence is the # of each node, starting from start to end, so Google can draw the route properly?
Thank you, Chris
You received this message because you are subscribed to the Google Groups "Transit Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to transit-developers+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Transit Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to transit-developers+unsub...@googlegroups.com.
No. The shape_dist_traveled field is dimensionless so it can't be used for reliably measuring distances.
To unsubscribe from this group and stop receiving emails from it, send an email to transit-develop...@googlegroups.com.
I would add that in most cases, I encourage feed providers to NOT specify shape_dist_traveled since (a) it's tricky to get the value right and (b) most GTFS consumers can match stops to shapes without it.
I still do not understand. In trips.txt I have route_id and trip_id. Which do I associate with the shape_id in shapes.txt?
I converted the route lines for each bus trip into more simplified sequence of nodes. So each route equals ~200 points, Each point has lat/long and sequence (starting at 1 where route begins). I was assuming I would attribute each route in shapes.txt with the route_id, but the feed validator program states "The shapes with the following shape_ids aren't used by any trips".
--
You received this message because you are subscribed to a topic in the Google Groups "Transit Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/transit-developers/KH8Ug66A7fk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to transit-develop...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Transit Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to transit-develop...@googlegroups.com.
I highly recommend NOT to use this method to calculate route distance, as your actual route distance will vary greatly from the calculated distance in GIS because of terrain, lane changes, etc. Ideally this data would come from your AVL (Automatic Vehicle Locator), as these systems need this data to calculate accurate positions, but if the agency doesn't have such data, I defer to the community for best alternatives.
--
You received this message because you are subscribed to a topic in the Google Groups "Transit Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/transit-developers/KH8Ug66A7fk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to transit-develop...@googlegroups.com.
I highly recommend NOT to use this method to calculate route distance, as your actual route distance will vary greatly from the calculated distance in GIS because of terrain, lane changes, etc. Ideally this data would come from your AVL (Automatic Vehicle Locator), as these systems need this data to calculate accurate positions, but if the agency doesn't have such data, I defer to the community for best alternatives.
On Mon, May 11, 2015 at 7:17 PM, Chris Erichsen <christen...@gmail.com> wrote:
I created line segments in GIS then calculated the length and used this, in the correct units. I had to experiment with simplifying the path to get smallest collection of nodes while maintaining good representation of route. I used Arcmap to do this. Then assign order of nodes.
On Wednesday, May 6, 2015, Eric Goodman <ejoseph...@gmail.com> wrote:
This is a related question. How are you getting the distance between individual points? I know how to calculate it from the x,y's and can write a script to do that for a list, but is there an easier way to find it? I have shape_distance_traveled in stop_times.txt for the distance between stops, It sounds like I really don't need it in shapes.txt for every individual point along the line. Is that right?--
On Wednesday, April 15, 2015 at 8:47:22 AM UTC-7, Juventus Ventuno wrote:
great - the feedvalidator likes it now :)
You received this message because you are subscribed to a topic in the Google Groups "Transit Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/transit-developers/KH8Ug66A7fk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to transit-developers+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from Gmail Mobile
--
You received this message because you are subscribed to the Google Groups "Transit Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to transit-developers+unsub...@googlegroups.com.