gio_batch_geocode: Geocode up to 10,000 addresses

Description Usage Arguments Details Value References Examples

View source: R/geocod-batch.R

Description

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

Usage

1
gio_batch_geocode(addresses, fields, api_key = gio_auth())

Arguments

addresses

character vector of addresses (10K max)

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

Details

You can also geocode intersections. Just specify the two streets that you want to geocode in your query.

Value

tibble

References

Official Geocodio API documentation

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
addresses <- c(
  "1109 N Highland St, Arlington VA",
  "525 University Ave, Toronto, ON, Canada",
  "4410 S Highway 17 92, Casselberry FL",
  "15000 NE 24th Street, Redmond WA",
  "17015 Walnut Grove Drive, Morgan Hill CA"
)

gio_batch_geocode(addresses)
gio_batch_geocode(addresses, fields=c("cd", "stateleg"))

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