travel_time 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/travel_time/client.rb +2 -3
- data/lib/travel_time/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7806c052f2b4857a08bc6d0f7b837bb97ac8ad59dede5ccc31c184b286da7f0e
|
|
4
|
+
data.tar.gz: e430a1a07c86b58b0da059b68bec0c2f6d80e1a30d58fb8f063ef5f23cd25357
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e99e0868f46c664a8cb2b7b430f3b05c111f235bf6ce19069b8b0d9ffab3301cc390fd85ca1c653ef1bd3fb3ad54f006018e0c6a6e8f2bd9b67de7938cf7e1ed
|
|
7
|
+
data.tar.gz: 6c7ef8ccb25d3bc4a7190f647e0a786a31f97b30c19a1b14383565eb00513d6471081c4c677bc48b6167d03cc9a0ef1dee699f8017ff746d7b4014c94d3c3a2b
|
data/README.md
CHANGED
|
@@ -401,7 +401,7 @@ destinations = [{
|
|
|
401
401
|
}]
|
|
402
402
|
|
|
403
403
|
response = client.time_filter_fast_proto(
|
|
404
|
-
country: '
|
|
404
|
+
country: 'uk',
|
|
405
405
|
origin: origin,
|
|
406
406
|
destinations: destinations,
|
|
407
407
|
transport: 'driving+ferry',
|
|
@@ -427,10 +427,10 @@ origins = [
|
|
|
427
427
|
]
|
|
428
428
|
|
|
429
429
|
response = client.time_filter_fast_proto(
|
|
430
|
-
country: '
|
|
430
|
+
country: 'uk',
|
|
431
431
|
origin: arrival, # arrival/destination point
|
|
432
432
|
destinations: origins, # departure/origin points
|
|
433
|
-
transport: '
|
|
433
|
+
transport: 'pt',
|
|
434
434
|
traveltime: 3600,
|
|
435
435
|
request_type: TravelTime::ProtoUtils::MANY_TO_ONE
|
|
436
436
|
)
|
|
@@ -446,7 +446,7 @@ support extra configuration parameters.
|
|
|
446
446
|
|
|
447
447
|
```ruby
|
|
448
448
|
response = client.time_filter_fast_proto(
|
|
449
|
-
country: '
|
|
449
|
+
country: 'uk',
|
|
450
450
|
origin: origin,
|
|
451
451
|
destinations: destinations,
|
|
452
452
|
transport: {
|
|
@@ -465,7 +465,7 @@ response = client.time_filter_fast_proto(
|
|
|
465
465
|
|
|
466
466
|
```ruby
|
|
467
467
|
response = client.time_filter_fast_proto(
|
|
468
|
-
country: '
|
|
468
|
+
country: 'uk',
|
|
469
469
|
origin: origin,
|
|
470
470
|
destinations: destinations,
|
|
471
471
|
transport: {
|
data/lib/travel_time/client.rb
CHANGED
|
@@ -159,9 +159,8 @@ module TravelTime
|
|
|
159
159
|
message = ProtoUtils.make_proto_message(origin, destinations, transport_obj, traveltime,
|
|
160
160
|
properties: properties, request_type: request_type)
|
|
161
161
|
payload = ProtoUtils.encode_proto_message(message)
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
end
|
|
162
|
+
path = "#{PROTO_BASE_URL}#{country.to_s.downcase}/time-filter/fast/#{transport_obj.url_name}"
|
|
163
|
+
perform_request_proto { proto_connection.post(path, payload) }
|
|
165
164
|
end
|
|
166
165
|
|
|
167
166
|
def time_filter_postcodes(departure_searches: nil, arrival_searches: nil)
|
data/lib/travel_time/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: travel_time
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TravelTime Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|