Open pengjin0609 opened 7 years ago
You must first create a shape:
shape = transitfeed.Shape(shape_id="my_shape")
Then you need to add shape points:
shape.AddPoint(lat=25.0754225104636, lon=-77.3429507017135)
Once your shape is complete add it to a schedule:
schedule = transitfeed.Schedule()
schedule.AddShapeObject(shape)
And finally, associate your shape with a trip:
route = schedule.AddRoute(short_name="1A", long_name="Route 1A", route_type="Bus", route_id="R1A")
trip = route.AddTrip(schedule=schedule, trip_id="my_trip")
trip.shape_id = "my_shape"
Once you perform the above steps you will see the shape listed with the associated trip in your trips.txt file.
when I add shape_point by using addpoint and create zip but
the trip.txt haven't shape_id