Description Usage Arguments Value
This function draws a random sample of GoogleStreetviewPanoids from a provided SpatialLinesDataFrame object, usually constructed from the shapefile of a road network. Spatial sampling is done via the spatialEco package, while interactions with the Streetview API are handled by the robolyst/streetview github module. No API keys are necessary for this function, as it only queries the Streetview Metadata API.
1 | sample_panoids(sldf, mc.cores = 1, ...)
|
sldf |
a SpatialLinesDataFrame object from which points are to be sampled. |
mc.cores |
number of cores to use when drawing the sample. Defaults to 1. |
... |
additional params to be passed to the spatialEco::sample.line. |
a SpatialPointsDataFrame object containing the following columns:
"panoid"Google Streetview PanoID obtained from Streetview metadata API.
"lat"Latitude associated with the PanoID (returned by Streetview metadata API).
"lon"Longitude associated with the PanoID (returned by Streetview metadata API).
"month"Month during which the image associated with the PanoID was taken. Can be NA.
"year"Year during which the image associated with the PanoID was taken. Can be NA.
"sampled_lat"Latitude of sampled point (against which Streetview API was queried).
"sampled_lon"Longitude of sampled point (against which Streetview API was queried).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.