Developing Data Products Course Project

Google Maps Geocode Query Tool

Yoke K. Wong
Developing Data Products MOOC

Introduction

The Google Maps Geocode Query Tool aims to simplify the collection of geocodes by providing a simple interface for users to query latitude and longtitude coordinates.

The tool makes use of the Google Maps API service for latidue and longtitude coordnate information and the Shiny Package for User Interface creation.

Advantages and Limitations

Advantages
1. Users do not need to know Google Maps API and R.
2. Latitude and Longtitude coordinates can be viewed and downloaded as CSV file.
3. It's free! (Courtesy of Google Maps API)

Limitations
1. Only a maximum of 10 addresses can be queried at one time due to limits set for the free version of Google Maps API

Mechanism

The main function that queries Google Maps API for latitude and longtitude information is the geoCode function. This function takes in the search criteria and returns the latitude, longtitude, type of location and address identified.

args(geoCode)
## function (address, verbose = FALSE) 
## NULL
address <- geoCode("Johns Hopkins University, Baltimore");address
## [1] "39.329901"                                         
## [2] "-76.6205184"                                       
## [3] "APPROXIMATE"                                       
## [4] "Johns Hopkins University, Baltimore, MD 21218, USA"

References