Skip to content

Commit d97f354

Browse files
authored
quick get works again
- quick get works again with new request signing API - added spod_quick_get_zones
1 parent f8e432c commit d97f354

File tree

14 files changed

+427
-219
lines changed

14 files changed

+427
-219
lines changed

DESCRIPTION

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,19 @@ Imports:
3131
checkmate,
3232
curl (>= 5.0.0),
3333
DBI,
34+
digest,
3435
dplyr,
3536
duckdb (>= 0.5.0),
3637
fs,
3738
glue,
3839
here,
3940
httr2,
41+
jsonlite,
4042
lifecycle,
4143
lubridate,
44+
memoise,
4245
memuse,
46+
openssl,
4347
parallelly,
4448
purrr,
4549
readr,

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ export(spod_get_data_dir)
1212
export(spod_get_valid_dates)
1313
export(spod_get_zones)
1414
export(spod_quick_get_od)
15+
export(spod_quick_get_zones)
1516
export(spod_set_data_dir)
1617
importFrom(lifecycle,deprecated)
18+
importFrom(memoise,memoise)
1719
importFrom(rlang,.data)
1820
importFrom(stats,median)
1921
importFrom(utils,URLencode)

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# spanishoddata (development version)
22

3+
## New features
4+
5+
* `spod_quick_get_zones()` is a new function to quickly get municipality geometries to match with the data retrieved with `spod_quick_get_od()` [#163](https://github.com/rOpenSpain/spanishoddata/pull/163). Requests to get geometies are cached in memory of the current R session with `memoise` package.
6+
37
## Bug fixes
48

9+
* `spod_quick_get_od()` is working again. We fixed it to work with the updated API of the Spanish Ministry of Transport (PR [#163](https://github.com/rOpenSpain/spanishoddata/pull/163), issue [#162](https://github.com/rOpenSpain/spanishoddata/issues/162)). It will remain experimental, as the API may change in the future.
10+
511
* `spod_convert()` can now accept `overwrite = 'update'` with `save_format = 'parquet'` ([#161](https://github.com/rOpenSpain/spanishoddata/pull/161)) previously it failed because of the incorrect check that asserted only `TRUE` or `FALSE` ([#160](https://github.com/rOpenSpain/spanishoddata/issues/160))
612

713
# spanishoddata 0.1.1

0 commit comments

Comments
 (0)