rtweet (version 0.4.0)

lookup_coords: lookup_coords

Description

Returns lat long coordinates using google geocode api

Usage

lookup_coords(address, components = NULL, ...)

Arguments

address

Desired location, e.g., "lawrence, KS"

components

Unit of analysis for address e.g., "country:US". Potential components include postal_code, country, administrative_area, locality, route.

Additional args passed along to params portion of http request

Value

Numeric vector with lat and long coordinates

Examples

Run this code
# NOT RUN {
lookupcoords("san francisco, CA", "country:US")
# }

Run the code above in your browser using DataLab