ps_elevation_google | R Documentation |
Add Z column to sfc based on google maps
ps_elevation_google(
x,
sfc_name = ps_active_sfc_name(x),
Z = "Z",
key = Sys.getenv("GOOGLE_MAPS_ELEVATION_API_KEY")
)
x |
The sf object. |
sfc_name |
A string of the sfc column name. |
Z |
A string of the name of the Z coordinate. |
key |
The string of the google maps elevation api key. |
The sf object with a Z column of the elevation in metres.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.