ggmap (version 2.6.1)

revgeocode: Reverse geocode

Description

reverse geocodes a longitude/latitude location using Google Maps. Note that in most cases by using this function you are agreeing to the Google Maps API Terms of Service at https://developers.google.com/maps/terms.

Usage

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

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)

client

client ID for business users, see https://developers.google.com/maps/documentation/business/webservices/auth

signature

signature for business users, see https://developers.google.com/maps/documentation/business/webservices/auth

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
# NOT RUN {
# }
# NOT RUN {
 # Server response can be slow; this cuts down check time.

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

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab