getLocationsInRange: Get Current Top Media By Location ID

Description Usage Arguments Value Examples

View source: R/getLocationsInRange.R

Description

Gets the top 9 media posts for a location with the given location ID.

Usage

1
getLocationsInRange(mapping, r, lat, long, ...)

Arguments

mapping

A location mapping in the form generated by createLocationMapping

r

Radius of search from give coordinates

lat

Double for latitude of search center

long

Double for longitude of search center

...

Additional options passed to a shinyAppDir

Value

n x 9 DF where n is the number of locations in the scope:
id, name, slug, city_ID, city_Name, city_slug,country_ID, country_Name, country_Slug

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
mapping <- createLocationMapping("United States", "New York", TRUE)

lat <- 40.7484
long <- 73.9857
radius <- 0.5 #miles

smaller_mapping <- getLocationsInRange(mapping, radius, lat, long)
## End(Not run)

AFIT-R/instaExtract documentation built on May 18, 2019, 8:11 p.m.