Learn R Programming

inegiR (version 3.0.0)

inegi_denue: Returns DENUE businesses

Description

Returns data.frame with businesses registered in DENUE in the vicinity of supplied coordinates.

Usage

inegi_denue(latitud, longitud, token, meters = 250, keyword = "todos")

Arguments

latitud

Character vector with latitud (in decimals)

longitud

Character vector with longitud (in decimals)

token

API token supplied by INEGI

meters

Meters to search in a circle from coordinates. Defaults to 250

keyword

Keyword to search in business description (in spanish). Defaults to all (todos).

Value

Data.frame

Examples

Run this code
# NOT RUN {
# All businesses in a 1 km radius from the Macroplaza in Monterrey, Mex.
# }
# NOT RUN {
token<-"webservice_token"
latitud<- 25.669194
longitud<- -100.30990
businesses <- inegi_denue(latitud, longitud, token, meters = 1000)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab