Learn R Programming

RDSTK (version 1.1)

street2coordinates: Converts a street address into useful geographic information.

Description

This function returns a host of geographic information related to a given street address.

Usage

street2coordinates(address, session=getCurlHandle())

Arguments

address
A text string giving a street address.
session
This is the CURLHandle object giving the structure for the options and that will process the command. For curlMultiPerform, this is an object of class code MultiCURLHandle-class.

Value

A data frame containing:
full.address
The complete address that was analyzed.
country_name
The country of the address.
longitude
The longitude associate with the address.
fips_county
The fips county of the address. WTF?
region
The region of the address (state in US).
locality
The locality (city in US) of the address.
confidence
The degree of confidence associated with retrieving the address' information. Presumable near one is good.
street_address
Exactly as it sounds.
country_code
Country code of the address.
street number
The street number of the address.
country_code3
For those times when 2 just ain't enough!
country_code
Country code of the address.
latitude
The latitude of the address.
street_name
Why are you still reading this? It's a street name!

References

http://www.datasciencetoolkit.org/developerdocs#street2coordinates

See Also

getURL, getCurlHandle

Examples

Run this code
	## Not run: 
# 		street2coordinates("2543 Graystone Place, Simi Valley, CA 93065")
# 	## End(Not run)

Run the code above in your browser using DataLab