frizzle 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +3 -0
  4. data/LICENSE +20 -0
  5. data/README.md +151 -0
  6. data/Rakefile +10 -0
  7. data/frizzle.gemspec +30 -0
  8. data/lib/frizzle.rb +43 -0
  9. data/lib/frizzle/agencies.rb +32 -0
  10. data/lib/frizzle/arrival_estimates.rb +41 -0
  11. data/lib/frizzle/base.rb +58 -0
  12. data/lib/frizzle/exceptions.rb +8 -0
  13. data/lib/frizzle/routes.rb +25 -0
  14. data/lib/frizzle/segments.rb +32 -0
  15. data/lib/frizzle/stops.rb +23 -0
  16. data/lib/frizzle/vehicles.rb +41 -0
  17. data/lib/frizzle/version.rb +3 -0
  18. data/spec/fixtures/dish_cassettes/agencies.yml +214 -0
  19. data/spec/fixtures/dish_cassettes/agencies_find_options.yml +50 -0
  20. data/spec/fixtures/dish_cassettes/agencies_geo_default_radius.yml +54 -0
  21. data/spec/fixtures/dish_cassettes/agencies_geo_rectangle.yml +59 -0
  22. data/spec/fixtures/dish_cassettes/agencies_id_geo.yml +45 -0
  23. data/spec/fixtures/dish_cassettes/agency_geo_radius.yml +54 -0
  24. data/spec/fixtures/dish_cassettes/agency_id.yml +49 -0
  25. data/spec/fixtures/dish_cassettes/arrival_estimates_agencies.yml +1353 -0
  26. data/spec/fixtures/dish_cassettes/arrival_estimates_agencies_routes.yml +45 -0
  27. data/spec/fixtures/dish_cassettes/arrival_estimates_agencies_routes_stops.yml +45 -0
  28. data/spec/fixtures/dish_cassettes/arrival_estimates_agencies_stops.yml +45 -0
  29. data/spec/fixtures/dish_cassettes/arrival_estimates_find_options.yml +1444 -0
  30. data/spec/fixtures/dish_cassettes/routes_agencies.yml +846 -0
  31. data/spec/fixtures/dish_cassettes/routes_agencies_geo.yml +336 -0
  32. data/spec/fixtures/dish_cassettes/routes_find_options.yml +846 -0
  33. data/spec/fixtures/dish_cassettes/segments_agency_and_geo_area.yml +48 -0
  34. data/spec/fixtures/dish_cassettes/segments_agency_and_route.yml +64 -0
  35. data/spec/fixtures/dish_cassettes/segments_agency_id.yml +245 -0
  36. data/spec/fixtures/dish_cassettes/segments_find_options.yml +242 -0
  37. data/spec/fixtures/dish_cassettes/stops_agency_id.yml +3841 -0
  38. data/spec/fixtures/dish_cassettes/stops_find_options.yml +3841 -0
  39. data/spec/fixtures/dish_cassettes/vehicles_agencies.yml +760 -0
  40. data/spec/fixtures/dish_cassettes/vehicles_agencies_geo_area.yml +45 -0
  41. data/spec/fixtures/dish_cassettes/vehicles_agencies_routes.yml +82 -0
  42. data/spec/fixtures/dish_cassettes/vehicles_agencies_routes_geo_area.yml +45 -0
  43. data/spec/fixtures/dish_cassettes/vehicles_find_options.yml +845 -0
  44. data/spec/lib/frizzle/agencies_spec.rb +169 -0
  45. data/spec/lib/frizzle/arrival_estimates_spec.rb +97 -0
  46. data/spec/lib/frizzle/base_spec.rb +105 -0
  47. data/spec/lib/frizzle/exceptions_spec.rb +0 -0
  48. data/spec/lib/frizzle/routes_spec.rb +85 -0
  49. data/spec/lib/frizzle/segments_spec.rb +91 -0
  50. data/spec/lib/frizzle/stops_spec.rb +63 -0
  51. data/spec/lib/frizzle/vehicles_spec.rb +99 -0
  52. data/spec/lib/frizzle/version_spec.rb +9 -0
  53. data/spec/spec_helper.rb +18 -0
  54. metadata +244 -0
@@ -0,0 +1,32 @@
1
+ module Frizzle
2
+ class Segments < Base
3
+
4
+ def self.find(options={})
5
+ fetch("/segments.json",
6
+ :query => options )
7
+ end
8
+
9
+ def self.find_by_agencies(agencies)
10
+ fetch("/segments.json",
11
+ :query => { :agencies => formatted_list(agencies) })
12
+ end
13
+
14
+ def self.find_by_agencies_and_routes(agencies, routes)
15
+ fetch("/segments.json",
16
+ :query => {
17
+ :agencies => formatted_list(agencies),
18
+ :routes => formatted_list(routes)
19
+ })
20
+ end
21
+
22
+ # 168 35.80176,-78.64347|75.5
23
+ def self.find_by_agencies_and_geo_area(agencies, geo_area_first, geo_area_second=Frizzle::Base::DEFAULT_GEO_RADIUS)
24
+ fetch("/segments.json",
25
+ :query => {
26
+ :agencies => formatted_list(agencies),
27
+ :geo_area => formatted_geo_area(geo_area_first, geo_area_second)
28
+ })
29
+ end
30
+
31
+ end
32
+ end
@@ -0,0 +1,23 @@
1
+ module Frizzle
2
+ class Stops < Base
3
+
4
+ def self.find(options={})
5
+ fetch("/stops.json",
6
+ :query => options )
7
+ end
8
+
9
+ def self.find_by_agencies(agencies)
10
+ fetch("/stops.json",
11
+ :query => { :agencies => formatted_list(agencies) })
12
+ end
13
+
14
+ def self.find_by_agencies_and_geo_area(agencies, geo_area_first, geo_area_second=Frizzle::Base::DEFAULT_GEO_RADIUS)
15
+ fetch("/stops.json",
16
+ :query => {
17
+ :agencies => formatted_list(agencies),
18
+ :geo_area => formatted_geo_area(geo_area_first, geo_area_second)
19
+ })
20
+ end
21
+
22
+ end
23
+ end
@@ -0,0 +1,41 @@
1
+ module Frizzle
2
+ class Vehicles < Base
3
+
4
+ def self.find(options={})
5
+ fetch("/vehicles.json",
6
+ :query => options )
7
+ end
8
+
9
+ # 168,275
10
+ def self.find_by_agencies(agencies)
11
+ fetch("/vehicles.json",
12
+ :query => { :agencies => formatted_list(agencies) })
13
+ end
14
+
15
+ def self.find_by_agencies_and_routes(agencies, routes)
16
+ fetch("/vehicles.json",
17
+ :query => {
18
+ :agencies => formatted_list(agencies),
19
+ :routes => formatted_list(routes)
20
+ })
21
+ end
22
+
23
+ def self.find_by_agencies_and_geo_area(agencies, geo_area_first, geo_area_second=Frizzle::Base::DEFAULT_GEO_RADIUS)
24
+ fetch("/vehicles.json",
25
+ :query => {
26
+ :agencies => formatted_list(agencies),
27
+ :geo_area => formatted_geo_area(geo_area_first, geo_area_second)
28
+ })
29
+ end
30
+
31
+ def self.find_by_agencies_and_routes_and_geo_area(agencies, routes, geo_area_first, geo_area_second=Frizzle::Base::DEFAULT_GEO_RADIUS)
32
+ fetch("/vehicles.json",
33
+ :query => {
34
+ :agencies => formatted_list(agencies),
35
+ :routes => formatted_list(routes),
36
+ :geo_area => formatted_geo_area(geo_area_first, geo_area_second)
37
+ })
38
+ end
39
+
40
+ end
41
+ end
@@ -0,0 +1,3 @@
1
+ module Frizzle
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,214 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.transloc.com/1.2/agencies.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - frizzle-ruby-0.0.1
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.3
23
+ Date:
24
+ - Sun, 01 Dec 2013 03:14:22 GMT
25
+ Content-Type:
26
+ - application/json; charset=UTF-8
27
+ Content-Length:
28
+ - '13495'
29
+ Connection:
30
+ - keep-alive
31
+ Expires:
32
+ - Sun, 01 Dec 2013 03:19:22 GMT
33
+ Etag:
34
+ - '"308a830cd1903cb3afbf319cd37b2aa07d6d5a58"'
35
+ Cache-Control:
36
+ - max-age=300, public
37
+ X-Hostname:
38
+ - dallas08
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"rate_limit": 0, "expires_in": 300, "api_latest_version": "1.2", "generated_on":
42
+ "2013-12-01T03:14:22+00:00", "data": [{"long_name": "Chapel Hill Transit",
43
+ "language": "en", "position": {"lat": 35.922, "lng": -79.05347}, "name": "cht",
44
+ "short_name": "CHT", "phone": null, "url": "http://www.chtransit.org", "timezone":
45
+ "America/New_York", "bounding_box": [{"lat": 35.74548, "lng": -79.16646},
46
+ {"lat": 35.97005, "lng": -79.00187}], "agency_id": "8"}, {"long_name": "Triangle
47
+ Transit", "language": "en", "position": {"lat": 35.87451, "lng": -78.83801},
48
+ "name": "tt", "short_name": "Triangle Transit", "phone": null, "url": "http://www.triangletransit.org",
49
+ "timezone": "America/New_York", "bounding_box": [{"lat": 35.69212, "lng":
50
+ -79.1111}, {"lat": 36.08725, "lng": -78.32349}], "agency_id": "12"}, {"long_name":
51
+ "NC State University Wolfline", "language": "en", "position": {"lat": 35.78061,
52
+ "lng": -78.68218}, "name": "ncsu", "short_name": "NCSU Wolfline", "phone":
53
+ null, "url": "http://www.ncsu.edu/wolfline", "timezone": "America/New_York",
54
+ "bounding_box": [{"lat": 35.76853, "lng": -78.71669}, {"lat": 35.80176, "lng":
55
+ -78.66382}], "agency_id": "16"}, {"long_name": "Capital Area Transit", "language":
56
+ "en", "position": {"lat": 35.77752, "lng": -78.63716}, "name": "cat", "short_name":
57
+ "CAT", "phone": null, "url": "http://www.raleighnc.gov/transit", "timezone":
58
+ "America/New_York", "bounding_box": [{"lat": 35.65097, "lng": -78.78367},
59
+ {"lat": 35.99082, "lng": -78.50063}], "agency_id": "20"}, {"long_name": "Durham
60
+ Area Transit Authority", "language": "en", "position": {"lat": 35.98974, "lng":
61
+ -78.90292}, "name": "data", "short_name": "DATA", "phone": null, "url": "http://data.durhamnc.gov/Index_DATA.cfm",
62
+ "timezone": "America/New_York", "bounding_box": [{"lat": 35.88421, "lng":
63
+ -78.99653}, {"lat": 36.11652, "lng": -78.7768}], "agency_id": "24"}, {"long_name":
64
+ "Auburn University", "language": "en", "position": {"lat": 32.5952, "lng":
65
+ -85.493}, "name": "auburn", "short_name": "Auburn", "phone": null, "url":
66
+ null, "timezone": "America/Chicago", "bounding_box": [{"lat": 32.55353, "lng":
67
+ -85.57095}, {"lat": 32.63372, "lng": -85.40608}], "agency_id": "28"}, {"long_name":
68
+ "Boston College", "language": "en", "position": {"lat": 42.3362, "lng": -71.1703},
69
+ "name": "bc", "short_name": "Boston College", "phone": null, "url": null,
70
+ "timezone": "America/New_York", "bounding_box": [{"lat": 42.33317, "lng":
71
+ -71.19388}, {"lat": 42.34347, "lng": -71.13925}], "agency_id": "32"}, {"long_name":
72
+ "Atlantic Station FREE RIDE", "language": "en", "position": {"lat": 33.79136,
73
+ "lng": -84.39625}, "name": "asfreeride", "short_name": "Atlantic Station",
74
+ "phone": null, "url": null, "timezone": "America/New_York", "bounding_box":
75
+ [{"lat": 33.78875, "lng": -84.40446}, {"lat": 33.79132, "lng": -84.38701}],
76
+ "agency_id": "36"}, {"long_name": "Harvard University", "language": "en",
77
+ "position": {"lat": 42.3727, "lng": -71.1209}, "name": "harvard", "short_name":
78
+ "Harvard", "phone": null, "url": null, "timezone": "America/New_York", "bounding_box":
79
+ [{"lat": 42.36462, "lng": -71.12537}, {"lat": 42.38182, "lng": -71.114}],
80
+ "agency_id": "52"}, {"long_name": "Jacksonville State University", "language":
81
+ "en", "position": {"lat": 33.8222, "lng": -85.7675}, "name": "jsu", "short_name":
82
+ "JSU", "phone": null, "url": null, "timezone": "America/Chicago", "bounding_box":
83
+ [{"lat": 33.78518, "lng": -85.7826}, {"lat": 33.83038, "lng": -85.75526}],
84
+ "agency_id": "56"}, {"long_name": "Louisiana State University", "language":
85
+ "en", "position": {"lat": 30.41, "lng": -91.1797}, "name": "lsu", "short_name":
86
+ "LSU", "phone": null, "url": null, "timezone": "America/Chicago", "bounding_box":
87
+ [{"lat": 30.36155, "lng": -91.19268}, {"lat": 30.45637, "lng": -91.14053}],
88
+ "agency_id": "60"}, {"long_name": "MASCO", "language": "en", "position": {"lat":
89
+ 42.3521, "lng": -71.0992}, "name": "masco", "short_name": "MASCO", "phone":
90
+ null, "url": null, "timezone": "America/New_York", "bounding_box": [{"lat":
91
+ 42.32075, "lng": -71.17957}, {"lat": 42.37469, "lng": -71.05184}], "agency_id":
92
+ "64"}, {"long_name": "New York University", "language": "en", "position":
93
+ {"lat": 40.72809, "lng": -73.99713}, "name": "nyu", "short_name": "NYU", "phone":
94
+ null, "url": null, "timezone": "America/New_York", "bounding_box": [{"lat":
95
+ 40.71701, "lng": -74.00829}, {"lat": 40.75838, "lng": -73.97415}], "agency_id":
96
+ "72"}, {"long_name": "Northern Arizona University", "language": "en", "position":
97
+ {"lat": 35.18549, "lng": -111.6556}, "name": "nau", "short_name": "NAU", "phone":
98
+ null, "url": null, "timezone": "US/Arizona", "bounding_box": [{"lat": 35.17505,
99
+ "lng": -111.671}, {"lat": 35.20031, "lng": -111.6474}], "agency_id": "76"},
100
+ {"long_name": "Princeton University", "language": "en", "position": {"lat":
101
+ 40.3406, "lng": -74.6548}, "name": "princeton", "short_name": "Princeton",
102
+ "phone": null, "url": null, "timezone": "America/New_York", "bounding_box":
103
+ [{"lat": 40.3028, "lng": -74.67749}, {"lat": 40.36392, "lng": -74.6033}],
104
+ "agency_id": "84"}, {"long_name": "UChicago", "language": "en", "position":
105
+ {"lat": 41.7895, "lng": -87.5996}, "name": "uchicago", "short_name": "UChicago",
106
+ "phone": null, "url": null, "timezone": "America/Chicago", "bounding_box":
107
+ [{"lat": 41.78045, "lng": -87.60546}, {"lat": 41.80322, "lng": -87.5855}],
108
+ "agency_id": "100"}, {"long_name": "Chicago Transit Authority", "language":
109
+ "en", "position": {"lat": 41.7895, "lng": -87.5996}, "name": "cta", "short_name":
110
+ "CTA", "phone": null, "url": null, "timezone": "America/Chicago", "bounding_box":
111
+ [{"lat": 41.70802, "lng": -87.74256}, {"lat": 41.89343, "lng": -87.547}],
112
+ "agency_id": "104"}, {"long_name": "University of Kentucky", "language": "en",
113
+ "position": {"lat": 38.0273, "lng": -84.5039}, "name": "uky", "short_name":
114
+ "UKY", "phone": null, "url": null, "timezone": "America/New_York", "bounding_box":
115
+ [{"lat": 38.01703, "lng": -84.51465}, {"lat": 38.04283, "lng": -84.49822}],
116
+ "agency_id": "108"}, {"long_name": "University of Maryland Baltimore County",
117
+ "language": "en", "position": {"lat": 39.2638, "lng": -76.711}, "name": "umbc",
118
+ "short_name": "UMBC", "phone": null, "url": null, "timezone": "America/New_York",
119
+ "bounding_box": [{"lat": 39.15508, "lng": -76.75683}, {"lat": 39.29733, "lng":
120
+ -76.59325}], "agency_id": "112"}, {"long_name": "University of Florida", "language":
121
+ "en", "position": {"lat": 29.6392, "lng": -82.3465}, "name": "ufl", "short_name":
122
+ "UFL", "phone": null, "url": null, "timezone": "America/New_York", "bounding_box":
123
+ [{"lat": 29.52224, "lng": -82.43934}, {"lat": 29.71513, "lng": -82.26507}],
124
+ "agency_id": "116"}, {"long_name": "Yale University", "language": "en", "position":
125
+ {"lat": 41.3133, "lng": -72.924}, "name": "yale", "short_name": "Yale", "phone":
126
+ null, "url": null, "timezone": "America/New_York", "bounding_box": [{"lat":
127
+ 41.2564, "lng": -72.99052}, {"lat": 41.33051, "lng": -72.90946}], "agency_id":
128
+ "128"}, {"long_name": "Boston University", "language": "en", "position": {"lat":
129
+ 42.34955, "lng": -71.10475}, "name": "bu", "short_name": "BU", "phone": null,
130
+ "url": null, "timezone": "America/New_York", "bounding_box": [{"lat": 42.33515,
131
+ "lng": -71.1186}, {"lat": 42.35311, "lng": -71.07111}], "agency_id": "132"},
132
+ {"long_name": "Mountain Line", "language": "en", "position": {"lat": 35.18549,
133
+ "lng": -111.6556}, "name": "mountainlink", "short_name": "Mountain Line",
134
+ "phone": null, "url": null, "timezone": "US/Arizona", "bounding_box": [{"lat":
135
+ 35.059, "lng": -111.775}, {"lat": 35.34, "lng": -111.472}], "agency_id": "144"},
136
+ {"long_name": "La Salle University", "language": "en", "position": {"lat":
137
+ 40.0378, "lng": -75.1541}, "name": "lasalle", "short_name": "La Salle", "phone":
138
+ null, "url": null, "timezone": "America/New_York", "bounding_box": [{"lat":
139
+ 40.03278, "lng": -75.16}, {"lat": 40.04222, "lng": -75.14417}], "agency_id":
140
+ "148"}, {"long_name": "Texas Christian University", "language": "en", "position":
141
+ {"lat": 32.7087, "lng": -97.3626}, "name": "tcu", "short_name": "TCU", "phone":
142
+ null, "url": null, "timezone": "America/Chicago", "bounding_box": [{"lat":
143
+ 32.70685, "lng": -97.36878}, {"lat": 32.71232, "lng": -97.35413}], "agency_id":
144
+ "160"}, {"long_name": "Kennesaw State University", "language": "en", "position":
145
+ {"lat": 34.0373, "lng": -84.58232}, "name": "kennesaw", "short_name": "KSU",
146
+ "phone": null, "url": null, "timezone": "America/New_York", "bounding_box":
147
+ [{"lat": 34.02042, "lng": -84.58614}, {"lat": 34.03968, "lng": -84.56509}],
148
+ "agency_id": "168"}, {"long_name": "Duke University", "language": "en", "position":
149
+ {"lat": 36.0016, "lng": -78.9348}, "name": "duke", "short_name": "Duke University",
150
+ "phone": null, "url": "http://parking.duke.edu/buses_vans/bus_sched/index.php",
151
+ "timezone": "America/New_York", "bounding_box": [{"lat": 35.99411, "lng":
152
+ -78.95536}, {"lat": 36.02273, "lng": -78.91472}], "agency_id": "176"}, {"long_name":
153
+ "University of Memphis", "language": "en", "position": {"lat": 35.1195, "lng":
154
+ -89.9366}, "name": "memphis", "short_name": "U. of Memphis", "phone": null,
155
+ "url": null, "timezone": "America/Chicago", "bounding_box": [{"lat": 35.1106,
156
+ "lng": -89.9486}, {"lat": 35.1284, "lng": -89.9246}], "agency_id": "204"},
157
+ {"long_name": "Bowling Green State University", "language": "en", "position":
158
+ {"lat": 41.3762, "lng": -83.6239}, "name": "bgsu", "short_name": "BGSU", "phone":
159
+ "", "url": "http://www.bgsu.edu/offices/parking/page25627.html", "timezone":
160
+ "America/New_York", "bounding_box": [{"lat": 41.37486, "lng": -83.64201},
161
+ {"lat": 41.38544, "lng": -83.62414}], "agency_id": "212"}, {"long_name": "Bucknell
162
+ University", "language": "en", "position": {"lat": 40.9528, "lng": -76.8871},
163
+ "name": "bucknell", "short_name": "Bucknell", "phone": null, "url": null,
164
+ "timezone": "America/New_York", "bounding_box": [{"lat": 40.9416, "lng": -76.9011},
165
+ {"lat": 40.964, "lng": -76.8731}], "agency_id": "228"}, {"long_name": "IndeBus
166
+ Transit System", "language": "en", "position": {"lat": 39.08505, "lng": -94.3745},
167
+ "name": "indebus", "short_name": "IndeBus", "phone": null, "url": null, "timezone":
168
+ "America/Chicago", "bounding_box": [{"lat": 39.0267, "lng": -94.485}, {"lat":
169
+ 39.1434, "lng": -94.264}], "agency_id": "232"}, {"long_name": "Novartis Pharmaceuticals
170
+ Corporation", "language": "en", "position": {"lat": 40.8093, "lng": -74.3729},
171
+ "name": "novartis", "short_name": "Novartis", "phone": null, "url": null,
172
+ "timezone": "America/New_York", "bounding_box": [{"lat": 40.7708, "lng": -74.4399},
173
+ {"lat": 40.8478, "lng": -74.3059}], "agency_id": "236"}, {"long_name": "Florida
174
+ State University", "language": "en", "position": {"lat": 30.4427, "lng": -84.2961},
175
+ "name": "fsu", "short_name": "FSU", "phone": null, "url": null, "timezone":
176
+ "America/New_York", "bounding_box": [{"lat": 30.4352, "lng": -84.3117}, {"lat":
177
+ 30.4502, "lng": -84.2805}], "agency_id": "240"}, {"long_name": "University
178
+ of Massachusetts Boston", "language": "en", "position": {"lat": 42.3179, "lng":
179
+ -71.04205}, "name": "umb", "short_name": "UMass Boston", "phone": null, "url":
180
+ null, "timezone": "America/New_York", "bounding_box": [{"lat": 42.3107, "lng":
181
+ -71.052}, {"lat": 42.3212, "lng": -71.0332}], "agency_id": "243"}, {"long_name":
182
+ "Valley Transportation Authority", "language": "en", "position": {"lat": 37.33654,
183
+ "lng": -121.8906}, "name": "vta", "short_name": "VTA", "phone": null, "url":
184
+ null, "timezone": "America/Los_Angeles", "bounding_box": [{"lat": 37.2478,
185
+ "lng": -122.132}, {"lat": 37.428, "lng": -121.817}], "agency_id": "255"},
186
+ {"long_name": "Ball State University", "language": "en", "position": {"lat":
187
+ 40.2099, "lng": -85.41475}, "name": "bsu", "short_name": "Ball State University",
188
+ "phone": null, "url": null, "timezone": "America/New_York", "bounding_box":
189
+ [{"lat": 40.186, "lng": -85.4431}, {"lat": 40.2338, "lng": -85.3864}], "agency_id":
190
+ "275"}, {"long_name": "University of Rochester", "language": "en", "position":
191
+ {"lat": 43.12228, "lng": -77.62794}, "name": "rochester", "short_name": "Rochester",
192
+ "phone": null, "url": null, "timezone": "America/New_York", "bounding_box":
193
+ [{"lat": 43.1503, "lng": -77.6116}, {"lat": 43.1629, "lng": -77.5939}], "agency_id":
194
+ "283"}, {"long_name": "University of Toledo", "language": "en", "position":
195
+ {"lat": 41.65715, "lng": -83.61695}, "name": "utoledo", "short_name": "UToledo",
196
+ "phone": null, "url": null, "timezone": "America/New_York", "bounding_box":
197
+ [{"lat": 41.6482, "lng": -83.6295}, {"lat": 41.6661, "lng": -83.6044}], "agency_id":
198
+ "295"}, {"long_name": "University of Arizona", "language": "en", "position":
199
+ {"lat": 32.2314, "lng": -110.9509}, "name": "arizona", "short_name": "UofA",
200
+ "phone": null, "url": null, "timezone": "US/Arizona", "bounding_box": [{"lat":
201
+ 32.2146, "lng": -110.9596}, {"lat": 32.26718, "lng": -110.9387}], "agency_id":
202
+ "371"}, {"long_name": "Oakland University", "language": "en", "position":
203
+ {"lat": 42.67297, "lng": -83.21455}, "name": "oakland", "short_name": "Oakland
204
+ University", "phone": null, "url": "http://www.oakland.edu/bearbus", "timezone":
205
+ "America/New_York", "bounding_box": [{"lat": 42.66806, "lng": -83.22486},
206
+ {"lat": 42.67993, "lng": -83.20706}], "agency_id": "459"}, {"long_name": "Quinnipiac
207
+ University", "language": "en", "position": {"lat": 41.75261, "lng": -72.88599},
208
+ "name": "quinnipiac", "short_name": "Quinnipiac", "phone": null, "url": "http://www.quinnipiac.edu/",
209
+ "timezone": "America/New_York", "bounding_box": [{"lat": 41.54995, "lng":
210
+ -73.125}, {"lat": 41.91912, "lng": -72.56409}], "agency_id": "471"}], "api_version":
211
+ "1.2"}'
212
+ http_version:
213
+ recorded_at: Sun, 01 Dec 2013 03:14:22 GMT
214
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.transloc.com/1.2/agencies.json?agencies=12&geo_area=35.80176,-78.64347%7C100
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - frizzle-ruby-0.0.1
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.3
23
+ Date:
24
+ - Sun, 01 Dec 2013 03:30:19 GMT
25
+ Content-Type:
26
+ - application/json; charset=UTF-8
27
+ Content-Length:
28
+ - '490'
29
+ Connection:
30
+ - keep-alive
31
+ Expires:
32
+ - Sun, 01 Dec 2013 03:35:19 GMT
33
+ Etag:
34
+ - '"4926f841cae3e54a8333a73a6ceee9744a24719d"'
35
+ Cache-Control:
36
+ - max-age=300, public
37
+ X-Hostname:
38
+ - dallas08
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"rate_limit": 0, "expires_in": 300, "api_latest_version": "1.2", "generated_on":
42
+ "2013-12-01T03:30:19+00:00", "data": [{"long_name": "Triangle Transit", "language":
43
+ "en", "position": {"lat": 35.87451, "lng": -78.83801}, "name": "tt", "short_name":
44
+ "Triangle Transit", "phone": null, "url": "http://www.triangletransit.org",
45
+ "timezone": "America/New_York", "bounding_box": [{"lat": 35.69212, "lng":
46
+ -79.1111}, {"lat": 36.08725, "lng": -78.32349}], "agency_id": "12"}], "api_version":
47
+ "1.2"}'
48
+ http_version:
49
+ recorded_at: Sun, 01 Dec 2013 03:30:19 GMT
50
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.transloc.com/1.2/agencies.json?geo_area=35.80176,-78.64347%7C100
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - frizzle-ruby-0.0.1
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.3
23
+ Date:
24
+ - Sun, 01 Dec 2013 03:14:23 GMT
25
+ Content-Type:
26
+ - application/json; charset=UTF-8
27
+ Content-Length:
28
+ - '833'
29
+ Connection:
30
+ - keep-alive
31
+ Expires:
32
+ - Sun, 01 Dec 2013 03:19:23 GMT
33
+ Etag:
34
+ - '"8899f5046ed2d7d55ff2bb1b3e21c2be13c8b437"'
35
+ Cache-Control:
36
+ - max-age=300, public
37
+ X-Hostname:
38
+ - dallas08
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"rate_limit": 0, "expires_in": 300, "api_latest_version": "1.2", "generated_on":
42
+ "2013-12-01T03:14:23+00:00", "data": [{"long_name": "Triangle Transit", "language":
43
+ "en", "position": {"lat": 35.87451, "lng": -78.83801}, "name": "tt", "short_name":
44
+ "Triangle Transit", "phone": null, "url": "http://www.triangletransit.org",
45
+ "timezone": "America/New_York", "bounding_box": [{"lat": 35.69212, "lng":
46
+ -79.1111}, {"lat": 36.08725, "lng": -78.32349}], "agency_id": "12"}, {"long_name":
47
+ "Capital Area Transit", "language": "en", "position": {"lat": 35.77752, "lng":
48
+ -78.63716}, "name": "cat", "short_name": "CAT", "phone": null, "url": "http://www.raleighnc.gov/transit",
49
+ "timezone": "America/New_York", "bounding_box": [{"lat": 35.65097, "lng":
50
+ -78.78367}, {"lat": 35.99082, "lng": -78.50063}], "agency_id": "20"}], "api_version":
51
+ "1.2"}'
52
+ http_version:
53
+ recorded_at: Sun, 01 Dec 2013 03:14:23 GMT
54
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.transloc.com/1.2/agencies.json?geo_area=35.80176,-78.64347%7C35.78061,-78.68218
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - frizzle-ruby-0.0.1
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx/1.4.3
23
+ Date:
24
+ - Sun, 01 Dec 2013 03:14:23 GMT
25
+ Content-Type:
26
+ - application/json; charset=UTF-8
27
+ Content-Length:
28
+ - '1191'
29
+ Connection:
30
+ - keep-alive
31
+ Expires:
32
+ - Sun, 01 Dec 2013 03:19:23 GMT
33
+ Etag:
34
+ - '"74f6dbf7dca83c70df52929f74a5c82c6db79607"'
35
+ Cache-Control:
36
+ - max-age=300, public
37
+ X-Hostname:
38
+ - dallas08
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"rate_limit": 0, "expires_in": 300, "api_latest_version": "1.2", "generated_on":
42
+ "2013-12-01T03:14:23+00:00", "data": [{"long_name": "Triangle Transit", "language":
43
+ "en", "position": {"lat": 35.87451, "lng": -78.83801}, "name": "tt", "short_name":
44
+ "Triangle Transit", "phone": null, "url": "http://www.triangletransit.org",
45
+ "timezone": "America/New_York", "bounding_box": [{"lat": 35.69212, "lng":
46
+ -79.1111}, {"lat": 36.08725, "lng": -78.32349}], "agency_id": "12"}, {"long_name":
47
+ "NC State University Wolfline", "language": "en", "position": {"lat": 35.78061,
48
+ "lng": -78.68218}, "name": "ncsu", "short_name": "NCSU Wolfline", "phone":
49
+ null, "url": "http://www.ncsu.edu/wolfline", "timezone": "America/New_York",
50
+ "bounding_box": [{"lat": 35.76853, "lng": -78.71669}, {"lat": 35.80176, "lng":
51
+ -78.66382}], "agency_id": "16"}, {"long_name": "Capital Area Transit", "language":
52
+ "en", "position": {"lat": 35.77752, "lng": -78.63716}, "name": "cat", "short_name":
53
+ "CAT", "phone": null, "url": "http://www.raleighnc.gov/transit", "timezone":
54
+ "America/New_York", "bounding_box": [{"lat": 35.65097, "lng": -78.78367},
55
+ {"lat": 35.99082, "lng": -78.50063}], "agency_id": "20"}], "api_version":
56
+ "1.2"}'
57
+ http_version:
58
+ recorded_at: Sun, 01 Dec 2013 03:14:23 GMT
59
+ recorded_with: VCR 2.8.0