geocodeLocation | R Documentation |
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.
geocodeLocation(location)
location |
Location to parse (ie Ithaca, NY; Caldwell Dr, Ithaca, NY; etc...) |
A list with components:
Location latitude (decimal degrees)
Location longitude (decimal degrees)
Location elevation (meters)
Other Location:
Location-class
,
Location
,
buildLocationTemplate()
,
getCountryCodes()
,
getLocationTypes()
,
lookupNOAAStationID()
,
writeLocationTemplate()
caldwell <- geocodeLocation("2 Caldwell Dr, Ithaca, NY")
lat <- caldwell$latitude
lon <- caldwell$longitude
alt <- caldwell$altitude
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.