mz_set_host | R Documentation |
rmapzen works with most implementations of PELIAS. Use this function to set up the basic information required to connect to a particular provider. Provider-specific setup functions include information to set up known providers.
mz_set_host(which, provider)
mz_get_host(which)
mz_set_search_host_geocode.earth(key = Sys.getenv("GEOCODE.EARTH_KEY"))
mz_set_search_host_nyc_geosearch()
mz_set_tile_host_nextzen(key = Sys.getenv("NEXTZEN_KEY"))
which |
One of "search", "matrix", or "tile" |
provider |
A provider, created using |
key |
API key |
mz_provider
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.