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
1
vote
0 answers

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 observations. Have you got any ideas? Regards
Tomasz Wojtas
  • 756
  • 2
  • 6
  • 12
1
vote
1 answer

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::google_map("") %>% googleway::add_polygons(data =…
Vlad
  • 3,058
  • 4
  • 25
  • 53
1
vote
1 answer

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(googleway) ui <- fluidPage( …
Vlad
  • 3,058
  • 4
  • 25
  • 53
1
vote
0 answers

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 more relevant to this…
Vlad
  • 3,058
  • 4
  • 25
  • 53
1
vote
1 answer

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 with the ESRI shape file from the census data after…
Vlad
  • 3,058
  • 4
  • 25
  • 53
1
vote
1 answer

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 - it currently zooms out and pans around…
Vlad
  • 3,058
  • 4
  • 25
  • 53
1
vote
2 answers

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 created the following…
Will Hauser
  • 197
  • 7
1
vote
0 answers

Googleway rankby="distance" option doesn't work

I'm trying to use the Google Places API via the Googleway package in R to search for certain businesses (for example, gyms) nearby a location coordinate. It's important that the results are returned ranked by distance to that point, so I'm using the…
1
vote
1 answer

Next page token in google_places() Googleway package

I am using the Googleway package, specifically, the google_places() function to extract store data. I understood that each google_places() call produce 20 data and I can access a total of 60 with next page token. My problem is, I was able to access…
Alex
  • 11
  • 1
1
vote
1 answer

marker_icon may be buggy in google_map_update call

Problem I have a data.frame that contains a column, named "icon", with a link in character format exactly like so "https://i.stack.imgur.com/kDNdX.png". I am feeding the column name into the google_map_update call in my shiny app: output$map <-…
Robert Tan
  • 634
  • 1
  • 8
  • 21
1
vote
1 answer

Geocode, error message, (google map, google_geocode, api)

I keep getting error messages when I try the below code, the error message is "Error in open.connection(con, "rb") : schannel: next InitializeSecurityContext failed: SEC_E_UNTRUSTED_ROOT (0x80090325) - The certificate chain was issued by an…
AAA
  • 83
  • 8
1
vote
0 answers

googleway package produces blank plot

I'm unable to generate any map using the googleway package. I have installed it both from github and cran and have a google maps javascript API key. I have tried some very basic code: google_map(key=gkey) Am using RStudio - the output window…
dataNbeer
  • 11
  • 1
1
vote
1 answer

google places api consumes 10 request but I am doing only 1

I am doing a request to Google Places Api in R, I am only doing the next request: library(googleway) latlon<-c(40.395536 ,-3.709588) result<-google_places(search_string = "Hospital", location = latlon, …
Henry Navarro
  • 943
  • 8
  • 34
1
vote
1 answer

Error trying to install Googleway package

Been trying to install googleway for more than a week and it is just not working. i have used the: install.packages("googleway", dependencies= T)' install.packages("googleway", repos=c("http://rstudio.org/_packages", …
Rifa1234
  • 62
  • 8
1
vote
0 answers

Parsing location data from a Google reverse geocode call using r

I've run a large set of google_reverse_geocode calls through the Google Maps API using the googleway library and I've got a couple of questions. My initial call is as follows: loczip <- lapply(seq(nrow(LonLat)),…
Jai Paton
  • 11
  • 2