powered by
Returns lat long coordinates using google geocode api
lookup_coords(address, components = NULL, ...)
Desired location, e.g., "lawrence, KS"
"lawrence, KS"
Unit of analysis for address e.g., "country:US". Potential components include postal_code, country, administrative_area, locality, route.
"country:US"
Additional args passed along to params portion of http request
Numeric vector with lat and long coordinates
# NOT RUN { lookupcoords("san francisco, CA", "country:US") # }
Run the code above in your browser using DataLab