How to get city by zipcode using google API in R

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to get city by zipcode using google API in R



I have below mentioned dataframe (Which consist some details of three country):


ID Name Zipcode
IR-1 ABC 110006
IR-2 RRF 302004
IR-3 XYY 560092
IR-4 ADD 99501
IR-5 XYC 85055



By utilizing the above dataframe, I want to get proper city against each Zipcode using google opensource apis.


Zipcode



Required Dataframe:


ID Name Zipcode City
IR-1 ABC 110006 Delhi
IR-2 RRF 302004 Jaipur
IR-3 XYY 560092 Banglore
IR-4 ADD 99501 Anchorage
IR-5 XYC 85055 Phoenix




1 Answer
1



use package::zipcode



A sample for the sample processing using Hospital Data.https://blog.exploratory.io/geocoding-us-zip-code-data-with-dplyr-and-zipcode-package-7f539c3702b0



A manual for package::zipcode https://cran.r-project.org/web/packages/zipcode/zipcode.pdf



All you need to do is library the package,and use dplyr to merge you data and data.frame in zipcode1





The link showing some error.
– Jupiter
Aug 8 at 7:35





Please provide some solution with code, at the moment this is just "link-only" answer.
– zx8754
Aug 8 at 7:51






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS