routific 1.7.2 → 1.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/lib/routific/options.rb +1 -1
- data/lib/routific/route.rb +2 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d5b77393bd7c50e85ac3e65b2f7aaed033772f9
|
4
|
+
data.tar.gz: 2546bb042afb857ee097477829948c56fb40dce5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dd1656ea6e5d0f057400c9b069ee66fdff9f0bf8b1a3392965ee9f2957c43bf4572349466d374d34e31d17bf699c383469ced93ee9109d9e261323b9aede590
|
7
|
+
data.tar.gz: eea764ec2b0dea231714b2799e5b3c9a5c3545db8908ff7ab0c0be26162b43d48c754f5afaa8c7e83495ce2c1b55b6fea4928f4f24075e4e68087221527aa70d
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@ Routific Ruby Gem
|
|
3
3
|
|
4
4
|
[![Build Status](https://travis-ci.org/routific/routific-gem.svg?branch=master)](https://travis-ci.org/routific/routific-gem)
|
5
5
|
|
6
|
-
This Ruby Gem assists users to easily access the [Routific API][1], which is a practical and scalable solution to the Vehicle Routing Problem.
|
6
|
+
This Ruby Gem assists users to easily access the [Routific API][1], which is a practical and scalable solution to the Vehicle Routing Problem and Traveling Salesman Problem.
|
7
7
|
|
8
8
|
[1]: https://routific.com/developers
|
9
9
|
|
@@ -60,11 +60,16 @@ routific.set_vehicle("vehicle_1", {
|
|
60
60
|
"shift_end" => "12:00",
|
61
61
|
})
|
62
62
|
|
63
|
+
routific.set_options({
|
64
|
+
"polylines" => true
|
65
|
+
})
|
66
|
+
|
63
67
|
route = routific.get_route()
|
64
68
|
|
65
69
|
|
66
70
|
puts route.status # => "success"
|
67
71
|
puts route.total_travel_time # => 29
|
72
|
+
puts route.polylines["vehicle_1"] # => s`i}|AbxswiFnn@gdBvG?vVf@jC?nZRb[f@j\z@nZRnZRj\f@nZz
|
68
73
|
|
69
74
|
vehicle_routes = route.vehicle_routes
|
70
75
|
|
data/lib/routific/options.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module RoutificApi
|
2
2
|
# This class represents a set of options for the request
|
3
3
|
class Options
|
4
|
-
VALID_PARAMS = %w{ traffic min_visits_per_vehicle balance min_vehicles shortest_distance squash_durations max_vehicle_overtime max_visit_lateness }
|
4
|
+
VALID_PARAMS = %w{ traffic min_visits_per_vehicle balance min_vehicles shortest_distance squash_durations max_vehicle_overtime max_visit_lateness polylines }
|
5
5
|
|
6
6
|
attr_reader *VALID_PARAMS
|
7
7
|
|
data/lib/routific/route.rb
CHANGED
@@ -8,7 +8,8 @@ module RoutificApi
|
|
8
8
|
:total_working_time, :total_travel_time,
|
9
9
|
:total_break_time, :total_idle_time,
|
10
10
|
:total_visit_lateness, :num_late_visits,
|
11
|
-
:vehicle_overtime, :total_vehicle_overtime
|
11
|
+
:vehicle_overtime, :total_vehicle_overtime,
|
12
|
+
:polylines,
|
12
13
|
]
|
13
14
|
|
14
15
|
attr_reader *FIELDS
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: routific
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Routific
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.0.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.0.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|