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
1 answer

The map generated by the googleway package is not updated after pressing the other tabPanel

The code below generates two maps, one being generated by the googleway package and the other by the leaflet package. See in the image that a region is selected in selectInput and automatically two maps are generated. If I change my selectInput with…
1
vote
0 answers

How to get the zoom level from the googleway::google_map in R/shiny?

Is there a way to get to current zoom level of a googleway::google_map ? I'm trying to get the current zoom level of a shiny map in the same way I access to the coordinate of a marker (quite same question than How to find current zoom level in a…
Ben
  • 21
  • 1
1
vote
1 answer

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. The others fields are complete, but not the…
Jose
  • 11
  • 2
1
vote
1 answer

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), Latitude = c(-24.930473, -24.95575,-24.990473, -24.99575), …
Antonio
  • 1,091
  • 7
  • 24
1
vote
1 answer

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 "next page token" for a total of 3 API calls for…
1
vote
1 answer

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 them to be the same. This is a small example, but…
Antonio
  • 1,091
  • 7
  • 24
1
vote
0 answers

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 in downloadData(map_url, simplify, curl_proxy)…
1
vote
1 answer

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, when I simply copy and paste the code from…
Joe Crozier
  • 944
  • 8
  • 20
1
vote
1 answer

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 far, so good. The problem appears when I switch to a…
Mikael
  • 113
  • 1
  • 8
1
vote
1 answer

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. library(googleway) a <- google_places(location =…
1
vote
1 answer

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 results. key_word = 'McDonalds Bogota' res <-…
1
vote
1 answer

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 the older and more confusing apply family of…
jzadra
  • 4,012
  • 2
  • 26
  • 46
1
vote
1 answer

Calculating timezone from lat long and time

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, 2L, 3L, 10L, 9L, 6L, 5L, 8L), .Label = c("18 26'…
Stupid_Intern
  • 3,382
  • 8
  • 37
  • 74
1
vote
0 answers

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 calculations based on an arrival time. I tried…
Rho
  • 21
  • 2
1
vote
0 answers

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(1.4434068, 103.7769701), …
Javeed
  • 45
  • 7