geocode error regarding lon data type
- Dominant language
- R
- Stars
- 778
- Forks
- 234
- PR merge metrics
- No merged PRs in 30d
Description
## Reproducible Example
Input:
```r
placenames <- c("College Park, MD", "XFINITY Center")
lonlat <- geocode(placenames)
```
Output:
```
Source : https://maps.googleapis.com/maps/api/geocode/json?address=College+Park,+MD&key=xxx
Source : https://maps.googleapis.com/maps/api/geocode/json?address=XFINITY+Center&key=xxx
"XFINITY Center" not uniquely geocoded, using "885 s main st, mansfield, ma 02048, usa"
Error: Can't convert `$lon` to match type of `$lon` >.
```
Session info:
```r
R version 3.6.0 (2019-04-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ggmap_3.0.0 ggplot2_3.3.2 rtweet_0.7.0 sp_1.4-2
loaded via a namespace (and not attached):
[1] nlme_3.1-139 bitops_1.0-6 BAMMtools_2.1.7 sf_0.9-5
[5] gmodels_2.18.1 RColorBrewer_1.1-2 progress_1.2.2 httr_1.4.2
[9] tools_3.6.0 rgdal_1.5-12 R6_2.4.1 KernSmooth_2.23-15
[13] DBI_1.1.0 colorspace_1.4-1 withr_2.2.0 tidyselect_1.1.0
[17] prettyunits_1.1.1 mnormt_2.0.1 curl_4.3 compiler_3.6.0
[21] rvest_0.3.6 xml2_1.3.2 caTools_1.18.0 scales_1.1.1
[25] classInt_0.4-3 psych_2.0.7 readr_1.3.1 askpass_1.1
[29] rappdirs_0.3.1 digest_0.6.25 stringr_1.4.0 foreign_0.8-71
[33] rio_0.5.16 jpeg_0.1-8.1 dichromat_2.0-0 pkgconfig_2.0.3
[37] tidycensus_0.9.9.5 rlang_0.4.7 readxl_1.3.1 rstudioapi_0.11
[41] generics_0.0.2 jsonlite_1.7.0 gtools_3.8.2 dplyr_1.0.1
[45] zip_2.0.4 car_3.0-8 magrittr_1.5 Rcpp_1.0.5
[49] munsell_0.5.0 ape_5.4 abind_1.4-5 papeR_1.0-4
[53] lifecycle_0.2.0 stringi_1.4.6 carData_3.0-4 MASS_7.3-51.6
[57] plyr_1.8.6 tmaptools_3.1 gplots_3.0.4 grid_3.6.0
[61] maptools_1.0-1 parallel_3.6.0 gdata_2.18.0 promises_1.1.1
[65] forcats_0.5.0 crayon_1.3.4 lattice_0.20-41 stars_0.4-3
[69] haven_2.3.1 hms_0.5.3 tmvnsim_1.0-2 knitr_1.29
[73] pillar_1.4.6 uuid_0.1-4 rjson_0.2.20 XML_3.99-0.5
[77] glue_1.4.1 data.table_1.13.0 png_0.1-7 vctrs_0.3.2
[81] httpuv_1.5.4 RgoogleMaps_1.4.5.3 cellranger_1.1.0 gtable_0.3.0
[85] openssl_1.4.2 purrr_0.3.4 tidyr_1.1.1 xfun_0.16
[89] openxlsx_4.1.5 lwgeom_0.2-5 xtable_1.8-4 e1071_1.7-3
[93] later_1.1.0.1 class_7.3-15 viridisLite_0.3.0 tibble_3.0.3
[97] tigris_1.0 units_0.6-7 ellipsis_0.3.1
```
Any idea what is going on with the error message? Totally lost - seemed to be working fine a few days ago. I can also run requests on a single location, but not on sets of locations.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.