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

R Shiny map search input box

In google maps, the search input box auto completes addresses as a user types. Is there a way to do this in R Shiny with access to the autocomplete value in order to use with a mapping package? There is a javascript method here. I've tried to use…
Vlad
  • 3,058
  • 4
  • 25
  • 53
5
votes
1 answer

Next page token R Google Places API

I am attempting to get restaurant details from the Google places API in R. I can successfully get the 20 results that Google provides however I realize that as it returns a next_page_token, then this means there are other results (which is logical…
S.Dorrah
  • 65
  • 6
4
votes
2 answers

Geocoding addresses with googleway: incoherent results

I am trying to geocode addresses on Google Maps using the google_geocode function from the package googleway in R. I am using a key obtained from Google that allows me to go over the 2500/day limit (and being charged for that). I have different…
4
votes
2 answers

How to add routes (polylines) between two markers in leaflet

I wish to add the polyline between these two point. How can I do this? m <- leaflet() %>% addPolylines() %>% addTiles() %>% # Add default OpenStreetMap map tiles addMarkers(lng = -87.6266382, lat = 41.8674336, popup =…
Ewson Phang
  • 43
  • 1
  • 6
4
votes
2 answers

extracting data from nested list in R

I have download a list of addresses from google_reverse_code API but for a list of places with latitude and longitude information, since I'm very new in R. I don't know how to extract the useful information. All the code for downloading databases is…
3
votes
1 answer

Workaround for 60 maximum results limit from Google Maps Platform

i've been working with googleway packages to retreive information using place_type key, but i've been stuck with the 60 results limit restriction. I'm trying a slightly different approach to deal qith this restriction: divide an conquer. In my work,…
3
votes
1 answer

Googleway not considering traffic for travel time (directions search)

Using the google_directions function from googleway package, it does not display the travel time according to google maps browser search. It seems that it is not taking into account the traffic information. Example on a busy street in New York. a <-…
3
votes
1 answer

Change google maps heatmap options in shiny

I am using googleway library in Shiny R. The heatmap displays correctly, but I cannot change the heatmap options. If I uncomment the block code where I try to change options, the app crashes. Here is the part of the code that works, with the…
fhaidacher
  • 123
  • 9
3
votes
1 answer

How to find nearest road to single pair of latitude/longitude coordinates using R?

I have a list of a couple of hundred latitude-longitude coordinate pairs for different locations. My goal is to obtain an estimate of the driving duration from a 'home' location to each of the coordinate pairs, using R. I have had some success…
monkeytennis
  • 848
  • 7
  • 18
3
votes
1 answer

Flatten or unlist a data frame in R

I am using the Googleway package to get the elevation information for a bunch of lat long coordinates of which there are 954 in total. I've broken the calls into 3 separate files but they're in list format and when I convert them to a dataframe they…
TheGoat
  • 2,587
  • 3
  • 25
  • 58
2
votes
0 answers

How to adjust insertion of markers in a graph generated by googleway

I would like to insert the same Markers from the graph generated by leaflet (first graph) in the graph generated by googleway (second graph). Note that the route between the two points is generated in the second graph, but it does not have the…
Antonio
  • 1,091
  • 7
  • 24
2
votes
2 answers

How to quickly access elements in a list of list without a loop in R? (Googleway package)

I was working with the googleway package and I had a bunch of addresses that I needed to parse out the various components of the addresses that were in a nested list of lists. Loops (not encouraged) and apply functions both seemed confusing and I…
2
votes
1 answer

R package Googleway. Function: google_map(). Argument: search_box . Parameter to control: SIZE

R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night" Platform: x86_64-apple-darwin15.6.0 (64-bit) Code as per example below (replace "your_key" with the proper Google API key). My question: is there a way to customize the size of the search_box,…
2
votes
2 answers

Why can I bypass my firewall to access Google Distance Matrix API with ggmap, but not googleway or gmapsdistance in R?

I am trying to calculate driving times and distances for a few thousands of origins and destinations. However, my company firewall appears to be causing some problems when using googleway or gmapsdistance packages, but works perfectly fine for the…
Phil
  • 578
  • 3
  • 7
  • 17
2
votes
0 answers

multiple location search with google_places (from googleway)

Supposed I have a vector contains multiple locations(under longitude and latitude format. I want to find the nearest subway_station by using google_places. However I always get the errors like this: "Error in validateGeocodeLocation(location) : …
1
2 3 4 5 6 7