geocode {mapmisc}R Documentation

Georeferencing with Google

Description

Uses the dismo package to geocode with Google

Usage

	geocode(x, oneRecord=FALSE, extent=NULL, progress='', ...)
	

Arguments

x

vector of character strings to search for

oneRecord

see geocode

extent

an Extent object, or any object from which an Extent can be obtained.

progress

see geocode

...

additional arguments passed to geocode

Details

If the option options()$mapmiscCachePath is set, it will be used to specify the folder to save downloaded data.

Value

A SpatialPointsDataFrame with coordinates in the projection of extent if possible, or long-lat otherwise.

See Also

geocode

Examples



## Not run: 

if (requireNamespace("dismo", quietly = TRUE)) { 

cities=geocode('Ulan batar')
mytiles = openmap(cities, buffer=800*1000)

map.new(mytiles)
plot(mytiles, add=TRUE)
points(cities, col='red')
text(cities, labels=cities$originalPlace, col='red',pos=4)

}

## End(Not run)



[Package mapmisc version 1.7.2 Index]