mapboxapi icon indicating copy to clipboard operation
mapboxapi copied to clipboard

Error when running `mb_geocode()` with `permanent = TRUE`

Open etiennebacher opened this issue 4 months ago • 0 comments

Hello, specifying permanent = TRUE fails because of this line:

https://github.com/walkerke/mapboxapi/blob/adf13b3f6ab6df1df6608c8a2da069db9d1d5a4f/R/search.R#L53-L58

Reprex:

library(mapboxapi)
#> Usage of the Mapbox APIs is governed by the Mapbox Terms of Service.
#> Please visit https://www.mapbox.com/legal/tos/ for more information.

mb_geocode(
  structured_input = list(
    address_line1 = NA,
    place = NA,
    postcode = NA,
    country = NA
  ),
  permanent = TRUE
)
#> Error in `rlang::warn()`:
#> ! `.frequency_id` must be supplied with `.frequency`.

etiennebacher avatar Aug 28 '25 09:08 etiennebacher