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

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 google_place_details(). I have contacted the Google sales team and…
cholo.trem
  • 314
  • 2
  • 9
0
votes
1 answer

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 a checkboxInput. This means that both need to be…
kdanil
  • 1
0
votes
0 answers

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(df_locations =x[c("lat", "lon")], …
Denmla
  • 135
  • 1
  • 8
0
votes
0 answers

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 permanently closed on the google…
0
votes
0 answers

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 = encode_pl(lat = poly_df$lat, lon =…
user11768059
0
votes
1 answer

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, unlisting the JSON and using regexes to extract the place…
rsylatian
  • 429
  • 2
  • 14
0
votes
0 answers

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 time). However, what if there are more than 60…
jzadra
  • 4,012
  • 2
  • 26
  • 46
0
votes
1 answer

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 need to save this images as .jpg or .png format. …
Roga Lu
  • 162
  • 1
  • 3
  • 14
0
votes
1 answer

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 fixed values, because I'm retrieving them dynamically…
0
votes
0 answers

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 <- sample(1:10, size = nrow(df), replace = T)…
Maram Mubarak
  • 323
  • 2
  • 3
  • 11
0
votes
0 answers

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 8332 Luxembourg", key = key, …
0
votes
0 answers

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 r picture and my code here.enter image…
yidan
  • 1
0
votes
0 answers

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. Looking for something similar to leaflet package…
Rohan Nadagouda
  • 462
  • 7
  • 18
0
votes
0 answers

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 government cooperative store in the locality of…
0
votes
0 answers

Google Distances in R between two data frames

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,Lat,Long) The other has locations those people might need to…
Joe Crozier
  • 944
  • 8
  • 20