Learn R Programming

charlatan (version 0.1.0)

CoordinateProvider: CoordinateProvider

Description

CoordinateProvider

Arguments

Details

Methods

lat()

a latitude value

lon()

a longitude value

position()

a position, of form [longitude,latitude]

  • bbox: optionally, specify a bounding box for the position to be in, of the form [west,south,east,north] - checks that the bbox has valid values for lat and long

Examples

Run this code
# NOT RUN {
z <- CoordinateProvider$new()
z$lon()
z$lat()
z$position()
z$position(bbox = c(-120, 30, -110, 60))
# }

Run the code above in your browser using DataLab