Today I've just faced one challenge...
I work on one project, and we need to decide which assets from this company will be visited initially.
As every project, we have limited budget, so we should find some variables to indicate a priority scale.
After some discussion, someone said: let's find the assets close to schools and hospitals. Those must be inspected firstly than others.
Everybody agreed with the voice, but how would be possible to map every school and hospital close to X,000 assets?
To answer that question, I would like to introduce the googleway's library for RStudio.
To use it, you have to get a google's API key (Google API)
After that, you have to install googleway library in your RStudio, call that library as you see in the picture bellow. The variable df_places will save the results for this search. I'm setting hospital as the key word, one lat and long to start as reference, radius in meters (max = 50,000m), and key is the key you got from google API.
I hope this post help you. If anyone has any doubt, please contact me.
Comment
Hi Douglas,
I do have an ideia. The problem is with the key variable in the end google_places command.
I should declare key variable before this google_places command with the google API, which you can create going through this website: https://developers.google.com/maps/documentation/embed/get-api-key.
If you have any further question, just ask to me.
Thanks!
I am getting:
Error in paste0(names(urlArgs)) :
object 'mykey' not found.
Any ideas?
Excelent...
© 2019 Data Science Central ®
Powered by
Badges | Report an Issue | Privacy Policy | Terms of Service
Most Popular Content on DSC
To not miss this type of content in the future, subscribe to our newsletter.
Other popular resources
Archives: 2008-2014 | 2015-2016 | 2017-2019 | Book 1 | Book 2 | More
Most popular articles
You need to be a member of Data Science Central to add comments!
Join Data Science Central