peoplenearbydist: People with a Given Distance

View source: R/peoplenearbydist.R

peoplenearbydistR Documentation

People with a Given Distance

Description

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.

Usage

peoplenearbydist(locations, center, maxdist, key)

Arguments

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)

Value

a data frame with mapdist columns appended


crazybilly/rmapcounties documentation built on Jan. 4, 2024, 6:32 a.m.