Questions tagged [googleway]

R Package for working with Google Maps API.

Provides a mechanism to plot a Google Map from R and overlay it with shapes and markers. Also provides access to Google Maps APIs, including places, directions, roads, distances, geocoding, elevation and timezone.

102 questions
0
votes
1 answer

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.
jzadra
  • 4,012
  • 2
  • 26
  • 46
0
votes
0 answers

Save googleway output as html to host online

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 view it from my iPhone/iOS device. Or better, to…
Adam
  • 2,137
  • 16
  • 29
0
votes
1 answer

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 Places API, and when I tried using it I got no…
Cary Shindell
  • 1,336
  • 8
  • 25
0
votes
0 answers

R "Can not retrieve results. No valid internet connection" on googleway

Im trying to use the googleway::google_places functon in R but I dont know how to set the proxy options. I believe googleway uses the package curl instead of rcurl. I get the error : Can not retrieve results. No valid internet connection (tested…
0
votes
1 answer

addEventListener to google maps in shiny to autoclose infowindows

Related threads Closing info windows in google maps by clicking the map? Google maps api close infowindow when clicking somewhere else Google Maps: Auto close open InfoWindows? Problem I am able to target all markers with the close method and…
Robert Tan
  • 634
  • 1
  • 8
  • 21
0
votes
0 answers

Limit for calculating distance using googleway package

Is there a limit of origin/destination pairs for googleway.distance? I tested on a few locations and got it worked: google_distance(origins = c(38.90826, -78.20459), destinations = c(38.899799, -77.02137), mode = c("driving", "walking",…
GGT
  • 43
  • 6
0
votes
1 answer

Adding color scale using add_heatmap in googleway

I am creating heatmap using googleway. For example, for the tram_route example given in the help of ?add_heatmap, how can I add a color scale so that the reader knows what is the number associated with that color? Thank you.
L.Yang
  • 553
  • 1
  • 6
  • 12
0
votes
1 answer

R googleway map cannot be loaded

I am trying to use R googleway to analyze crime records from NY Open Data. I want to add precinct polygon and crime circle to NY city map. However, even when I reduce the total crime points to 19k, I still cannot load the created map. Please see the…
L.Yang
  • 553
  • 1
  • 6
  • 12
0
votes
1 answer

Batch Geocoding with googleway R

I'm having trouble using the google_geocode function in the googleway package to batch geocode. I'd like to input a data frame of addresses and have the latitude and longitude coordinates returned for each. The number of addresses is far beyond…
user3342735
  • 424
  • 1
  • 5
  • 14
0
votes
1 answer

Handling 500 internal server error in R geocoding function

I have written a function using the googleway package to geocode addresses, that unfortunately crashes when it encounters a 500 internal server error. The function is as follows: rugeocoder.fun <- function(addr){ require(googleway) …
Sean Norton
  • 277
  • 1
  • 12
0
votes
1 answer

Googleway timeout

I'm having trouble with the googleway package in R. I am attempting to get driving distance for 159,000 records. I am using a paid google cloud account and have set all quotas as unlimited. I've attempted to use server keys and browser keys. After…
Clancy Birrell
  • 111
  • 1
  • 9
-1
votes
1 answer

Error on using google_distance with mutate

I'm trying to calculate the driving distance between two coordinate locations. Here's my code: library(tidyverse) library(googleway) distances %>% mutate(distance = google_distance(origins = origin, destinations = destination, key = 'API…
1 2 3 4 5 6
7