13 Jan

Plot a google map satellite image from a place name or address

Good morning Gis addict,
Need a HR satellite image from Google Map for a figure?
Here is an easy way!

 
library(dismo)
 
# enter the address here
x <- geocode('Croix du Sud 2,1348 Louvain‐la‐Neuve')
e <- extent(as.numeric(x[5:8])+ c(-0.001, 0.001, -0.001, 0.001))
g <- gmap(e, type = "satellite")
plot(g)

LLN

Leave a Reply

Your email address will not be published. Required fields are marked *