# NOT RUN {
library(fossil)
ams.ny <- geopath(lon1=4.892222, lon2=-74.005973,
lat1=52.373056, lat2=40.714353, print.geo=TRUE)
kml.file = paste0(tempdir(), "/ams.ny.kml")
# write to a file:
kml(ams.ny, file.name=kml.file)
# }
Run the code above in your browser using DataLab