## Not run: ------------------------------------
# # reverse geocode Beijing Railway Station
# revgeocode(c(39.90358, 116.421), ics = 'WGS-84', api = 'google',
# output = 'address')
# revgeocode(c(39.90498, 116.4272), ics = 'GCJ-02', api = 'google',
# output = 'address', messaging = TRUE)
# revgeocode(c(39.91103, 116.4337), ics = 'BD-09', api = 'google',
# output = 'addressc')
# revgeocode(c(39.91103, 116.4337), ics = 'BD-09', api = 'baidu',
# key = 'your baidu maps api key', output = 'address')
# revgeocode(c(39.90498, 116.4272), ics = 'GCJ-02', api = 'baidu',
# key = 'your baidu maps api key', output = 'address', messaging = TRUE)
# revgeocode(c(39.90358, 116.421), ics = 'WGS-84', api = 'baidu',
# key = 'your baidu maps api key', output = 'addressc')
# # reverse geocode multiple locations
# latlng = data.frame(lat = c(39.99837, 39.98565), lng = c(116.3203, 116.2998))
# revgeocode(latlng, ics = 'WGS-84', api = 'google', output = 'address')
# revgeocode(latlng, ics = 'WGS-84', api = 'google', output = 'address', time = 2)
## ---------------------------------------------
Run the code above in your browser using DataLab