Utilities to manage photon instances. These functions operate on mounted
photon instances which can be initialized using new_photon
.
get_instance()
retrieves the active photon instance.get_photon_url()
retrieves the photon URL to send requests.
Examples
# make a new photon instance
new_photon()
#> <photon>
#> Type : remote
#> Server : https://photon.komoot.io/
# retrieve it from the cache
get_instance()
#> <photon>
#> Type : remote
#> Server : https://photon.komoot.io/
# get the server url
get_photon_url()
#> [1] "https://photon.komoot.io/"