location_getSingleAddress_TexasAM: Get an address from the Texas A&M reverse geocoding service

View source: R/location_getSingleAddress_TexasAM.R

location_getSingleAddress_TexasAMR Documentation

Get an address from the Texas A&M reverse geocoding 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.

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

## Not run: 
library(MazamaLocationUtils)

# Fail gracefully if any resources are not available
try({

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

  location_getSingleAddress_TexasAM(longitude, latitude, apiKey)
  
}, silent = FALSE)

## End(Not run)


MazamaLocationUtils documentation built on Nov. 2, 2023, 6:16 p.m.