# Get a public instance
pub_photon <- new_photon()
# Mount a custom instance
new_photon(url = "https://localhost:8001/")
# Geocode with the public instance only once
with_photon(pub_photon, geocode("Rutland"))
# The custom instance is still mounted
get_instance()
Run the code above in your browser using DataLab