Description Usage Arguments Value Author(s) Examples
Creates a data.frame
object with the output of a query in Google Maps of places of given types nearby a given location.
User must have a valid API key from Google Places API Web Service to make this function work. For more information go to: https://developers.google.com/places/web-service
1 | GoogleNearbySearch(query, lat, lon, radius, apikey)
|
query |
Is a string object with an specific query as it would be ask in the search bar of Google Maps. |
lat |
Latitude coordinate of the specific place where to find the |
lon |
Longitude coordinate of the specific place where to find the |
radius |
Radius of search in meters. How nearby |
apikey |
Your API Key from https://developers.google.com/places/web-service |
This function returns a data.frame
object with the search results of query
nearby lat
and lon
within radius
Esteban Lopez
1 | mysearch<-GoogleNearbySearch(query="korean food",lat=40.107336,lon=-88.226110,radius=500,apikey="yourAPIkeyhere")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.