travel_time 0.3.0 → 0.3.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 +1 -1
- data/lib/travel_time/client.rb +3 -2
- 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: ede2b3ca9b12f1d411227a72ecf78374b4c2e2440bd554750de51b5aa828c841
|
4
|
+
data.tar.gz: 37aec14a1fd0e9c09cd8d101dbbad7cc297b60abc27a596b980cd9884e64ebf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64831cb1d98876a2aab320c84dfc5b59ed27174c319810bac81800da4fd1a2a9cab0330737b393fd27fc7737cd44c0ccc8d14effbcea342bacbfdaf1f68b9da5
|
7
|
+
data.tar.gz: 923ac3cea840237a5e35eb8e4333cec5f84eea8b267851131a246b5f70841a7866205d236f53bbd7c084e10e97680054f275b6a8faf16eb9c73882a099407a01
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
[](https://github.com/traveltime-dev/traveltime-sdk-ruby/actions?query=workflow%3ACI)
|
5
5
|
|
6
6
|
|
7
|
-
This open-source library allows you to access [TravelTime API](
|
7
|
+
This open-source library allows you to access [TravelTime API](https://docs.traveltime.com/overview/introduction)
|
8
8
|
endpoints.
|
9
9
|
|
10
10
|
## Installation
|
data/lib/travel_time/client.rb
CHANGED
@@ -43,13 +43,14 @@ module TravelTime
|
|
43
43
|
perform_request { connection.post('supported-locations', { locations: locations }) }
|
44
44
|
end
|
45
45
|
|
46
|
-
def geocoding(query:, within_country: nil, exclude: nil, limit: nil, force_postcode: nil)
|
46
|
+
def geocoding(query:, within_country: nil, exclude: nil, limit: nil, force_postcode: nil, bounds: nil)
|
47
47
|
query = {
|
48
48
|
query: query,
|
49
49
|
'within.country': within_country,
|
50
50
|
'exclude.location.types': exclude,
|
51
51
|
limit: limit,
|
52
|
-
'force.add.postcode': force_postcode
|
52
|
+
'force.add.postcode': force_postcode,
|
53
|
+
bounds: bounds ? bounds.join(',') : nil
|
53
54
|
}.compact
|
54
55
|
perform_request { connection.get('geocoding/search', query) }
|
55
56
|
end
|
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.3.
|
4
|
+
version: 0.3.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: 2022-
|
11
|
+
date: 2022-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|