Cleaned up the algorithm for trip scheduling in create_trips_stoptimes() to
avoid logic repetition.
Started work on distance calculation to impact stop times.
Now separated these out into separate functions, the details of which need to
be properly calculated.