revgeocode: Reverse geocode

Description Usage Arguments Value Author(s) See Also Examples

View source: R/revgeocode.R

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

1
2
3
revgeocode(location, output = c("address", "more", "all"),
  messaging = FALSE, urlonly = FALSE, override_limit = FALSE,
  ext = "com", inject = "", ...)

Arguments

location

a location in longitude/latitude format

output

amount of output

messaging

turn messaging on/off

urlonly

return only the url?

override_limit

override the current query count (.GoogleGeocodeQueryCount)

ext

domain extension (e.g. "com", "co.nz")

inject

character string to add to the url

...

...

Value

depends (at least an address)

Author(s)

David Kahle david.kahle@gmail.com

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run:  # Server response can be slow; this cuts down check time.

( gc <- as.numeric(geocode("the white house")) )
revgeocode(gc)
revgeocode(gc, output = "more")
revgeocode(gc, output = "all")
geocodeQueryCheck()


## End(Not run)

fresques/ggmap documentation built on May 28, 2019, 8:40 p.m.