Fix underlying cause of breakage of trips-for-location API call (issue #46).
Minor refactoring to fix for issue #46 for code clarity.
Merge pull request #73 from kurtraschke/issue-46

Fix underlying cause of breakage of trips-for-location API call