citi_bike_directions 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/citi_bike_directions.rb +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWY1MmJhYTQ0MTgzNDA3MTAzMjA3MzAyN2JlMjE1YzE4YmNlNTAzYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTM0MjhkODk1NDBjNDQzYzQwOThhNmVlNWY1ZGNhNDk2ZjM1MDBjYQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWVmODdiNmU1MWU0MTU0ODg5ZjQzZGI1YTQyOTY1NTA1NzdkZmYzZjE0Nzhm
|
10
|
+
NzE0NjcwOWM5YjUzYTlkNzc0OGVmZDVhZjg3NWI4YjQzNGMzNDJjYzEyMDE4
|
11
|
+
MGUxMmU4N2U4Y2JkMjUxZWIyYjU2ZjU3ZTNlNzZiOGJmNTgwMDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWRiZjRjNTJjMGJjY2EwMDhjZGE5YzRkN2Y2NTIxMDdiODAwMGNiNThkZmVk
|
14
|
+
MmFjYjA1OGZjNTkyZmI2N2UzMmM5ZmMyMTY5Mjk1OWJkYWI5NmRjYzBlNmI3
|
15
|
+
ZWYwNzFhNzA2ZTE5YzA5Yjc2Mzc4ZmMyNjJlNjk2ZGJjY2U2M2E=
|
data/lib/citi_bike_directions.rb
CHANGED
@@ -53,9 +53,8 @@ class CitiBikeDirections
|
|
53
53
|
biking_directions = get_biking_directions("#{nearest_bike['latitude']},#{nearest_bike['longitude']}",
|
54
54
|
"#{nearest_dock['latitude']},#{nearest_dock['longitude']}")
|
55
55
|
|
56
|
-
walking_directions[
|
57
|
-
|
58
|
-
walking_directions.to_json
|
56
|
+
directions = [walking_directions[0]].concat(biking_directions) << (walking_directions[2])
|
57
|
+
directions.to_json
|
59
58
|
end
|
60
59
|
|
61
60
|
private
|