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

Converting nested list with missing values to data frame in R

I have a list of geocode output from the googleway package (ggmap geocode wouldn't work with an API key) stored in a list, each element of which contains two lists. However, for addresses in which no result was found, the structure of the list is…
Sean Norton
  • 277
  • 1
  • 12
1
vote
1 answer

R Bug in the Googleway Package

I am using the Googleway package and I don't have any difference between "pessimistic", "optimistic" & best_guess" as well as results are similar when mentioning "driving", "walking" or "cycling" modes. Maybe I am wrong in my…
jean
  • 31
  • 1
1
vote
0 answers

Lexical Error using Googleway in R

I have approx 900 lat long pairings which I wish to get the associated elevation data for. Within R there is a package called Googleway for querying the Google Maps API. I've installed the package and called the library within R. I've also…
TheGoat
  • 2,587
  • 3
  • 25
  • 58
1
vote
1 answer

How to concatenate all vlaues in a column which is a list of data frames R

structure of data frame > str(df) 'data.frame': 459 obs. of 6 variables: $ Source : chr "Mumbai" "Mumbai" "Bangalore" "Bangalore" ... $ Destination: chr "Bangalore" "Bangalore" "Chennai" "Cochin" ... $ src_loc…
troglodyte07
  • 3,598
  • 10
  • 42
  • 66
1
vote
1 answer

Using the Google_distance function in Googleway

I am having trouble understanding the outputs when using this google_distance function. When using mydist() in ggmap I would get the number of miles, minutes, hours that it would take to get to point A to point B. Now my output looks like this when…
HHK
  • 11
  • 2
1
vote
1 answer

uniting lists out of the googleways package for google directions?

I'm working on looping through long and latitude points for the googleways api. I've come up with two ways to do that in an effort to access the points sections shown in the following…
LoF10
  • 1,907
  • 1
  • 23
  • 64
1
vote
1 answer

mapdist and googleway in R

I have been trying map distance between 2 postcodes. I have about ~30k records. I understand Google only allows 2500 queries/day and therefore I now have an API from them. For some reason - I have been struggling to insert the API key into the code.…
Deepayan
  • 195
  • 1
  • 3
  • 9
0
votes
0 answers

Busy spinner while R Mapdeck add_scatterplot is rendering

I have a R Shiny app which includes a map. The basemap is rendered using the R Googleway package, whilst the data layers are added using mapdeck. The rendering of a large number of x/y points using the add_scatterplot function is extremely fast in…
Jaco
  • 31
  • 4
0
votes
0 answers

getting results from "place_type" using googleway::access_results()

i've been using successfully for almost a year the followig code to retrieve places from googgle maps using googleway R package. Recently i've been asked to retrieve also the place_type info from the API results, It looks to me as simple as adding…
0
votes
1 answer

Get a list of places from Google Maps in R

I use google_places from googleway package to get a dataframe of places from Google. I am looking for "blood donation in Germany" (in German) https://www.google.de/maps/search/Blutspende+in+Deutschland/@51.5019637,6.4650438,12z The vignette says…
Marco
  • 2,368
  • 6
  • 22
  • 48
0
votes
0 answers

Geocoding errors for zipcodes with geocode function using googleway and ggmap package

library(ggmap) library(tidyverse) #create data frame for zipcode data.new <- c(21022, 20380, 22194, 20414, 20402, 22350, 20451, 56998, 88888, 20417, 75059, 90210, 11437, 10101, 10275, 10269, 10111, 98490) data.new <-…
Kenny
  • 1
  • 1
0
votes
1 answer

Is there a reason the output data can't be read by leaflet for creating a map in shiny

could someone tell me why leaflet doesn't read the data.frame properly created inside the server function of shiny? It doesn't show any map when executed, as soon as I try to addCirkleMarkers by the data I gathered before? It works perfectly, when I…
Chalente
  • 23
  • 6
0
votes
1 answer

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. The first code involves generating maps using the…
Antonio
  • 1,091
  • 7
  • 24
0
votes
1 answer

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<-structure(list(Properties = c(1,2), …
Antonio
  • 1,091
  • 7
  • 24
0
votes
1 answer

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) : location must be a vector of a pair of latitude…