Learn R Programming

ggmap (version 1.2)

geocode: Geocode

Description

geocodes a location using google maps.

Usage

geocode(location)

Arguments

location
a character string specifying a location of interest (e.g. "Baylor University")

Value

  • a named numeric vector of geographical coordinates.

Examples

Run this code
geocode('Baylor University')
geocode('1600 Pennsylvania Avenue, Washington DC')
geocode('the eiffel tower')

Run the code above in your browser using DataLab