gio_batch_reverse: Reverse geocode up to 10,000 coordinates

Description Usage Arguments Value References Examples

View source: R/geocod-reverse-batch.R

Description

If you have several addresses that you need to reverse geocode, batch rev-geocoding is a much faster option since it removes the overhead of having to perform multiple HTTP requests.

Usage

1
gio_batch_reverse(coordinates, fields, api_key = gio_auth())

Arguments

coordinates

data frame with coordinates in lat and lon columns

fields

vector of additional fields to return with query results. Note that these count as extra lookups and impact your dailu quota/costs. See the official documentation for more information on costs/pricing. Can be cd, cd113, cd114, or cd115 for current or historical Congressional districts (U.S.); stateleg for State Legislative District (House & Senate, U.S.); school forSchool District (elementary/secondary or unified, U.S.); census for Census Block/Tract & FIPS codes (U.S.) or timezone for timezone.

api_key

geocod.io API key

Value

tibble

References

Official Geocodio API documentation

Examples

1
2
3
4
5
6
data.frame(
  lat = c(35.9746000, 32.8793700, 33.8337100, 35.4171240),
  lon = c(-77.9658000, -96.6303900, -117.8362320, -80.6784760)
) -> to_code
gio_batch_reverse(to_code)
gio_batch_reverse(to_code, fields=c("census", "stateleg"))

hrbrmstr/rgeocodio documentation built on May 17, 2020, 3:37 a.m.