hrt_bus 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -21,3 +21,7 @@
21
21
  * Added Rider model
22
22
  * Find buses by route_id and direction
23
23
 
24
+ > 0.0.6
25
+
26
+ * Use Haversine to calculate distance between bus and rider
27
+
data/README.md CHANGED
@@ -27,30 +27,6 @@ Ruby gem for public HRT bus location data
27
27
 
28
28
  ![map](http://github.com/bds/hrt_bus/raw/master/examples/map.png)
29
29
 
30
- ### A collection of active HRT buses
31
-
32
- HrtBus::Bus.active_buses
33
-
34
- [
35
- [0] #<HrtBus::Bus:0x100afcac0
36
- attr_accessor :direction = "outbound",
37
- attr_accessor :id = "1909",
38
- attr_accessor :lat = "36.9711193",
39
- attr_accessor :lon = "-76.4097323",
40
- attr_accessor :route_id = "107",
41
- attr_accessor :time = Sat, 03 Mar 2012 23:25:35 +0000,
42
- >,
43
- [1] #<HrtBus::Bus:0x102956ef8
44
- attr_accessor :direction = "outbound",
45
- attr_accessor :id = "1214",
46
- attr_accessor :lat = "36.9881023",
47
- attr_accessor :lon = "-76.4242998",
48
- attr_accessor :route_id = "103",
49
- attr_accessor :time = Sat, 03 Mar 2012 23:26:02 +0000,
50
- >
51
- ]
52
- ...
53
-
54
30
  ### A collection of HRT buses as JSON
55
31
 
56
32
  HrtBus::Bus.active_buses.to_json
@@ -81,7 +57,24 @@ Ruby gem for public HRT bus location data
81
57
 
82
58
  ### Determine if a bus is valid
83
59
 
84
- HrtBus::Bus.active_buses.last.valid?
60
+ HrtBus::Bus.active_buses.select { |bus| bus.route_id => "2" }.first.valid?
61
+
62
+ ### Send yourself a SMS or Tweet when your bus is close!
63
+
64
+ (1..15).each do |i|
65
+
66
+ rider = HrtBus::Rider.new(:route_id => "2",
67
+ :direction => "inbound",
68
+ :lat => "36.870347",
69
+ :lon => "-76.301163" )
70
+
71
+ if rider.bus.present? && rider.distance_to_bus <= 3
72
+ # Do something really cool like send a SMS or Tweet!
73
+ end
74
+
75
+ sleep 30
76
+
77
+ end
85
78
 
86
79
  ## Contributing to hrt_bus
87
80
 
data/hrt_bus.gemspec CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.add_dependency "yajl-ruby"
24
24
  s.add_dependency "curb"
25
25
  s.add_dependency "googlestaticmap"
26
+ s.add_dependency "haversine"
26
27
  s.add_development_dependency "webmock"
27
28
  s.add_development_dependency "rspec"
28
29
  s.add_development_dependency "interactive_editor"
data/lib/hrt_bus/rider.rb CHANGED
@@ -38,9 +38,15 @@ module HrtBus
38
38
  send(key)
39
39
  end
40
40
 
41
+ def distance_to_bus
42
+ return 999999999 unless bus.present? && bus.valid?
43
+ distance = Haversine.distance(self.lat.to_f, self.lon.to_f, bus.lat.to_f, bus.lon.to_f)
44
+ distance.to_miles
45
+ end
46
+
41
47
  def bus
42
- HrtBus::Bus.active_buses.select { |bus| (bus.route_id == self.route_id) &&
43
- (bus.direction == self.direction) }.last
48
+ @bus ||= HrtBus::Bus.active_buses.select { |bus| (bus.route_id == self.route_id) &&
49
+ (bus.direction == self.direction) }.last
44
50
  end
45
51
 
46
52
  end
@@ -1,3 +1,3 @@
1
1
  module HrtBus
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/hrt_bus.rb CHANGED
@@ -5,6 +5,7 @@ require 'active_support/core_ext/object'
5
5
  require 'csv'
6
6
  require 'curb'
7
7
  require 'googlestaticmap'
8
+ require 'haversine'
8
9
 
9
10
  require "hrt_bus/version"
10
11
  require "hrt_bus/config"
@@ -4,8 +4,8 @@ FactoryGirl.define do
4
4
  factory :rider, :class => HrtBus::Rider do
5
5
  id {}
6
6
  time {}
7
- lat {}
8
- lon {}
7
+ lat { "37.1787591" }
8
+ lon { "-76.50600070"}
9
9
  route_id { SecureRandom.random_number(1e9.to_i).to_s }
10
10
  direction { %w(inbound outbound).sample }
11
11
  end
@@ -3,33 +3,89 @@ require 'factories/rider'
3
3
 
4
4
  describe HrtBus::Rider do
5
5
 
6
- describe "bus" do
6
+ describe "distance_to_bus" do
7
+ use_vcr_cassette
8
+
9
+ describe "when there is a bus for the Riders route" do
10
+
11
+ before do
12
+ @rider = Factory.build(:rider, :route_id => "111", :direction => "outbound")
13
+ @bus = @rider.bus
14
+ end
15
+
16
+ it "should return the distance to a bus in miles" do
17
+ distance = Haversine.distance(@rider.lat.to_f, @rider.lon.to_f, @bus.lat.to_f, @bus.lon.to_f)
18
+ distance.to_miles.should == @rider.distance_to_bus
19
+ end
20
+
21
+ end
22
+
23
+ describe "when there is NOT a bus for the Riders route" do
24
+ use_vcr_cassette
25
+
26
+ before do
27
+ @rider = Factory.build(:rider, :route_id => "50000", :direction => "outbound")
28
+ @bus = @rider.bus
29
+ end
30
+
31
+ it "should return 999999999" do
32
+ @rider.distance_to_bus.should == 999999999
33
+ end
34
+
35
+ end
7
36
 
37
+ end
38
+
39
+ describe "bus" do
8
40
  use_vcr_cassette
9
41
 
10
42
  describe "when the server responds with 226" do
11
43
 
12
- context "there are NO bus that match the riders route" do
44
+ context "when there are NO bus that match the riders route" do
13
45
 
14
46
  let(:bus) { Factory.build(:rider, :route_id => "999999", :direction => "inbound").bus }
15
47
 
16
- it "it should return nil" do
48
+ it "should return nil" do
17
49
  bus.should be_nil
18
50
  end
19
51
 
20
52
  end
21
53
 
22
- context "there is one bus that matches the riders route" do
54
+ context "when a bus matches a riders route and is greater than 3 miles away" do
55
+
56
+ before { @rider = Factory.build(:rider, :route_id => "6", :direction => "inbound") }
57
+ let(:bus) { @rider.bus }
58
+
59
+ it "should match the riders route" do
60
+ bus.should be_a_kind_of(HrtBus::Bus)
61
+ bus.should be_valid
62
+ bus.route_id.should == "6"
63
+ bus.direction.should == "inbound"
64
+ end
65
+
66
+ it "should be greater than 3 miles from the riders location" do
67
+ @rider.distance_to_bus.should > 3
68
+ end
69
+
70
+ end
71
+
72
+ context "when a bus matches the riders route and is nearer than 3 miles" do
23
73
 
24
- let(:bus) { Factory.build(:rider, :route_id => "111", :direction => "outbound").bus }
74
+ before { @rider = Factory.build(:rider, :route_id => "111", :direction => "outbound") }
75
+ let(:bus) { @rider.bus }
25
76
 
26
- it "should return only one bus that matches the riders route" do
77
+ it "should match the riders route" do
27
78
  bus.should be_a_kind_of(HrtBus::Bus)
28
79
  bus.should be_valid
29
80
  bus.route_id.should == "111"
30
81
  bus.direction.should == "outbound"
31
82
  end
32
83
 
84
+ it "should be within 3 miles of the riders location " do
85
+ bus.should be_a_kind_of(HrtBus::Bus)
86
+ @rider.distance_to_bus.should <= 3
87
+ end
88
+
33
89
  end
34
90
 
35
91
  context "there are outbound and inbound buses that match the riders route" do
@@ -0,0 +1,347 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://ftp//216.54.15.3/Anrd/hrtrtf.txt
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers: {}
10
+
11
+ response:
12
+ status:
13
+ code: 226
14
+ message:
15
+ headers:
16
+ 220 microsoft ftp service:
17
+ - ""
18
+ 331 anonymous access allowed, send identity (e-Mail name) as password.:
19
+ - ""
20
+ 230-Hampton roads transit:
21
+ - ""
22
+ 230 anonymous user logged in.:
23
+ - ""
24
+ 257 "/" is current directory.:
25
+ - ""
26
+ 250 cwd command successful.:
27
+ - ""
28
+ 500 'epsv':
29
+ - command not understood
30
+ 227 entering passive mode (216,54,15,3,15,7).:
31
+ - ""
32
+ 200 type set to i.:
33
+ - ""
34
+ 213 14889:
35
+ - ""
36
+ 125 data connection already open; transfer starting.:
37
+ - ""
38
+ 226 transfer complete.:
39
+ - ""
40
+ body:
41
+ encoding: ASCII-8BIT
42
+ string: |
43
+ Time,Date,Vehicle,Lat/Lon,Location Valid/Invalid,Adherence,Adherence Valid/Invalid[,Route,Direction,Stop]
44
+ 13:02:18,03/04,3035,368428982/-762761810,V,0,I
45
+ 13:02:18,03/04,null,368434093/-762860204,V,0,I
46
+ 13:02:19,03/04,4021,368873431/-763126888,V,-3,V
47
+ 13:02:19,03/04,1715,368641223/-762809412,V,0,I
48
+ 13:02:21,03/04,1909,371062199/-765055607,V,-8,V
49
+ 13:02:21,03/04,3012,368438877/-762764148,V,0,I
50
+ 13:02:21,03/04,2027,369115071/-762739070,V,-4,V
51
+ 13:02:22,03/04,1902,369868384/-764360076,V,10,V
52
+ 13:02:22,03/04,1213,370401516/-763077298,V,-2,V,109,1,2927
53
+ 13:02:23,03/04,1205,370243058/-763523311,V,-1,V
54
+ 13:02:23,03/04,5006,368801353/-762626867,V,0,V
55
+ 13:02:24,03/04,1905,371163314/-765209836,V,0,V
56
+ 13:02:24,03/04,1701,368460191/-762863052,V,-5,V,6,1,6
57
+ 13:02:25,03/04,1213,370397900/-763075843,V,-2,V
58
+ 13:02:25,03/04,null,370137588/-763643146,V,0,I
59
+ 13:02:25,03/04,null,368643360/-762821472,V,0,I
60
+ 13:02:26,03/04,1513,370457711/-763105218,V,-5,V
61
+ 13:02:27,03/04,1219,371111685/-764985832,V,1,V
62
+ 13:02:27,03/04,2015,368415672/-762137441,V,3,V
63
+ 13:02:27,03/04,1206,370721862/-763824641,V,-5,V,118,1,2866
64
+ 13:02:27,03/04,1701,368457773/-762864989,V,-5,V
65
+ 13:02:28,03/04,2013,368582191/-763032911,V,0,I
66
+ 13:02:29,03/04,1206,370728674/-763821696,V,-6,V
67
+ 13:02:29,03/04,4036,368440579/-762770955,V,0,I
68
+ 13:02:31,03/04,1202,370691719/-764266398,V,0,V
69
+ 13:02:31,03/04,null,368430214/-762762767,V,0,I
70
+ 13:02:32,03/04,2041,368420502/-760879776,V,-1,V
71
+ 13:02:33,03/04,5001,368438665/-762773716,V,0,I
72
+ 13:02:34,03/04,3006,369834866/-764351184,V,-3,V
73
+ 13:02:35,03/04,1510,370293622/-763531866,V,3,V
74
+ 13:02:35,03/04,3000,368469387/-759773245,V,-2,V,960,2,1094
75
+ 13:02:36,03/04,4035,368437158/-762762280,V,0,I
76
+ 13:02:39,03/04,5000,368578031/-762869234,V,0,I
77
+ 13:02:42,03/04,1907,370234917/-764260307,V,2,V
78
+ 13:02:42,03/04,4013,368699344/-762968442,V,0,V
79
+ 13:02:43,03/04,1220,371204562/-765074159,V,-1,V
80
+ 13:02:43,03/04,2024,368463830/-759758251,V,-8,V
81
+ 13:02:45,03/04,2036,370444195/-763537045,V,-4,V
82
+ 13:02:45,03/04,3014,368432454/-762775189,V,0,I
83
+ 13:02:46,03/04,2000,369529777/-762501149,V,-1,V,3,2,53
84
+ 13:02:47,03/04,5005,368437405/-762773413,V,0,I
85
+ 13:02:48,03/04,3000,368466265/-759791775,V,-3,V
86
+ 13:02:48,03/04,1221,370012151/-764028414,V,-1,V
87
+ 13:02:48,03/04,2023,368077221/-763557253,V,5,V
88
+ 13:02:49,03/04,1516,370134214/-763647202,V,0,I
89
+ 13:02:49,03/04,3015,368440378/-762766165,V,0,I
90
+ 13:02:51,03/04,2031,370366622/-764088305,V,-1,V
91
+ 13:02:52,03/04,1904,369902189/-763988318,V,-1,V
92
+ 13:02:52,03/04,1713,368526397/-762794652,V,0,I
93
+ 13:02:54,03/04,2017,368158432/-762155094,V,0,V
94
+ 13:02:54,03/04,1210,370898745/-764471631,V,-2,V,111,1,3141
95
+ 13:02:54,03/04,4018,368583200/-763032138,V,-23,V
96
+ 13:02:55,03/04,3001,368578908/-762846184,V,-2,V
97
+ 13:02:55,03/04,null,368375984/-762954170,V,0,I
98
+ 13:02:57,03/04,1222,370312323/-763468531,V,-3,V
99
+ 13:02:57,03/04,4024,368588981/-762844127,V,0,V
100
+ 13:02:57,03/04,1515,370051834/-763856446,V,-3,V
101
+ 13:02:57,03/04,1210,370904063/-764473275,V,-2,V
102
+ 13:02:58,03/04,2000,369522077/-762493466,V,-1,V
103
+ 13:02:58,03/04,2009,368623301/-762851576,V,13,V
104
+ 13:02:58,03/04,5002,368982058/-762123661,V,-1,V
105
+ 13:03:05,03/04,1507,370589577/-763029737,V,-5,V
106
+ 13:03:05,03/04,1610,369948925/-764143974,V,-8,V
107
+ 13:03:06,03/04,1209,370132053/-763651551,V,0,I
108
+ 13:03:06,03/04,1233,368412212/-761900878,V,-6,V
109
+ 13:03:06,03/04,1900,369771818/-764163873,V,1,V
110
+ 13:03:07,03/04,2051,370552478/-764810094,V,0,V
111
+ 13:03:07,03/04,1248,368639132/-762813927,V,0,I
112
+ 13:03:08,03/04,2019,368549154/-762382661,V,-6,V
113
+ 13:03:08,03/04,4013,368688870/-762974458,V,0,V,17,1,5761
114
+ 13:03:09,03/04,2038,370784125/-764640923,V,0,V
115
+ 13:03:09,03/04,2006,368756393/-762524847,V,-1,V
116
+ 13:03:10,03/04,1700,368415695/-762135568,V,0,V
117
+ 13:03:10,03/04,4013,368686578/-762975816,V,0,V
118
+ 13:03:11,03/04,2017,368143225/-762163975,V,0,V,15,2,766
119
+ 13:03:11,03/04,2047,370257359/-764378445,V,0,V
120
+ 13:03:11,03/04,1253,368642323/-762084316,V,1,V
121
+ 13:03:11,03/04,3028,368598498/-762845978,V,2,V
122
+ 13:03:12,03/04,4002,368463944/-762923264,V,-3,V
123
+ 13:03:13,03/04,2017,368136338/-762167773,V,0,V
124
+ 13:03:15,03/04,1611,369942846/-764209595,V,-5,V
125
+ 13:03:15,03/04,1711,368593135/-762842512,V,-1,V
126
+ 13:03:17,03/04,2040,369291467/-763176431,V,2,V
127
+ 13:03:17,03/04,2045,369178451/-762729169,V,-1,V
128
+ 13:03:18,03/04,3035,368434534/-762766681,V,0,I
129
+ 13:03:18,03/04,null,368422061/-762817187,V,0,I
130
+ 13:03:19,03/04,4021,368865576/-763082163,V,-3,V
131
+ 13:03:19,03/04,1715,368641223/-762809412,V,0,I
132
+ 13:03:21,03/04,1909,371047571/-765106617,V,-8,V
133
+ 13:03:21,03/04,3012,368438877/-762764148,V,0,I
134
+ 13:03:21,03/04,2027,369141421/-762728126,V,-5,V
135
+ 13:03:22,03/04,1902,369843455/-764344755,V,11,V
136
+ 13:03:22,03/04,4003,368559084/-763030132,V,-3,V,16,1,5191
137
+ 13:03:23,03/04,1205,370245751/-763495993,V,-1,V
138
+ 13:03:24,03/04,1905,371093666/-765160997,V,0,V
139
+ 13:03:24,03/04,4003,368560625/-763029347,V,-3,V
140
+ 13:03:25,03/04,null,370137588/-763643146,V,0,I
141
+ 13:03:25,03/04,null,368643360/-762821472,V,0,I
142
+ 13:03:26,03/04,1513,370430461/-763149164,V,-4,V
143
+ 13:03:26,03/04,2024,368469250/-759775113,V,-8,V,20,1,1094
144
+ 13:03:26,03/04,1213,370401848/-763049269,V,-3,V
145
+ 13:03:27,03/04,1219,371102890/-764978819,V,1,V
146
+ 13:03:27,03/04,2015,368415672/-762137441,V,2,V
147
+ 13:03:28,03/04,2013,368599460/-762990592,V,0,I
148
+ 13:03:28,03/04,1701,368452726/-762921305,V,-5,V
149
+ 13:03:28,03/04,2024,368468791/-759777932,V,-8,V
150
+ 13:03:30,03/04,1206,370741457/-763798446,V,-6,V
151
+ 13:03:31,03/04,1202,370688373/-764277158,V,-1,V
152
+ 13:03:31,03/04,null,368428793/-762763455,V,0,I
153
+ 13:03:32,03/04,2041,368420073/-760883196,V,-2,V
154
+ 13:03:34,03/04,5006,368745713/-762648032,V,1,V
155
+ 13:03:35,03/04,1510,370295570/-763494790,V,3,V
156
+ 13:03:35,03/04,1507,370589343/-763004280,V,-5,V,115,1,2916
157
+ 13:03:36,03/04,4035,368437158/-762762280,V,0,I
158
+ 13:03:37,03/04,1507,370584656/-763003673,V,-5,V
159
+ 13:03:40,03/04,5000,368542204/-762855025,V,0,I
160
+ 13:03:42,03/04,1907,370235117/-764259780,V,1,V
161
+ 13:03:42,03/04,1208,371787036/-765696987,V,0,V
162
+ 13:03:43,03/04,1220,371231663/-765094511,V,-1,V
163
+ 13:03:45,03/04,2036,370445158/-763559780,V,-4,V
164
+ 13:03:45,03/04,1253,368638204/-762091249,V,1,V,23,1,1203
165
+ 13:03:46,03/04,2008,369386355/-762622100,V,-7,V
166
+ 13:03:46,03/04,2039,369853103/-764033135,V,1,V
167
+ 13:03:47,03/04,5005,368437405/-762773413,V,0,I
168
+ 13:03:48,03/04,1253,368635797/-762095518,V,1,V
169
+ 13:03:48,03/04,1221,370047880/-763974040,V,0,V
170
+ 13:03:48,03/04,2023,368097440/-763518407,V,5,V
171
+ 13:03:48,03/04,3000,368455997/-759850841,V,-3,V
172
+ 13:03:49,03/04,4021,368846668/-763081062,V,-3,V,4,1,440
173
+ 13:03:49,03/04,1516,370134214/-763647202,V,0,I
174
+ 13:03:49,03/04,3015,368440378/-762766165,V,0,I
175
+ 13:03:51,03/04,2031,370366645/-764088322,V,-2,V
176
+ 13:03:51,03/04,4021,368840349/-763080684,V,-2,V
177
+ 13:03:52,03/04,1904,369891062/-764039535,V,-1,V
178
+ 13:03:52,03/04,1713,368525869/-762793930,V,0,I
179
+ 13:03:54,03/04,2047,370264533/-764377975,V,-1,V,112,1,3218
180
+ 13:03:54,03/04,4018,368583200/-763032138,V,-24,V
181
+ 13:03:55,03/04,null,368386595/-762957218,V,0,I
182
+ 13:03:56,03/04,3001,368580627/-762867796,V,-3,V
183
+ 13:03:57,03/04,1222,370315131/-763461163,V,-4,V
184
+ 13:03:57,03/04,4024,368588981/-762844127,V,0,V
185
+ 13:03:57,03/04,2047,370266091/-764372641,V,-1,V
186
+ 13:03:58,03/04,2009,368623301/-762851576,V,12,V
187
+ 13:03:58,03/04,1210,370951114/-764478226,V,-2,V
188
+ 13:04:01,03/04,4021,368835553/-763080564,V,-2,V,4,2,440
189
+ 13:04:05,03/04,2045,369181814/-762737420,V,-1,V,15,1,39
190
+ 13:04:06,03/04,1209,370132053/-763651551,V,0,I
191
+ 13:04:06,03/04,1900,369775737/-764186630,V,1,V
192
+ 13:04:07,03/04,1610,369950586/-764145045,V,-9,V
193
+ 13:04:07,03/04,2051,370627043/-764861535,V,1,V
194
+ 13:04:07,03/04,1248,368639132/-762813927,V,0,I
195
+ 13:04:08,03/04,2019,368544290/-762409390,V,-6,V
196
+ 13:04:08,03/04,1219,371100381/-764948567,V,1,V,111,2,2669
197
+ 13:04:09,03/04,2038,370762760/-764692965,V,0,V
198
+ 13:04:09,03/04,2006,368757390/-762523775,V,-2,V
199
+ 13:04:09,03/04,4021,368833233/-763080444,V,-2,V
200
+ 13:04:10,03/04,1700,368415695/-762135568,V,0,V
201
+ 13:04:10,03/04,1219,371100535/-764943026,V,1,V
202
+ 13:04:10,03/04,2045,369181539/-762733145,V,0,V
203
+ 13:04:11,03/04,3028,368598498/-762845978,V,1,V
204
+ 13:04:11,03/04,4002,368456988/-762885529,V,-3,V
205
+ 13:04:12,03/04,4013,368660417/-762990793,V,0,V
206
+ 13:04:15,03/04,1611,369975796/-764187026,V,-5,V
207
+ 13:04:15,03/04,1711,368581521/-762868100,V,-1,V
208
+ 13:04:15,03/04,2017,368083638/-762201034,V,0,V
209
+ 13:04:16,03/04,1233,368412945/-761893579,V,-7,V
210
+ 13:04:17,03/04,2040,369336192/-763175858,V,2,V
211
+ 13:04:17,03/04,1515,370067573/-763903641,V,-3,V
212
+ 13:04:18,03/04,1219,371101464/-764935406,V,4,V,111,2,2669
213
+ 13:04:18,03/04,3035,368435405/-762767271,V,0,I
214
+ 13:04:18,03/04,null,368422061/-762817187,V,0,I
215
+ 13:04:19,03/04,1715,368641223/-762809412,V,0,I
216
+ 13:04:20,03/04,2041,368411278/-760942864,V,-1,V,20,2,1119
217
+ 13:04:21,03/04,1909,371052894/-765127496,V,-8,V
218
+ 13:04:21,03/04,3012,368438877/-762764148,V,0,I
219
+ 13:04:21,03/04,1219,371102037/-764930880,V,4,V
220
+ 13:04:21,03/04,2027,369155332/-762725027,V,-5,V
221
+ 13:04:22,03/04,1902,369837198/-764348107,V,10,V
222
+ 13:04:22,03/04,2041,368409931/-760952152,V,-1,V
223
+ 13:04:23,03/04,1205,370276118/-763479411,V,0,V
224
+ 13:04:24,03/04,1905,371046236/-765125657,V,1,V
225
+ 13:04:24,03/04,4018,368591994/-763013855,V,0,I
226
+ 13:04:25,03/04,2019,368541374/-762425977,V,-6,V,20,2,9182
227
+ 13:04:25,03/04,null,370137588/-763643146,V,0,I
228
+ 13:04:25,03/04,null,368643360/-762821472,V,0,I
229
+ 13:04:26,03/04,4003,368576083/-763036910,V,-3,V
230
+ 13:04:26,03/04,1213,370443806/-763018834,V,-2,V
231
+ 13:04:27,03/04,2015,368415672/-762137441,V,1,V
232
+ 13:04:27,03/04,2019,368539804/-762436153,V,-6,V
233
+ 13:04:28,03/04,2013,368584976/-762958444,V,0,I
234
+ 13:04:28,03/04,1701,368480405/-762916303,V,-4,V
235
+ 13:04:29,03/04,4036,368440820/-762770519,V,0,I
236
+ 13:04:29,03/04,2024,368490168/-759769922,V,-8,V
237
+ 13:04:30,03/04,1206,370742700/-763742468,V,-4,V
238
+ 13:04:31,03/04,1202,370631638/-764272746,V,-1,V
239
+ 13:04:31,03/04,null,368432214/-762764618,V,0,I
240
+ 13:04:33,03/04,5001,368438665/-762773716,V,0,I
241
+ 13:04:34,03/04,3006,369834918/-764340567,V,-4,V
242
+ 13:04:35,03/04,1510,370301872/-763457289,V,3,V
243
+ 13:04:35,03/04,2036,370441330/-763587024,V,-4,V,114,1,2054
244
+ 13:04:36,03/04,4035,368437158/-762762280,V,0,I
245
+ 13:04:37,03/04,2036,370439778/-763586830,V,-4,V
246
+ 13:04:39,03/04,1507,370514308/-763010188,V,-5,V
247
+ 13:04:39,03/04,3006,369834958/-764340492,V,-5,V,961,1,2000
248
+ 13:04:40,03/04,5000,368540892/-762855288,V,0,I
249
+ 13:04:41,03/04,3006,369836195/-764337278,V,-4,V
250
+ 13:04:42,03/04,1907,370235117/-764259780,V,0,V
251
+ 13:04:42,03/04,1208,371720069/-765665177,V,0,V
252
+ 13:04:42,03/04,null,368643360/-762821472,V,0,I
253
+ 13:04:43,03/04,1220,371253349/-765142484,V,0,V
254
+ 13:04:45,03/04,3014,368432454/-762775189,V,0,I
255
+ 13:04:46,03/04,2008,369319347/-762656971,V,-7,V
256
+ 13:04:47,03/04,5005,368437405/-762773413,V,0,I
257
+ 13:04:47,03/04,2001,369179339/-762728447,V,-1,V
258
+ 13:04:48,03/04,2023,368104453/-763516533,V,4,V
259
+ 13:04:48,03/04,3000,368482055/-759861275,V,-4,V
260
+ 13:04:49,03/04,1253,368633104/-762100376,V,0,V
261
+ 13:04:49,03/04,1516,370134214/-763647202,V,0,I
262
+ 13:04:49,03/04,3015,368440378/-762766165,V,0,I
263
+ 13:04:51,03/04,2031,370402232/-764081332,V,-2,V
264
+ 13:04:52,03/04,1713,368506194/-762767305,V,0,I
265
+ 13:04:54,03/04,5006,368705022/-762664482,V,1,V
266
+ 13:04:55,03/04,null,368386595/-762957218,V,0,I
267
+ 13:04:56,03/04,3001,368553864/-762856486,V,-3,V
268
+ 13:04:57,03/04,1222,370303884/-763456573,V,-4,V
269
+ 13:04:57,03/04,4024,368588981/-762844127,V,0,V
270
+ 13:04:58,03/04,1210,370971116/-764539578,V,-1,V
271
+ 13:04:58,03/04,2009,368623301/-762851576,V,11,V
272
+ 13:04:58,03/04,2047,370240039/-764357458,V,-1,V
273
+ 13:04:58,03/04,5002,368949652/-762230759,V,0,V
274
+ 13:05:00,03/04,1902,369837198/-764348107,V,0,I
275
+ 13:05:01,03/04,1904,369880485/-764066332,V,-2,V
276
+ 13:05:05,03/04,2045,369177431/-762725691,V,1,V,15,1,39
277
+ 13:05:05,03/04,1233,368412607/-761890210,V,-8,V,20,1,5741
278
+ 13:05:06,03/04,1222,370300285/-763455101,V,-4,V,110,1,2047
279
+ 13:05:06,03/04,2031,370407663/-764060557,V,-2,V,105,1,2239
280
+ 13:05:06,03/04,2027,369177930/-762729610,V,-5,V,1,1,39
281
+ 13:05:06,03/04,1209,370132053/-763651551,V,0,I
282
+ 13:05:07,03/04,1610,369983675/-764167167,V,-9,V
283
+ 13:05:07,03/04,2051,370624075/-764850413,V,0,V
284
+ 13:05:08,03/04,2045,369176177/-762724774,V,1,V
285
+ 13:05:08,03/04,1221,370074838/-763934019,V,0,V
286
+ 13:05:08,03/04,1233,368415117/-761886136,V,-9,V
287
+ 13:05:08,03/04,1900,369810424/-764207824,V,2,V
288
+ 13:05:09,03/04,2038,370750802/-764720856,V,0,V
289
+ 13:05:09,03/04,2006,368790868/-762490836,V,-1,V
290
+ 13:05:09,03/04,1222,370295862/-763453697,V,-4,V
291
+ 13:05:09,03/04,2027,369179385/-762735386,V,-2,V
292
+ 13:05:09,03/04,2031,370408821/-764056156,V,-2,V
293
+ 13:05:10,03/04,1700,368415695/-762135568,V,0,V
294
+ 13:05:10,03/04,4021,368803657/-763078759,V,-2,V
295
+ 13:05:11,03/04,3028,368598498/-762845978,V,0,V
296
+ 13:05:11,03/04,4002,368444630/-762876339,V,-3,V
297
+ 13:05:11,03/04,4013,368629220/-763001582,V,0,V
298
+ 13:05:15,03/04,1611,369971127/-764158830,V,-5,V
299
+ 13:05:15,03/04,1711,368608266/-762874036,V,-1,V
300
+ 13:05:15,03/04,2017,368023002/-762280726,V,1,V
301
+ 13:05:17,03/04,2040,369361964/-763182453,V,1,V
302
+ 13:05:18,03/04,1515,370084928/-763917266,V,-4,V
303
+ 13:05:18,03/04,3035,368435268/-762771854,V,0,I
304
+ 13:05:18,03/04,null,368434803/-762797901,V,0,I
305
+ 13:05:19,03/04,1715,368641223/-762809412,V,0,I
306
+ 13:05:21,03/04,1909,371123557/-765178758,V,-8,V
307
+ 13:05:21,03/04,3012,368438373/-762764085,V,0,I
308
+ 13:05:22,03/04,1219,371102157/-764945410,V,3,V
309
+ 13:05:23,03/04,1205,370296338/-763452482,V,0,V
310
+ 13:05:23,03/04,2041,368403812/-760994006,V,-1,V
311
+ 13:05:25,03/04,null,370137588/-763643146,V,0,I
312
+ 13:05:25,03/04,4003,368583222/-763032029,V,-4,V
313
+ 13:05:26,03/04,1513,370353301/-763187770,V,-2,V
314
+ 13:05:26,03/04,4018,368602537/-763000613,V,0,I
315
+ 13:05:26,03/04,1213,370443920/-762973112,V,-2,V
316
+ 13:05:27,03/04,2015,368415672/-762137441,V,0,V
317
+ 13:05:28,03/04,1701,368476274/-762898753,V,-5,V
318
+ 13:05:28,03/04,2019,368530041/-762487478,V,-6,V
319
+ 13:05:29,03/04,2024,368529141/-759775085,V,-8,V
320
+ 13:05:30,03/04,1206,370746648/-763662317,V,-2,V
321
+ 13:05:31,03/04,1202,370605832/-764273519,V,-1,V
322
+ 13:05:31,03/04,null,368434723/-762764767,V,0,I
323
+ 13:05:33,03/04,5001,368438665/-762773716,V,0,I
324
+ 13:05:36,03/04,4035,368437158/-762762280,V,0,I
325
+ 13:05:36,03/04,5006,368663030/-762692288,V,2,V,8,2,600
326
+ 13:05:37,03/04,1510,370315790/-763459054,V,2,V,102,2,2047
327
+ 13:05:39,03/04,1507,370482028/-763079550,V,-5,V
328
+ 13:05:39,03/04,5006,368657031/-762694488,V,2,V
329
+ 13:05:39,03/04,2036,370445358/-763638676,V,-4,V
330
+ 13:05:40,03/04,1510,370315864/-763463294,V,2,V
331
+ 13:05:40,03/04,5000,368486020/-762845812,V,0,I
332
+ 13:05:42,03/04,1907,370235117/-764259780,V,-1,V
333
+ 13:05:42,03/04,1208,371686511/-765626015,V,0,V
334
+ 13:05:43,03/04,3006,369873220/-764259768,V,-4,V
335
+ 13:05:43,03/04,1220,371251905/-765172215,V,0,V
336
+ 13:05:43,03/04,null,368643360/-762821472,V,0,I
337
+ 13:05:45,03/04,3014,368432454/-762775189,V,0,I
338
+ 13:05:46,03/04,2039,369845093/-763954760,V,2,V
339
+ 13:05:47,03/04,5005,368437405/-762773413,V,0,I
340
+ 13:05:47,03/04,2001,369179339/-762728447,V,-2,V
341
+ 13:05:48,03/04,2023,368145076/-763553094,V,4,V
342
+ 13:05:48,03/04,3000,368467582/-759936727,V,-4,V
343
+
344
+
345
+ http_version:
346
+ recorded_at: Sun, 04 Mar 2012 18:06:47 GMT
347
+ recorded_with: VCR 2.0.0.rc2
@@ -0,0 +1,347 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://ftp//216.54.15.3/Anrd/hrtrtf.txt
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers: {}
10
+
11
+ response:
12
+ status:
13
+ code: 226
14
+ message:
15
+ headers:
16
+ 220 microsoft ftp service:
17
+ - ""
18
+ 331 anonymous access allowed, send identity (e-Mail name) as password.:
19
+ - ""
20
+ 230-Hampton roads transit:
21
+ - ""
22
+ 230 anonymous user logged in.:
23
+ - ""
24
+ 257 "/" is current directory.:
25
+ - ""
26
+ 250 cwd command successful.:
27
+ - ""
28
+ 500 'epsv':
29
+ - command not understood
30
+ 227 entering passive mode (216,54,15,3,7,35).:
31
+ - ""
32
+ 200 type set to i.:
33
+ - ""
34
+ 213 14723:
35
+ - ""
36
+ 125 data connection already open; transfer starting.:
37
+ - ""
38
+ 226 transfer complete.:
39
+ - ""
40
+ body:
41
+ encoding: ASCII-8BIT
42
+ string: |
43
+ Time,Date,Vehicle,Lat/Lon,Location Valid/Invalid,Adherence,Adherence Valid/Invalid[,Route,Direction,Stop]
44
+ 20:50:39,03/03,1802,368639687/-762815846,V,0,I
45
+ 20:50:39,03/03,2036,370127298/-763651866,V,0,I
46
+ 20:50:40,03/03,1218,369799652/-764317265,V,-2,V
47
+ 20:50:40,03/03,2030,371046013/-765104492,V,-16,V
48
+ 20:50:40,03/03,5007,368631328/-762847983,V,0,I
49
+ 20:50:40,03/03,1513,370622591/-764190509,V,-1,V
50
+ 20:50:41,03/03,1509,371487591/-765060070,V,1,V,111,2,2692
51
+ 20:50:41,03/03,1810,368217171/-762730441,V,-6,V,6,1,472
52
+ 20:50:41,03/03,1706,368644403/-762819536,V,0,I
53
+ 20:50:42,03/03,1241,369535410/-762517513,V,0,V
54
+ 20:50:42,03/03,2025,368477775/-762907496,V,-5,V
55
+ 20:50:42,03/03,4011,368640134/-762815004,V,0,I
56
+ 20:50:43,03/03,2048,369952626/-764263040,V,0,V
57
+ 20:50:43,03/03,1509,371489001/-765066281,V,0,V
58
+ 20:50:44,03/03,4004,368499616/-762401477,V,-4,V
59
+ 20:50:44,03/03,1810,368219658/-762726700,V,-3,V
60
+ 20:50:45,03/03,1215,370312358/-763468514,V,0,V
61
+ 20:50:46,03/03,3033,368482158/-759861647,V,0,I
62
+ 20:50:47,03/03,2015,368480044/-762844929,V,-1,V
63
+ 20:50:48,03/03,1712,369455110/-762736136,V,0,I
64
+ 20:50:48,03/03,3025,369834912/-764351064,V,4,V
65
+ 20:50:48,03/03,2002,368638352/-762808300,V,0,I
66
+ 20:50:48,03/03,3008,368639470/-762814843,V,0,I
67
+ 20:50:49,03/03,1240,368639355/-762818144,V,0,I
68
+ 20:50:49,03/03,3015,368635562/-762802840,V,0,I
69
+ 20:50:49,03/03,1803,368643664/-762818321,V,0,I
70
+ 20:50:51,03/03,2028,368557984/-762327027,V,0,V
71
+ 20:50:54,03/03,2037,369945877/-764361686,V,-2,V
72
+ 20:50:54,03/03,1705,368521521/-762031725,V,-3,V,23,2,916
73
+ 20:50:54,03/03,2012,368545104/-762028424,V,-2,V
74
+ 20:50:55,03/03,2039,370128071/-763645936,V,0,I
75
+ 20:50:55,03/03,1807,368616397/-763026087,V,0,I
76
+ 20:50:56,03/03,3027,368625249/-762861133,V,0,I
77
+ 20:50:56,03/03,2027,368267339/-763066091,V,1,V
78
+ 20:50:56,03/03,2050,370420005/-763890079,V,-3,V
79
+ 20:50:56,03/03,2001,368645108/-762818121,V,0,I
80
+ 20:50:57,03/03,4019,368562659/-763031966,V,0,I
81
+ 20:50:57,03/03,1705,368521647/-762028911,V,-3,V
82
+ 20:50:58,03/03,2005,368488226/-760328367,V,-2,V
83
+ 20:50:58,03/03,1800,368638983/-762821432,V,0,I
84
+ 20:50:58,03/03,1226,368641166/-762814809,V,0,I
85
+ 20:50:58,03/03,2044,369568567/-763210677,V,0,I
86
+ 20:50:59,03/03,4001,368555566/-763036234,V,-7,V
87
+ 20:50:59,03/03,2045,368592745/-762844987,V,0,V
88
+ 20:51:00,03/03,1204,371670153/-765600896,V,15,V
89
+ 20:51:00,03/03,null,368209385/-761248325,V,0,I
90
+ 20:51:01,03/03,1714,368498854/-762017343,V,-1,V
91
+ 20:51:01,03/03,2051,370129252/-763646698,V,0,I
92
+ 20:51:01,03/03,1208,370263261/-763498245,V,-3,V
93
+ 20:51:02,03/03,1245,368639676/-762817399,V,0,I
94
+ 20:51:02,03/03,1202,370128942/-763649992,V,0,I
95
+ 20:51:02,03/03,2029,370310524/-763458836,V,-1,V
96
+ 20:51:03,03/03,1221,370517551/-763472759,V,-3,V,115,1,2897
97
+ 20:51:03,03/03,1901,371016053/-765032436,V,-8,V
98
+ 20:51:04,03/03,1221,370523596/-763472009,V,-3,V
99
+ 20:51:05,03/03,4010,368640071/-762816247,V,0,I
100
+ 20:51:06,03/03,1247,368644432/-762813760,V,0,I
101
+ 20:51:06,03/03,null,370127871/-763640132,I,0,I
102
+ 20:51:06,03/03,2008,368645005/-762819565,V,0,I
103
+ 20:51:06,03/03,1210,370622419/-764188733,V,-1,V
104
+ 20:51:06,03/03,1610,370218140/-764224239,V,-2,V
105
+ 20:51:08,03/03,1209,370427751/-762933102,V,0,V
106
+ 20:51:09,03/03,4000,368589915/-762845686,V,0,V
107
+ 20:51:09,03/03,1810,368217830/-762719383,V,-3,V,6,2,472
108
+ 20:51:09,03/03,1905,371897652/-765716823,V,0,I
109
+ 20:51:10,03/03,1501,368641292/-762818854,V,0,I
110
+ 20:51:10,03/03,2021,368419907/-759930780,V,-2,V
111
+ 20:51:10,03/03,1206,370128455/-763654765,V,0,I
112
+ 20:51:11,03/03,4030,368977005/-761452184,V,-1,V
113
+ 20:51:11,03/03,1907,370624877/-764852155,V,-1,V
114
+ 20:51:11,03/03,2014,369282472/-763175537,V,-5,V
115
+ 20:51:11,03/03,1257,368221142/-762706824,V,-1,V
116
+ 20:51:12,03/03,2024,368489183/-762095690,V,-1,V
117
+ 20:51:12,03/03,901,368546169/-762396550,V,0,I
118
+ 20:51:13,03/03,4005,368911407/-763040234,V,-5,V
119
+ 20:51:13,03/03,1211,370125230/-763651912,V,0,I
120
+ 20:51:13,03/03,4009,368458381/-762900627,V,-9,V
121
+ 20:51:14,03/03,null,368587474/-762848006,V,0,I
122
+ 20:51:14,03/03,1906,371638084/-765573251,V,0,V
123
+ 20:51:15,03/03,2019,368639470/-762822762,V,0,I
124
+ 20:51:15,03/03,1809,368641618/-762816379,V,0,I
125
+ 20:51:16,03/03,1810,368217297/-762719005,V,-3,V
126
+ 20:51:16,03/03,2049,370191017/-764377248,V,0,V
127
+ 20:51:17,03/03,1704,368644220/-762815468,V,0,I
128
+ 20:51:18,03/03,2018,367941109/-762345402,V,1,V
129
+ 20:51:18,03/03,2010,368581234/-763035518,V,0,I
130
+ 20:51:19,03/03,1507,370622792/-764193913,V,-1,V
131
+ 20:51:19,03/03,2023,369483070/-763285041,V,0,V
132
+ 20:51:20,03/03,null,368398169/-762945077,V,0,I
133
+ 20:51:21,03/03,2022,368644793/-762821215,V,0,I
134
+ 20:51:21,03/03,1213,370128931/-763649460,V,0,I
135
+ 20:51:22,03/03,2026,368552403/-761993715,V,0,V
136
+ 20:51:22,03/03,1909,369774201/-764277771,V,-4,V
137
+ 20:51:24,03/03,1205,370125957/-763651963,V,0,I
138
+ 20:51:26,03/03,1710,368650236/-762799007,I,0,I
139
+ 20:51:26,03/03,2041,368639493/-762819163,V,0,I
140
+ 20:51:26,03/03,1902,370128060/-763647878,V,0,I
141
+ 20:51:27,03/03,2034,369928997/-764280710,V,-2,V
142
+ 20:51:27,03/03,2047,370127504/-763653803,V,0,I
143
+ 20:51:28,03/03,2043,369387982/-763187759,V,-1,V
144
+ 20:51:29,03/03,1801,368640077/-762818367,V,0,I
145
+ 20:51:30,03/03,5003,368991982/-762054815,V,0,V
146
+ 20:51:31,03/03,1217,369852272/-764132887,V,-1,V
147
+ 20:51:31,03/03,1214,370307058/-763469493,V,0,V
148
+ 20:51:32,03/03,1702,368641916/-762813703,V,0,I
149
+ 20:51:32,03/03,3007,368480130/-759764680,V,-1,V
150
+ 20:51:32,03/03,2033,369783294/-764285277,V,-3,V
151
+ 20:51:33,03/03,1503,368339091/-762523288,I,0,I
152
+ 20:51:33,03/03,4014,368643028/-762825936,V,0,I
153
+ 20:51:34,03/03,2029,370298990/-763476518,V,0,V,114,1,2047
154
+ 20:51:35,03/03,1601,368642174/-762812065,V,0,I
155
+ 20:51:36,03/03,1709,368644363/-762816751,V,0,I
156
+ 20:51:37,03/03,2029,370297627/-763484029,V,0,V
157
+ 20:51:38,03/03,1250,368641320/-762818029,V,0,I
158
+ 20:51:38,03/03,1233,368642289/-762827414,V,0,I
159
+ 20:51:39,03/03,1802,368639687/-762815846,V,0,I
160
+ 20:51:39,03/03,2036,370127298/-763651866,V,0,I
161
+ 20:51:39,03/03,1218,369834178/-764338716,V,-1,V
162
+ 20:51:40,03/03,2030,371046013/-765104492,V,-17,V
163
+ 20:51:40,03/03,5007,368631328/-762847983,V,0,I
164
+ 20:51:40,03/03,1255,367873609/-761011734,V,3,V
165
+ 20:51:40,03/03,1513,370622591/-764190509,V,-2,V
166
+ 20:51:41,03/03,1901,371051439/-765067547,V,-8,V,107,1,2665
167
+ 20:51:41,03/03,1706,368644403/-762819536,V,0,I
168
+ 20:51:42,03/03,1303,368644346/-762812901,V,0,I
169
+ 20:51:42,03/03,1241,369535410/-762517513,V,-1,V
170
+ 20:51:42,03/03,2025,368476011/-762893688,V,-5,V
171
+ 20:51:42,03/03,1907,370619520/-764846913,V,-1,V,112,2,5713
172
+ 20:51:42,03/03,4011,368640134/-762815004,V,0,I
173
+ 20:51:43,03/03,1901,371053438/-765070888,V,-8,V
174
+ 20:51:44,03/03,4004,368499427/-762373500,V,-4,V
175
+ 20:51:44,03/03,1509,371493109/-765101294,V,0,V
176
+ 20:51:44,03/03,1907,370616335/-764843767,V,-2,V
177
+ 20:51:46,03/03,3033,368473352/-759907885,V,0,I
178
+ 20:51:47,03/03,2015,368502413/-762846385,V,-1,V
179
+ 20:51:48,03/03,1712,369455110/-762736136,V,0,I
180
+ 20:51:48,03/03,3025,369834912/-764351064,V,3,V
181
+ 20:51:48,03/03,2002,368638352/-762808300,V,0,I
182
+ 20:51:48,03/03,3008,368646357/-762811394,V,0,I
183
+ 20:51:49,03/03,1240,368639355/-762818144,V,0,I
184
+ 20:51:49,03/03,3015,368635562/-762802840,V,0,I
185
+ 20:51:49,03/03,1803,368643664/-762818321,V,0,I
186
+ 20:51:51,03/03,2028,368617967/-762340016,V,1,V
187
+ 20:51:52,03/03,2048,369975722/-764266529,V,0,V
188
+ 20:51:54,03/03,2037,370001287/-764393720,V,-2,V
189
+ 20:51:54,03/03,2012,368545104/-762028424,V,-3,V
190
+ 20:51:55,03/03,2039,370128071/-763645936,V,0,I
191
+ 20:51:55,03/03,1807,368616397/-763026087,V,0,I
192
+ 20:51:56,03/03,3027,368610192/-762866524,V,0,I
193
+ 20:51:56,03/03,2027,368247933/-763065043,V,0,V
194
+ 20:51:56,03/03,2050,370385255/-763866324,V,-2,V
195
+ 20:51:56,03/03,2001,368645108/-762818121,V,0,I
196
+ 20:51:58,03/03,2005,368471576/-760357244,V,-2,V
197
+ 20:51:58,03/03,4019,368564069/-763031301,V,0,I
198
+ 20:51:58,03/03,1800,368638983/-762821432,V,0,I
199
+ 20:51:58,03/03,1705,368547470/-762030544,V,-2,V
200
+ 20:51:58,03/03,2044,369568567/-763210677,V,0,I
201
+ 20:51:59,03/03,1226,368641166/-762814809,V,0,I
202
+ 20:51:59,03/03,4001,368555566/-763036234,V,-8,V
203
+ 20:52:00,03/03,1204,371606343/-765573131,V,16,V
204
+ 20:52:00,03/03,null,368209385/-761248325,V,0,I
205
+ 20:52:01,03/03,1714,368489114/-762083165,V,0,V
206
+ 20:52:01,03/03,2051,370129252/-763646698,V,0,I
207
+ 20:52:01,03/03,2045,368592745/-762844987,V,0,V
208
+ 20:52:01,03/03,1208,370246525/-763498537,V,-4,V
209
+ 20:52:01,03/03,1215,370312358/-763468514,V,0,V
210
+ 20:52:02,03/03,1245,368639676/-762817399,V,0,I
211
+ 20:52:02,03/03,1202,370128942/-763649992,V,0,I
212
+ 20:52:02,03/03,2026,368550931/-761958077,I,0,I
213
+ 20:52:05,03/03,4010,368640071/-762816247,V,0,I
214
+ 20:52:05,03/03,1221,370590471/-763445424,V,-2,V
215
+ 20:52:06,03/03,1247,368644432/-762813760,V,0,I
216
+ 20:52:06,03/03,null,370127871/-763640132,I,0,I
217
+ 20:52:06,03/03,2008,368645005/-762819565,V,0,I
218
+ 20:52:06,03/03,1210,370622419/-764188733,V,-2,V
219
+ 20:52:06,03/03,1610,370208635/-764257408,V,-3,V
220
+ 20:52:08,03/03,1209,370427751/-762933102,V,-1,V
221
+ 20:52:09,03/03,4000,368589915/-762845686,V,0,V
222
+ 20:52:09,03/03,1905,371933496/-765734951,V,0,I
223
+ 20:52:10,03/03,1501,368639974/-762820143,V,0,I
224
+ 20:52:10,03/03,1218,369838562/-764346635,V,-1,V,103,1,2000
225
+ 20:52:10,03/03,2021,368425522/-759899955,V,-2,V
226
+ 20:52:10,03/03,1206,370128455/-763654765,V,0,I
227
+ 20:52:11,03/03,4030,368956464/-761551586,V,-1,V
228
+ 20:52:11,03/03,2014,369282472/-763175537,V,-6,V
229
+ 20:52:11,03/03,1257,368252901/-762684226,V,-1,V
230
+ 20:52:12,03/03,2024,368486673/-762103006,V,-1,V
231
+ 20:52:12,03/03,901,368527130/-762500307,V,0,I
232
+ 20:52:13,03/03,4005,368877144/-763044456,V,-4,V
233
+ 20:52:13,03/03,1211,370125230/-763651912,V,0,I
234
+ 20:52:13,03/03,1218,369837530/-764348657,V,0,V
235
+ 20:52:15,03/03,2019,368639470/-762822762,V,0,I
236
+ 20:52:15,03/03,1809,368641618/-762816379,V,0,I
237
+ 20:52:16,03/03,1230,368639023/-762819559,V,0,I
238
+ 20:52:16,03/03,2049,370207913/-764334184,V,1,V
239
+ 20:52:17,03/03,1704,368644220/-762815468,V,0,I
240
+ 20:52:18,03/03,2018,368004604/-762302367,V,2,V
241
+ 20:52:18,03/03,1810,368217297/-762719005,V,-4,V
242
+ 20:52:18,03/03,2010,368555486/-763035535,V,0,I
243
+ 20:52:19,03/03,1507,370622792/-764193913,V,-2,V
244
+ 20:52:20,03/03,null,368384091/-762950296,V,0,I
245
+ 20:52:21,03/03,2022,368644793/-762821215,V,0,I
246
+ 20:52:21,03/03,1213,370128931/-763649460,V,0,I
247
+ 20:52:22,03/03,1909,369813644/-764211755,V,-3,V
248
+ 20:52:24,03/03,1205,370125957/-763651963,V,0,I
249
+ 20:52:26,03/03,1710,368660451/-762798102,I,0,I
250
+ 20:52:26,03/03,2041,368639493/-762819163,V,0,I
251
+ 20:52:26,03/03,1902,370128060/-763647878,V,0,I
252
+ 20:52:27,03/03,2034,370006879/-764328919,V,-1,V
253
+ 20:52:27,03/03,2047,370134552/-763650972,V,0,I
254
+ 20:52:28,03/03,2043,369346786/-763179021,V,-1,V
255
+ 20:52:29,03/03,1801,368640077/-762818367,V,0,I
256
+ 20:52:30,03/03,5003,368991982/-762054815,V,0,V
257
+ 20:52:31,03/03,1217,369876085/-764147818,V,-1,V
258
+ 20:52:32,03/03,1702,368641916/-762813703,V,0,I
259
+ 20:52:32,03/03,3007,368472854/-759764485,V,-2,V
260
+ 20:52:32,03/03,2033,369798426/-764230284,V,-2,V
261
+ 20:52:32,03/03,1214,370307058/-763469493,V,0,V
262
+ 20:52:33,03/03,1503,368339091/-762523288,I,0,I
263
+ 20:52:33,03/03,4014,368643028/-762825936,V,0,I
264
+ 20:52:34,03/03,2000,368891141/-762793403,V,-2,V
265
+ 20:52:35,03/03,1601,368642174/-762812065,V,0,I
266
+ 20:52:36,03/03,1709,368644363/-762816751,V,0,I
267
+ 20:52:38,03/03,1250,368641320/-762818029,V,0,I
268
+ 20:52:38,03/03,1908,370130644/-763648600,V,0,I
269
+ 20:52:38,03/03,1233,368642289/-762827414,V,0,I
270
+ 20:52:38,03/03,2029,370316506/-763527271,V,0,V
271
+ 20:52:39,03/03,1802,368639687/-762815846,V,0,I
272
+ 20:52:39,03/03,2036,370127298/-763651866,V,0,I
273
+ 20:52:39,03/03,2030,371046013/-765104492,V,-18,V
274
+ 20:52:40,03/03,5007,368631328/-762847983,V,0,I
275
+ 20:52:40,03/03,1513,370622591/-764190509,V,-3,V
276
+ 20:52:41,03/03,1255,367873609/-761011734,V,2,V
277
+ 20:52:41,03/03,1706,368644403/-762819536,V,0,I
278
+ 20:52:42,03/03,1241,369540818/-762515169,V,-2,V
279
+ 20:52:42,03/03,2025,368474848/-762871205,V,-6,V
280
+ 20:52:42,03/03,4011,368640134/-762815004,V,0,I
281
+ 20:52:43,03/03,1905,371928448/-765744577,V,-28,V,116,1,3330
282
+ 20:52:44,03/03,1509,371432559/-765158688,V,1,V
283
+ 20:52:44,03/03,1901,371053501/-764990960,V,-6,V
284
+ 20:52:45,03/03,4000,368596360/-762845560,V,0,V,18,1,3222
285
+ 20:52:45,03/03,1907,370595863/-764842805,V,-2,V
286
+ 20:52:46,03/03,3033,368477179/-760063689,V,0,I
287
+ 20:52:47,03/03,2015,368534670/-762853552,V,-1,V
288
+ 20:52:48,03/03,4000,368598148/-762846872,V,0,V
289
+ 20:52:48,03/03,1712,369455110/-762736136,V,0,I
290
+ 20:52:48,03/03,3025,369834912/-764351064,V,2,V
291
+ 20:52:48,03/03,2002,368638352/-762808300,V,0,I
292
+ 20:52:48,03/03,3008,368646122/-762814139,V,0,I
293
+ 20:52:49,03/03,1240,368639355/-762818144,V,0,I
294
+ 20:52:49,03/03,3015,368635562/-762802840,V,0,I
295
+ 20:52:49,03/03,1803,368643664/-762818321,V,0,I
296
+ 20:52:50,03/03,1905,371931806/-765737295,V,-23,V,116,1,3330
297
+ 20:52:51,03/03,2028,368668536/-762347138,V,2,V
298
+ 20:52:52,03/03,1905,371934327/-765732184,V,-23,V
299
+ 20:52:53,03/03,1249,369152674/-762123123,V,2,V
300
+ 20:52:54,03/03,2037,370073228/-764438308,V,-1,V
301
+ 20:52:54,03/03,2048,369984769/-764248836,V,-1,V
302
+ 20:52:54,03/03,2012,368545104/-762028424,V,-4,V
303
+ 20:52:55,03/03,2039,370128071/-763645936,V,0,I
304
+ 20:52:55,03/03,1807,368616397/-763026087,V,0,I
305
+ 20:52:56,03/03,3027,368595438/-762842099,V,0,I
306
+ 20:52:56,03/03,2050,370382075/-763809229,V,-2,V
307
+ 20:52:56,03/03,2001,368645108/-762818121,V,0,I
308
+ 20:52:58,03/03,2005,368471576/-760357244,V,-3,V
309
+ 20:52:58,03/03,4019,368578014/-763035117,V,0,I
310
+ 20:52:58,03/03,1800,368638983/-762821432,V,0,I
311
+ 20:52:58,03/03,1705,368569615/-762040966,V,-2,V
312
+ 20:52:58,03/03,1226,368641166/-762814809,V,0,I
313
+ 20:52:58,03/03,2044,369568567/-763210677,V,0,I
314
+ 20:52:59,03/03,2027,368192144/-763062699,V,0,V,45,1,1646
315
+ 20:52:59,03/03,4001,368555566/-763036234,V,-9,V
316
+ 20:53:00,03/03,1204,371587882/-765571664,V,15,V
317
+ 20:53:00,03/03,2027,368188764/-763063347,V,0,V
318
+ 20:53:00,03/03,null,368209385/-761248325,V,0,I
319
+ 20:53:01,03/03,1714,368431142/-762104118,V,1,V
320
+ 20:53:01,03/03,2051,370129252/-763646698,V,0,I
321
+ 20:53:01,03/03,2045,368592745/-762844987,V,0,V
322
+ 20:53:01,03/03,1208,370216267/-763526285,V,-4,V
323
+ 20:53:02,03/03,1245,368639676/-762817399,V,0,I
324
+ 20:53:02,03/03,1202,370128942/-763649992,V,0,I
325
+ 20:53:02,03/03,1215,370312358/-763468514,V,0,V
326
+ 20:53:03,03/03,2026,368508297/-761919986,V,0,I
327
+ 20:53:05,03/03,2045,368592745/-762844987,V,0,V
328
+ 20:53:05,03/03,4010,368640071/-762816247,V,0,I
329
+ 20:53:05,03/03,1221,370616054/-763397943,V,-2,V
330
+ 20:53:06,03/03,1247,368644432/-762813760,V,0,I
331
+ 20:53:06,03/03,null,370127871/-763640132,I,0,I
332
+ 20:53:06,03/03,1210,370622419/-764188733,V,-3,V
333
+ 20:53:06,03/03,2008,368645005/-762819565,V,0,I
334
+ 20:53:06,03/03,1610,370192535/-764297011,V,-3,V
335
+ 20:53:07,03/03,2048,369992017/-764253529,V,-1,V,105,1,2416
336
+ 20:53:08,03/03,1209,370444189/-762973071,V,-1,V
337
+ 20:53:09,03/03,2048,369997340/-764256783,V,-1,V
338
+ 20:53:09,03/03,1241,369529457/-762501464,V,-2,V,1,2,53
339
+ 20:53:10,03/03,2045,368592745/-762844987,V,0,V
340
+ 20:53:10,03/03,1501,368639974/-762820143,V,0,I
341
+ 20:53:10,03/03,2021,368436654/-759836231,V,-2,V
342
+ 20:53:10,03/03,1206,370128455/-763654765,V,0,I
343
+
344
+
345
+ http_version:
346
+ recorded_at: Sun, 04 Mar 2012 01:54:01 GMT
347
+ recorded_with: VCR 2.0.0.rc2
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hrt_bus
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.5
5
+ version: 0.0.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Brian Douglas Smith
@@ -68,7 +68,7 @@ dependencies:
68
68
  type: :runtime
69
69
  version_requirements: *id005
70
70
  - !ruby/object:Gem::Dependency
71
- name: webmock
71
+ name: haversine
72
72
  prerelease: false
73
73
  requirement: &id006 !ruby/object:Gem::Requirement
74
74
  none: false
@@ -76,10 +76,10 @@ dependencies:
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
78
  version: "0"
79
- type: :development
79
+ type: :runtime
80
80
  version_requirements: *id006
81
81
  - !ruby/object:Gem::Dependency
82
- name: rspec
82
+ name: webmock
83
83
  prerelease: false
84
84
  requirement: &id007 !ruby/object:Gem::Requirement
85
85
  none: false
@@ -90,7 +90,7 @@ dependencies:
90
90
  type: :development
91
91
  version_requirements: *id007
92
92
  - !ruby/object:Gem::Dependency
93
- name: interactive_editor
93
+ name: rspec
94
94
  prerelease: false
95
95
  requirement: &id008 !ruby/object:Gem::Requirement
96
96
  none: false
@@ -101,7 +101,7 @@ dependencies:
101
101
  type: :development
102
102
  version_requirements: *id008
103
103
  - !ruby/object:Gem::Dependency
104
- name: awesome_print
104
+ name: interactive_editor
105
105
  prerelease: false
106
106
  requirement: &id009 !ruby/object:Gem::Requirement
107
107
  none: false
@@ -112,7 +112,7 @@ dependencies:
112
112
  type: :development
113
113
  version_requirements: *id009
114
114
  - !ruby/object:Gem::Dependency
115
- name: shoulda
115
+ name: awesome_print
116
116
  prerelease: false
117
117
  requirement: &id010 !ruby/object:Gem::Requirement
118
118
  none: false
@@ -123,7 +123,7 @@ dependencies:
123
123
  type: :development
124
124
  version_requirements: *id010
125
125
  - !ruby/object:Gem::Dependency
126
- name: factory_girl
126
+ name: shoulda
127
127
  prerelease: false
128
128
  requirement: &id011 !ruby/object:Gem::Requirement
129
129
  none: false
@@ -134,7 +134,7 @@ dependencies:
134
134
  type: :development
135
135
  version_requirements: *id011
136
136
  - !ruby/object:Gem::Dependency
137
- name: forgery
137
+ name: factory_girl
138
138
  prerelease: false
139
139
  requirement: &id012 !ruby/object:Gem::Requirement
140
140
  none: false
@@ -144,6 +144,17 @@ dependencies:
144
144
  version: "0"
145
145
  type: :development
146
146
  version_requirements: *id012
147
+ - !ruby/object:Gem::Dependency
148
+ name: forgery
149
+ prerelease: false
150
+ requirement: &id013 !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: "0"
156
+ type: :development
157
+ version_requirements: *id013
147
158
  description: Ruby gem for real-time public HRT bus location data
148
159
  email:
149
160
  - m.b1205@gmail.com
@@ -184,6 +195,8 @@ files:
184
195
  - vcr_cassettes/HrtBus_Bus/all.yml
185
196
  - vcr_cassettes/HrtBus_Bus/static_map.yml
186
197
  - vcr_cassettes/HrtBus_Rider/bus.yml
198
+ - vcr_cassettes/HrtBus_Rider/distance_to_bus.yml
199
+ - vcr_cassettes/HrtBus_Rider/distance_to_bus/when_there_is_NOT_a_bus_for_the_Riders_route.yml
187
200
  homepage: https://github.com/bds/hrt_bus
188
201
  licenses: []
189
202