Learn R Programming

ggmap (version 2.2)

revgeocode: Reverse geocode

Description

reverse geocodes a longitude/latitude location using Google Maps.

Usage

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

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
override_limit
override the current query count (.GoogleGeocodeQueryCount)

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')
geocodeQueryCheck()

Run the code above in your browser using DataLab