Learn R Programming

RDSTK (version 1.1)

coordinates2politics: 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.

References

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

See Also

getURL, getCurlHandle

Examples

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

Run the code above in your browser using DataLab