Learn R Programming

MazamaLocationUtils (version 0.2.0)

location_getSingleAddress_TexasAM: Get an address from a Texas A&M web service

Description

Texas A&M APIs are used to determine the address associated with the longitude and latitude.

Usage

location_getSingleAddress_TexasAM(
  longitude = NULL,
  latitude = NULL,
  apiKey = NULL,
  verbose = TRUE
)

Arguments

longitude

Single longitude in decimal degrees E.

latitude

Single latitude in decimal degrees N.

apiKey

Texas A&M Geocoding requires an API key. The first 2500 requests are free. Default: NULL

verbose

Logical controlling the generation of progress messages.

Value

Numeric elevation value.

References

https://geoservices.tamu.edu/Services/ReverseGeocoding/WebService/v04_01/HTTP.aspx

Examples

Run this code
# NOT RUN {
library(MazamaLocationUtils)

# Set up standard directories and spatial data
spatialDataDir <- tempdir() # typically "~/Data/Spatial"
mazama_initialize(spatialDataDir)

# Wenatchee
longitude <- -122.47
latitude <- 47.47
apiKey <- YOUR_PERSONAL_API_KEY

location_getSingleAddress_TexasAM(longitude, latitude, apiKey)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab