Learn R Programming

zipcodeR (version 0.3.5)

geocode_zip: Returns that lat / lon pair of the centroid of a given ZIP code

Description

Returns that lat / lon pair of the centroid of a given ZIP code

Usage

geocode_zip(zip_code)

Value

tibble of lat lon coordinates

Arguments

zip_code

A 5-digit U.S. ZIP code

Examples

Run this code
geocode_zip("07762")
geocode_zip("90210")
geocode_zip("90210")$lat
geocode_zip("90210")$lng

Run the code above in your browser using DataLab