This vignette documents the content provided in the package lab5 1.0.0. This is a high-level adjunct to the low-level details found in ?geocodification. You’ll learn how to work with lab5 package by using the previous methods which will allow you to convert adresses into coordinates and vice versa.

library(devtools)
devtools::install_github("ramonlaborda/lab5", subdir="lab5")
library(lab5)

Google Geocoding API

The package geocodification works as a connector between the user and the Google Geocoding API. This API converts addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers on a map, or position the map.

It is also possible to perform reverse geocoding, the process of converting geographic coordinates into a human-readable address.

The Google Maps Geocoding API provides a direct way to access these services via an HTTP request, as the following:

#  https://maps.googleapis.com/maps/api/geocode/json?parameters


ramonlaborda/lab5 documentation built on May 15, 2019, 1:24 p.m.