diff --git a/R/geo.R b/R/geo.R index 165f2026..3101200a 100644 --- a/R/geo.R +++ b/R/geo.R @@ -131,6 +131,8 @@ progress_geo <- function(pb = NULL, ...) { #' @return tibble (dataframe) #' @examples #' \donttest{ +#' options(tidygeocoder.progress_bar = FALSE) +#' #' geo(street = "600 Peachtree Street NE", city = "Atlanta", #' state = "Georgia", method = "census") #' diff --git a/R/reverse_geo.R b/R/reverse_geo.R index 063cbc81..0e7e1281 100644 --- a/R/reverse_geo.R +++ b/R/reverse_geo.R @@ -87,6 +87,8 @@ get_coord_parameters <- function(custom_query, method, lat, long) { #' @inherit geo return #' @examples #' \donttest{ +#' options(tidygeocoder.progress_bar = FALSE) +#' #' reverse_geo(lat = 38.895865, long = -77.0307713, method = 'osm') #' #' reverse_geo( diff --git a/docs/reference/geo.html b/docs/reference/geo.html index 6a711286..7a3d1a18 100644 --- a/docs/reference/geo.html +++ b/docs/reference/geo.html @@ -405,7 +405,7 @@
list(geocodio_v = 1.6, geocodio_hipaa = TRUE)
). Each parameter begins
with the name of the method
(service) it applies to. The possible parameters
are shown below with their default values.census_return_type
(default: "locations"
): set to "geographies" to return
+
census_return_type
(default: "locations"
): set to "geographies"
to return
additional geography columns. Make sure to use full_results = TRUE
if using
the "geographies" setting.
iq_region
(default: "us"
): set to "eu" to use the European Union API endpoint
# \donttest{ +options(tidygeocoder.progress_bar = FALSE) + geo(street = "600 Peachtree Street NE", city = "Atlanta", state = "Georgia", method = "census") -#>#>#>#>#>#>#> # A tibble: 1 × 5 +#>#>#> # A tibble: 1 × 5 #> street city state lat long #> <chr> <chr> <chr> <dbl> <dbl> #> 1 600 Peachtree Street NE Atlanta Georgia 33.8 -84.4#>#>#>#>#>#>#>#>#>#>#> # A tibble: 3 × 3 +#>#>#> # A tibble: 3 × 3 #> address lat long #> <chr> <dbl> <dbl> #> 1 Tokyo, Japan 35.7 140. @@ -482,7 +484,7 @@Examp #> 3 Nairobi, Kenya -1.28 36.8
geo("100 Main St New York, NY", full_results = TRUE, method = "census", api_options = list(census_return_type = 'geographies')) -#>#>#>#>#>#>#> # A tibble: 1 × 28 +#>#>#> # A tibble: 1 × 28 #> address lat long matchedAddress tigerLine.tiger… tigerLine.side #> <chr> <dbl> <dbl> <chr> <chr> <chr> #> 1 100 Main St New York, NY 40.7 -74.0 100 MAIN ST, … 59662602 R @@ -495,7 +497,7 @@Examp #> # addressComponents.state <chr>, addressComponents.zip <chr>, …
geo(county = 'Jefferson', state = "Kentucky", country = "US", method = 'osm') -#>#>#>#>#>#>#> # A tibble: 1 × 5 +#>#>#> # A tibble: 1 × 5 #> county state country lat long #> <chr> <chr> <chr> <dbl> <dbl> #> 1 Jefferson Kentucky US 38.2 -85.7# } diff --git a/docs/reference/geo_combine.html b/docs/reference/geo_combine.html index 72f798f0..e9e6f680 100644 --- a/docs/reference/geo_combine.html +++ b/docs/reference/geo_combine.html @@ -48,8 +48,8 @@ @@ -92,7 +92,7 @@@@ -183,8 +183,8 @@Combine multiple geocoding queries
@@ -209,7 +209,7 @@Passes address inputs in character vector form to the geocode_combine function for geocoding.
-Note that address inputs must be specified for queries either in
queries
(for each query) -orglobal_params
(for all queries). For exampleglobal_params = list(address = 'address')
+Note that address inputs must be specified for queries either with the
queries
parameter (for each query) +or theglobal_params
parameter (for all queries). For exampleglobal_params = list(address = 'address')
passes addresses provided in theaddress
parameter to all queries.Arg
queries a list of queries, each provided as a list of parameters. The queries are -executed in the order provided by the geocode function. +executed by the geocode function in the order provided. (ex.
list(list(method = 'osm'), list(method = 'census'), ...)
)@@ -282,11 +282,11 @@ Examp address = example_addresses, global_params = list(address = 'address') ) -
#>#>#>#>#>#>#> # A tibble: 3 × 4 +#>#>#>#>#>#>#> # A tibble: 3 × 4 #> address lat long query #> <chr> <dbl> <dbl> <chr> #> 1 100 Main St New York, NY 40.7 -74.0 "census" -#> 2 Paris 48.9 2.35 "osm" +#> 2 Paris 48.9 2.32 "osm" #> 3 Not a Real Address NA NA ""#>#>#>#>#>#>#>#>#>#> $arcgis +#>#>#>#>#>#>#>#>#>#> $arcgis #> # A tibble: 3 × 3 #> address lat long #> <chr> <dbl> <dbl> @@ -332,7 +332,7 @@Examp country = c('Japan', 'United States'), cascade = FALSE ) -
#>#>#>#>#>#>#> # A tibble: 4 × 5 +#>#>#>#>#>#>#> # A tibble: 4 × 5 #> city country lat long query #> <chr> <chr> <dbl> <dbl> <chr> #> 1 Tokyo Japan 35.7 140. arcgis diff --git a/docs/reference/geocode_combine.html b/docs/reference/geocode_combine.html index 90d03d9b..74ff5eea 100644 --- a/docs/reference/geocode_combine.html +++ b/docs/reference/geocode_combine.html @@ -97,7 +97,7 @@@@ -219,7 +219,7 @@Arg
queries a list of queries, each provided as a list of parameters. The queries are -executed in the order provided by the geocode function. +executed by the geocode function in the order provided. (ex.
list(list(method = 'osm'), list(method = 'census'), ...)
)@@ -269,18 +269,18 @@ Examp geocode_combine( queries = list(list(method = 'census'), list(method = 'osm')), global_params = list(address = 'addr'), cascade = TRUE) -
#>#>#>#>#>#>#> # A tibble: 9 × 5 -#> name addr lat long query -#> <chr> <chr> <dbl> <dbl> <chr> -#> 1 White House 1600 Pennsylvania Ave NW Washington, … 38.9 -77.0 cens… -#> 2 Transamerica Pyramid 600 Montgomery St, San Francisco, CA … 37.8 -122. cens… -#> 3 NY Stock Exchange 11 Wall Street, New York, New York 40.7 -74.0 cens… -#> 4 Willis Tower 233 S Wacker Dr, Chicago, IL 60606 41.9 -87.6 cens… -#> 5 Chateau Frontenac 1 Rue des Carrieres, Quebec, QC G1R 4… 46.8 -71.2 osm -#> 6 Nashville Nashville, TN 36.2 -86.8 osm -#> 7 Nairobi Nairobi, Kenya -1.30 36.8 osm -#> 8 Istanbul Istanbul, Turkey 41.0 29.0 osm -#> 9 Tokyo Tokyo, Japan 35.7 140. osm+#>#>#>#>#>#>#> # A tibble: 9 × 5 +#> name addr lat long query +#> <chr> <chr> <dbl> <dbl> <chr> +#> 1 White House 1600 Pennsylvania Ave NW Washington… 38.9 -77.0 "censu… +#> 2 Transamerica Pyramid 600 Montgomery St, San Francisco, C… 37.8 -122. "censu… +#> 3 NY Stock Exchange 11 Wall Street, New York, New York 40.7 -74.0 "censu… +#> 4 Willis Tower 233 S Wacker Dr, Chicago, IL 60606 41.9 -87.6 "censu… +#> 5 Chateau Frontenac 1 Rue des Carrieres, Quebec, QC G1R… NA NA "" +#> 6 Nashville Nashville, TN 36.2 -86.8 "osm" +#> 7 Nairobi Nairobi, Kenya -1.28 36.8 "osm" +#> 8 Istanbul Istanbul, Turkey 41.0 29.0 "osm" +#> 9 Tokyo Tokyo, Japan 35.7 140. "osm"more_addresses <- tibble::tribble( ~street_address, ~city, ~state, ~zip_cd, "624 W DAVIS ST #1D", "BURLINGTON", "NC", 27215, @@ -300,13 +300,13 @@Examp city = 'city', state = 'state', postalcode = 'zip_cd'), query_names = c('census batch', 'census single', 'osm') ) -
#>#>#>#>#>#>#>#>#>#> # A tibble: 4 × 7 +#>#>#>#>#>#>#>#>#>#> # A tibble: 4 × 7 #> street_address city state zip_cd lat long query #> <chr> <chr> <chr> <dbl> <dbl> <dbl> <chr> -#> 1 624 W DAVIS ST #1D BURLINGTON NC 27215 36.1 -79.4 census single -#> 2 201 E CENTER ST #268 MEBANE NC 27302 36.1 -79.3 census single -#> 3 100 Wall Street New York NY 10005 40.7 -74.0 census batch -#> 4 Bucharest NA NA NA 50.4 -4.13 osm+#> 1 624 W DAVIS ST #1D BURLINGTON NC 27215 36.1 -79.4 census single +#> 2 201 E CENTER ST #268 MEBANE NC 27302 36.1 -79.3 census single +#> 3 100 Wall Street New York NY 10005 40.7 -74.0 census batch +#> 4 Bucharest NA NA NA 33.5 -117. osmmore_addresses %>% geocode_combine( queries = list( @@ -317,7 +317,7 @@Examp cascade = FALSE, return_list = TRUE ) -
#>#>#>#>#>#>#> $census +#>#>#>#>#>#>#> $census #> # A tibble: 4 × 6 #> street_address city state zip_cd lat long #> <chr> <chr> <chr> <dbl> <dbl> <dbl> diff --git a/docs/reference/reverse_geo.html b/docs/reference/reverse_geo.html index a9e82bb8..c8982ef1 100644 --- a/docs/reference/reverse_geo.html +++ b/docs/reference/reverse_geo.html @@ -349,7 +349,7 @@diff --git a/man/geo.Rd b/man/geo.Rd index a81ff390..a350a981 100644 --- a/man/geo.Rd +++ b/man/geo.Rd @@ -209,6 +209,8 @@ API queries. } \examples{ \donttest{ +options(tidygeocoder.progress_bar = FALSE) + geo(street = "600 Peachtree Street NE", city = "Atlanta", state = "Georgia", method = "census") diff --git a/man/reverse_geo.Rd b/man/reverse_geo.Rd index 027cae1b..cf8b7f33 100644 --- a/man/reverse_geo.Rd +++ b/man/reverse_geo.Rd @@ -163,6 +163,8 @@ API queries. } \examples{ \donttest{ +options(tidygeocoder.progress_bar = FALSE) + reverse_geo(lat = 38.895865, long = -77.0307713, method = 'osm') reverse_geo(Arg (ex.
list(geocodio_v = 1.6, geocodio_hipaa = TRUE)
). Each parameter begins with the name of themethod
(service) it applies to. The possible parameters are shown below with their default values.-
census_return_type
(default:"locations"
): set to "geographies" to return +
census_return_type
(default:"locations"
): set to"geographies"
to return additional geography columns. Make sure to usefull_results = TRUE
if using the "geographies" setting.- @@ -400,8 +400,10 @@
iq_region
(default:"us"
): set to "eu" to use the European Union API endpointSee a
Examples
# \donttest{ +options(tidygeocoder.progress_bar = FALSE) + reverse_geo(lat = 38.895865, long = -77.0307713, method = 'osm') -#>#>#>#>#>#>#> # A tibble: 1 × 3 +#>#>#> # A tibble: 1 × 3 #> lat long address #> <dbl> <dbl> <chr> #> 1 38.9 -77.0 L’Enfant's plan, Pennsylvania Avenue, Washington, District of Col…@@ -410,7 +412,7 @@Examp long = c(-77.0307713, -79.3839347, 600), method = 'osm', full_results = TRUE ) -
#>#>#>#>#>#>#>#>#> # A tibble: 3 × 22 +#>#>#> # A tibble: 3 × 22 #> lat long address place_id licence osm_type osm_id osm_lat osm_lon tourism #> <dbl> <dbl> <chr> <int> <chr> <chr> <int> <chr> <chr> <chr> #> 1 38.9 -77.0 L’Enfan… 2.71e8 Data ©… way 9.00e8 38.895… -77.03… L’Enfa… diff --git a/docs/reference/tidygeocoder-package.html b/docs/reference/tidygeocoder-package.html index 63fde2a3..3285b2cc 100644 --- a/docs/reference/tidygeocoder-package.html +++ b/docs/reference/tidygeocoder-package.html @@ -49,7 +49,7 @@ @@ -92,7 +92,7 @@@@ -184,7 +184,7 @@The tidygeocoder package makes getting data from geocoder services easy.
The geocode and geo functions are for forward geocoding while the reverse_geocode and reverse_geo functions are for reverse geocoding. Refer to the documentation on themethod
argument in the geo and reverse_geo functions -for more details on the available geocoder services. Also seevignette("tidygeocoder")
+for more details on the available geocoding services. Also seevignette("tidygeocoder")
for example usage.