Questions tagged [googleway]

R Package for working with Google Maps API.

Filter by
Sorted by
Tagged with
0votes
0answers
23views

Problems generating route between two coordinates in a shiny app

I will present 3 codes, the first two working properly, and the third is a junction of the first with the second, which is what I want to adjust. I'll explain in detail so it's easier to understand. ...
user avatar
  • 1,059
1vote
0answers
23views

Quantifying the distance using Google_distance r function

I'm trying to quantify the distance between localities, applying the Google_distance r function. I have run the examples of the Google_distance function, but the distance between localities is missing....
user avatar
  • 11
1vote
1answer
91views

Adjust to generate correct maps from selecInput

First of all, I will make a brief example for you to understand the idea. library(googleway) set_key( "API KEY") df<-structure(list(Properties = c(1,2,3,4), ...
user avatar
  • 1,059
0votes
1answer
102views
+50

How to Link selected cluster in shiny app

First, I'll present an example below for you to see how it works. The code below generates the route between two coordinates. library(googleway) set_key( "API KEY") #databases df<-...
user avatar
  • 1,059
0votes
1answer
27views

Using googleway google_places to make simple dataframe

When using the function google_places, the location argument is a vector of coordinate pairs. However, within this function I wrote, an error is returned: Error in validateGeocodeLocation(location) : ...
user avatar
0votes
1answer
60views

Building dataframes from Google Maps API using googleway in R

I've written a function that will pull geospatial data from the Google Maps API and store the 1) name 2) coordinates in a dataframe using the googleway function 'google_places'. Google_places uses a &...
user avatar
0votes
0answers
13views

Pricing for specific Googleway commands in RStudio

I am currently using the Google Places API on a free trial. I am interested in paying for the API but can't find the exact cost of the two commands that I use: google_places(), and ...
user avatar
0votes
0answers
15views

is there a googleway function similar to the addLayersControl function in leaflet for R?

I mapped 2 polygons using the google_map function in the googleway package for R. I'd like to turn the polygons on and off. I can do this in the leaflet package using the addLayersControl function. Is ...
user avatar
1vote
1answer
96views

How to insert more colors in my map that was generated in R

How do I insert more colors in my function? I managed to insert only 4 (red, blue, green and lavender). But as you can see, cluster 1 and cluster 5 have the same color (blue). However, I didn't want ...
user avatar
  • 1,059
1vote
2answers
44views

How to quickly access elements in a list of list without a loop in R? (Googleway package)

I was working with the googleway package and I had a bunch of addresses that I needed to parse out the various components of the addresses that were in a nested list of lists. Loops (not encouraged) ...
user avatar
0votes
1answer
329views

Mapping two reactive datasets with Leaflet & Googleway in R

I'm trying to utilize Google's API for their drop down search feature to map a selected address using Leaflet. However, I also have an existing dataset that I'd like to add to the Leaflet map based on ...
user avatar
  • 1
0votes
0answers
56views

Column selection error in R with apply loop

I'm trying to pull data from googlemaps with googleway library.I used Google Elevation API in apply R function Requests <- apply(df, 1, function(x){ google_elevation(...
user avatar
  • 111
0votes
0answers
38views

The google_places function in googleway package throws an error

This happens when i use the google_places function google_places(search_string = "Agence societe Generale, Paris 75015", key = key ,curl_proxy =curl_proxy("https://google.com")) Error ...
user avatar
1vote
0answers
47views

R package Googleway. Function: google_map(). Argument: search_box . Parameter to control: SIZE

R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night" Platform: x86_64-apple-darwin15.6.0 (64-bit) Code as per example below (replace "your_key" with the proper Google API key). My question: is ...
user avatar
1vote
1answer
215views

Drawing driving routes in R

I'm following the answer provided in this question: Drawing journey path using leaflet in R And hoping to replicate the same idea: drawing a map showing driving routes between cities. For reference,...
user avatar
0votes
0answers
581views

Google Places API excluding permanently closed locations?

I have been using Google Places Search API to look for permanently closed locations. As it turns out google filters them out from the query results. For example : Cumberland River Hospital shows up as ...
user avatar
0votes
1answer
118views

My google_map is not reacting after switching between tabs in a shiny dashboard

I have a google map that shows markers whenever I click on the map. This map is located at one tab in my shiny dashboard. I also have there a table that shows the tabulated info of the markers. So ...
user avatar
  • 61
2votes
2answers
403views

Why can I bypass my firewall to access Google Distance Matrix API with ggmap, but not googleway or gmapsdistance in R?

I am trying to calculate driving times and distances for a few thousands of origins and destinations. However, my company firewall appears to be causing some problems when using googleway or ...
user avatar
  • 478
1vote
1answer
333views

googleway, the radar argument is now deprecated

Attempting to use googleway package in r to list retirement villages within a specified radius of a location. Get the radar argument is now deprecated error message and null results as a consequence. ...
user avatar
0votes
0answers
57views

How to add multiple colours in Googleway:add_polyline function in R?

I want to add different colours for each line in polyline function. Here is the code that I have tried: google_map(key = map_key, style = style) %>% add_polylines(data = poly_df, polyline = ...
user avatar
0votes
1answer
177views

R: Extracting information from Google Places within the Tidyverse

I've a data frame with locations and I want to append phone numbers and websites to them from Google Places in a pipeable solution. The closest I've gotten to doing this was using googleway, ...
user avatar
  • 431
1vote
1answer
125views

INVALID_REQUEST when I'm using page_token

I try to capture the info in a list on r when I'm using page_token in google_places In general the short code is functional, but I can see in google.maps 65 results, and my code just return me 60 ...
user avatar
0votes
1answer
65views

How to batch geocode using googleway with tidyverse functions?

I was looking for a way to do batch geocoding using googleway's google_geocode(), which is only able to return one result at a time. I wanted to use tidyverse functions, and other answers made use of ...
user avatar
  • 3,371
0votes
0answers
76views

Return all unique places matching search query from google cloud API / googleway

I need to get all the google maps data on every grocery store / market / convenience store in a specified area. Using the googleway package, I can access the API and get up to 60 results (20 at a ...
user avatar
  • 3,371
1vote
1answer
132views

Calculating timezone from lat long and time [duplicate]

In this df I have latitute, longtitude and datetime and I want to calculate the timezone for that specific location for that specific time. > dput(df) structure(list(lat = structure(c(1L, 7L, 4L, ...
user avatar
1vote
0answers
59views

Unable to use Arrival_time when calculating distance for transit with Googleways in R

I am trying to understand how google_distance works for a single pair of origin/destination coordinates before writing a loop to run around 1200 calculations. My first attempt worked but I need to run ...
user avatar
  • 21
3votes
1answer
228views

Googleway not considering traffic for travel time (directions search)

Using the google_directions function from googleway package, it does not display the travel time according to google maps browser search. It seems that it is not taking into account the traffic ...
user avatar
1vote
0answers
66views

next_page_token error while using Places API in GoogleWay library in R

I am extracting nearby_places using Places API with Googleway Package in R. Initially after providing the Key, I type in the Query and obtain the Values. have_places <- google_places(location = c(...
user avatar
  • 45
1vote
0answers
37views

A way to set zoom limit in google_map in googleway library

my problem is simple. Need to set max zoom in the google_map object from gooleway package. I need that to protect privacy. So I need to find some way to disallow user to keep zooming data to single ...
user avatar
0votes
1answer
559views

How to save as image response of google streetview API in R?

I need to save the as image (.jpg, .png) the result from google_streetview API I'm working in a small project to test an image recognition algorith. I'm downloading some images from google street, I ...
user avatar
  • 142
2votes
0answers
301views

multiple location search with google_places (from googleway)

Supposed I have a vector contains multiple locations(under longitude and latitude format. I want to find the nearest subway_station by using google_places. However I always get the errors like this: ...
user avatar
0votes
1answer
153views

How to access the outer variables without throwing the “object not found” error in this R code?

I am trying to build a dynamic web application based on Shiny package. I am running R3.5.1 x64 on Windows 10 with RStudio 1.1.4. I need the variables tabelaHeatMap and weightHeatMap to not have ...
user avatar
2votes
1answer
373views

R googleway: change marker colors

I have 2 data frames with the geocoded locations of several hospitals within the United States. I would like to plot these locations as markers with two different colors for each set of hospitals from ...
user avatar
  • 551
0votes
0answers
142views

Displaying and Animated google heat map?

how can i Displaying and Animated google heat map i have already used this code swf1 <- read.csv("D:/modilingfinel/swf1.csv",header=TRUE) head(swf1) set.seed(20170417) df <- swf1 df$weight &...
user avatar
0votes
0answers
308views

R googleway bug in geocoding with address

I have some problem with the google_geocode function in googleway package. At first I've just tried it with a simple address: key <- MyKey df <- google_geocode(address = "5 Rue J-F Kennedy ...
user avatar
0votes
0answers
40views

use API key to get geocode,but it said my key experied

I try to geocode batch addresses use googleway package, like "2105 Woodcrest Lane SW", but it said MY API key was experied. but I know we don't need to update API key every time once using it. this is ...
user avatar
  • 1
7votes
1answer
3kviews

R Shiny map search input box

In google maps, the search input box auto completes addresses as a user types. Is there a way to do this in R Shiny with access to the autocomplete value in order to use with a mapping package? ...
user avatar
  • 2,553
2votes
1answer
221views

Error in batch geocoding using R googleway

Not sure why I keep getting this error: Error in value[3L] : There was an error downloading results. Please manually check the following URL is valid by entering it into a browswer. If valid, ...
user avatar
0votes
0answers
153views

R googleway: add a title on the map?

Could anyone share an example on how to add a title on the google map? I tried using add_markers, but those are for particular locations. I searched online for an example but none available. ...
user avatar
0votes
0answers
121views

Calculate distance using googleway

I am using googleway package in R to calculate distances between two points. I had 2 variables names household latitude and longitude and 2 other variables containing lat and long of the corresponding ...
user avatar
0votes
0answers
60views

Google Distances in R between two data frames [duplicate]

I have two data frames. One has ~600 or so locations of people on a map, like so: Names<-c("Mike","Ron","Joe") Lat<-c(61.5,63.2,50.1) Long<-c(-140.2,-139.2,-145.6) df<-data.frame(Names,...
user avatar
0votes
1answer
131views

Permanently save googleway API key

Is there any way to permanently save the API key to my R profile or environment so that I don't have use set_key() every session? I don't like to save keys in my code since it is on github.
user avatar
  • 3,371
1vote
1answer
89views

R googleway: using a different palette

Is it possible to use a non viridisLite palette with googleway? Specifically, I want to have a single colour scale. Here is my attempt: library(googleway) library(RColorBrewer) googleway::...
user avatar
  • 2,553
1vote
1answer
315views

R googleway: observe click circle event in Shiny

How can I catch a circle click event with a googleway map in R Shiny? Here is my code - based on the googleway vignette - however the observer doesn't fire. library(tidyverse) library(shiny) library(...
user avatar
  • 2,553
1vote
0answers
103views

R googleway - turn off legend in Shiny

How can the legend be 'turned off' dynamically with googleway? Here is the code adapted from the googleway vignette (this example is updated from a previous version based on a slider and is hopefully ...
user avatar
  • 2,553
1vote
1answer
123views

R googleway with ABS census data

I'm intending to analyse Australian census data using googleway to produce heat maps. My approach has been to use prepared data from googleway melbourne which contains column SA2_NAME and join it ...
user avatar
  • 2,553
1vote
1answer
352views

R Shiny: googleway package - turn off auto zooming and panning during update

Using googleway R package with Shiny and updating the map with google_map_update and update_heatmap. Is it possible to maintain the same zoom level and position during calls to google_map_update - ...
user avatar
  • 2,553
1vote
2answers
484views

Geocoding in R using googleway

I have read Batch Geocoding with googleway R I am attempting to geocode some addresses using googleway. I want the geocodes, address, and county returned back. Using the answer linked to above I ...
user avatar
0votes
0answers
46views

Save googleway output as html to host online [duplicate]

I am using the excellent googleway package for R, to plot my data as markers on a google map (hosted locally on my desktop). I would like to find some way to output this map to the web, so that I can ...
user avatar
  • 1,625
0votes
1answer
63views

What does Googleway's rank by location option do?

Looking at the documentation here for Googleway's google_places function, I see that there is an option to set the rankby parameter to "location". However this isn't an option in the actual Google ...
user avatar

15 30 50 per page