Learn R Programming

charlatan (version 0.2.2)

CoordinateProvider: CoordinateProvider

Description

CoordinateProvider

Arguments

Details

Methods

  • lat() - a latitude value

  • lon() - a longitude value

  • position(bbox) - 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