Learn R Programming

wklsr (version 0.2.6)

wkls: Well-Known Locations Object

Description

The main entry point for accessing global administrative boundaries. Chain country, region, and city codes to retrieve geographical data.

Usage

wkls

Arguments

Format

A wkls_proxy object

Examples

Run this code
# \donttest{
# Get country geometry
wkls$us$wkt()

# Get region geometry
wkls$us$ca$geojson()

# Get city geometry
wkls$us$ca$sanfrancisco$wkt()

# List all countries
wkls$countries()

# List regions in a country
wkls$us$regions()
# }

Run the code above in your browser using DataLab