View source: R/cartociudad_get_route.R
cartociudad_get_route | R Documentation |
Cartociudad API provides driving and walking routes between two points. This function quieries the API and provides the user the data in convenient form.
cartociudad_get_route(latlon.orig, latlon.dest, vehicle = "car")
latlon.orig |
Latitude and longitude of the starting point |
latlon.dest |
Latitude and longitude of the destination point |
vehicle |
Either |
A list containing the fields described in Cartociudad API documentation (see the link below).
Carlos J. Gil Bellosta
http://www.cartociudad.es/recursos/Documentacion_tecnica/CARTOCIUDAD_ServiciosWeb.pdf
res <- cartociudad_get_route(c(39.48,-0.37), c(39.484336,-0.358171), vehicle = "car")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.