View source: R/peoplenearbydist.R
peoplenearbydist | R Documentation |
Given a data frame of locations with lon and lat columns and a destination, filter the data frame to return only results that are within maxdist of the destination.
peoplenearbydist(locations, center, maxdist, key)
locations |
a data frame that includes lat and lon columns |
center |
a center location. Can be a character string or a two column data frame. |
maxdist |
maximum distance in miles (converted to Euclidean distance by rough calculation) |
key |
Google API key (see https://developers.google.com/maps/documentation/geocoding/get-api-key) |
a data frame with mapdist columns appended
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.