geocodeLocation: Geocode Location

View source: R/locations.R

geocodeLocationR Documentation

Geocode Location

Description

Lookup the coordinates and elevation for the specified location. The location text will be parsed by DataScienceToolkit's 'street2coordinates' API into coordinates and the elevation will be queried using the 'coordinates2statistics' API.

Usage

geocodeLocation(location)

Arguments

location

Location to parse (ie Ithaca, NY; Caldwell Dr, Ithaca, NY; etc...)

Value

A list with components:

latitude

Location latitude (decimal degrees)

longitude

Location longitude (decimal degrees)

altitude

Location elevation (meters)

See Also

Other Location: Location-class, Location, buildLocationTemplate(), getCountryCodes(), getLocationTypes(), lookupNOAAStationID(), writeLocationTemplate()

Examples

caldwell <- geocodeLocation("2 Caldwell Dr, Ithaca, NY")
lat <- caldwell$latitude
lon <- caldwell$longitude
alt <- caldwell$altitude


TriticeaeToolbox/breedbase.R documentation built on March 23, 2024, 10:29 a.m.