50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

ggmap (version 1.3)

revgeocode: Reverse geocode

Description

reverse geocodes a longitude/latitude location using Google Maps.

Usage

revgeocode(location,
    output = c("address", "more", "all"),
    messaging = FALSE, sensor = TRUE)

Arguments

location
a location in longitude/latitude format
output
amount of output
messaging
turn messaging on/off
sensor
whether or not the geocoding request comes from a device with a location sensor

Value

  • depends (at least an address)

Details

note that the google maps api limits to 2500 queries a day.

See Also

http://code.google.com/apis/maps/documentation/geocoding/

Examples

Run this code
gc <- as.numeric(geocode('Baylor University'))
revgeocode(gc)
revgeocode(gc, output = 'more')
revgeocode(gc, output = 'all')

Run the code above in your browser using DataLab