sample_panoids: Draw random sample of GoogleStreetview Panoids

Description Usage Arguments Value

View source: R/sample_panoids.R

Description

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.

Usage

1
sample_panoids(sldf, mc.cores = 1, ...)

Arguments

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.

Value

a SpatialPointsDataFrame object containing the following columns:


bogdanstate/streetview-sampler documentation built on June 7, 2017, 11:53 a.m.