Queries the Placekey API and, if successful, returns a placekey. See https://docs.placekey.io/ for more information.
get_placekey( location_name = NULL, street_address = NULL, city = NULL, region = NULL, postal_code = NULL, iso_country_code = NULL, strict_address_match = FALSE, strict_name_match = FALSE, key = Sys.getenv("PLACEKEY_SECRET"), ... ) # S3 method for data.frame get_placekey(.data, strict_name_match, strict_address_match) # S3 method for list get_placekey(.list, strict_name_match, strict_address_match)
The name of the place.
The streed address of the place.
The city where the place is located.
The second-level administrative region below nation for the place. In the US, this is the state.
The postal code for the place.
The ISO 2-letter Country Code for the place. Currently may only be US.
If set to `TRUE`, a Placekey is only returned if all fields identify the place as being at the exact address specified. If set to `FALSE`, the Placekey returned may ignore unit/apartment/floor information. Optional. Default `FALSE`.
If set to `TRUE`, a Placekey is only returned if all fields identify the POI as having the exact name specified. Optional. Default `FALSE`.
A dataframe containing the columns `street_address`, `city`, `region`, `postal_code`, and `iso_country_code`.
A named list elements named `street_address`, `city`, `region`, `postal_code`, and `iso_country_code`.