Learn R Programming

mapmisc (version 1.5.0)

geocode: Georeferencing with Google

Description

Uses the dismo package to geocode with Google

Usage

geocode(...)

Arguments

...

arguments passed to geocode

Value

A SpatialPointsDataFrame in long-lat projection.

See Also

geocode

Examples

Run this code
# NOT RUN {

# }
# 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)

}
# }
# NOT RUN {

# }

Run the code above in your browser using DataLab