Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Commit

Permalink
allow routes to have spaces in them
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbailey committed Sep 28, 2015
1 parent 1e0314a commit 83ab438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def combine(listA,listB):

def getJSONs(route,direction):
amtrak = gtfstk.feed.Feed(expanduser('~/Desktop/amtrak_20140723_0354.zip')) #http://www.gtfs-data-exchange.com/agency/amtrak/
trip_ids = amtrak.trips[(amtrak.trips['route_id'] == str(route)) & (amtrak.trips['direction_id'] == int(direction))]['trip_id']
trip_ids = amtrak.trips[(amtrak.trips['route_id'] == str(route).replace('%20', ' ') & (amtrak.trips['direction_id'] == int(direction))]['trip_id']
stops = pandas.merge(pandas.DataFrame(trip_ids),amtrak.stop_times)
trains = stops.groupby('trip_id')
stop_ids = []
Expand Down

0 comments on commit 83ab438

Please sign in to comment.