knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This package was developed as part of Lab Assignment at Linkoping University. This package has function two functions:
geocode_response which takes an address as input and returns the lattitude and lognitude associated with that address as a vector. The address is in turn passed to a shiny app connected to google's Geocoding API and shows the address on the map.
reverse_geocode_response which takes latitude and longitude as input and returns a complete address. The shiny app shows the address on the map.
It requires the user to provide an API key for google's Geocoding API.
# load the necessary packages library(GeoShiny) library(shiny) # run the shiny app from github runGitHub("GeocodingShiny", "mariatreesa")
knitr::include_graphics("screenshot.png")
Given a latitude and longitude instead of an address the reverse geocode returns the complete address of the location. See the example below.
knitr::include_graphics("Screenshot2.png")
Map views can also be changed from default map view to satellite view.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.