street2coordinates: Converts a street address into useful geographic information.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/functions.R

Description

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

Usage

1
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!

Author(s)

Ryan Elmore

References

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

See Also

getURL, getCurlHandle

Examples

1
2
3
4
	## Not run: 
		street2coordinates("2543 Graystone Place, Simi Valley, CA 93065")
	
## End(Not run)

RDSTK documentation built on May 29, 2017, 8:30 p.m.