# Loads the necessary libraries
library(leaflet)
## Warning: package 'leaflet' was built under R version 4.2.3
# Creates a map centered on Melbourne
m <- leaflet() %>% setView(lng=144.9631, lat=-37.8136, zoom=10) %>% addTiles()
# Adds markers for some landmarks
m <- m %>% addMarkers(lng=144.9651, lat=-37.8202, popup="Melbourne Zoo") %>%
addMarkers(lng=144.9835, lat=-37.8190, popup="Melbourne Cricket Ground") %>%
addMarkers(lng=144.9514, lat=-37.8206, popup="Melbourne Museum") %>%
addMarkers(lng=144.9628, lat=-37.8102, popup="Melbourne Central Station") %>%
addMarkers(lng=144.8485, lat=-37.6690, popup="Melbourne Airport") %>%
addMarkers(lng=144.9671, lat=-37.8215, popup="Federation Square") %>%
addMarkers(lng=144.9710, lat=-37.8136, popup="Flinders Street Station") %>%
addMarkers(lng=144.9752, lat=-37.8140, popup="St Paul's Cathedral")
# Prints the map
m
Travel Information
The drive from Melbourne Airport to the CBD typically takes around 20-30 minutes, depending on traffic.
Enjoy your visit to Melbourne!