Learn R Programming

smappR (version 0.5)

getGeo: Returns geographic information about a location string

Description

getGeo connects to the Data Science Tool Kit and converts the location string into a pair of coordinates, and then into information (city, state, country, congressional district...) for those coordinates

Usage

getGeo(location, verbose = FALSE, rdstk = "http://www.datasciencetoolkit.org", twofishes = "http://demo.twofishes.net/?autocomplete=true&maxInterpretations=1&")

Arguments

location
location string for which information is desired
verbose
If TRUE, provides additional information on console.
rdstk
URL for data science toolkit
twofishes
URL for twofishes geocoder

Examples

Run this code
## Not run: 
# ## Download geographic information for "New York"
#  getGeo("New York")
# ## End(Not run)

Run the code above in your browser using DataLab