Last data update: 2014.03.03

R: Coverts latitude and longitude coordinates to politics...
coordinates2politicsR Documentation

Coverts latitude and longitude coordinates to politics expressions.

Description

A function to return the countries, states, provinces, cities, constituencies and neighborhoods that the latitude and longitude point lies within (from DSTK website).

Usage

coordinates2politics(latitude, longitude, session=getCurlHandle())

Arguments

latitude

The latitude (numeric) of the point you wish to reference.

longitude

The longitude (numeric) of the point you wish to reference.

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

Returns a JSON string.

Author(s)

Ryan Elmore

References

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

See Also

getURL, getCurlHandle

Examples

	## Not run: 
		coordinates2politics(37.769456, -122.429128)
	
## End(Not run)

Results