get_cartociudad_route: Driving and walking directions from Cartociudad API

View source: R/get_cartociudad_route.R

get_cartociudad_routeR Documentation

Driving and walking directions from Cartociudad API

Description

Cartociudad API provides driving and walking routes between two points. This function quieries the API and provides the user the data in convenient form.

Usage

get_cartociudad_route(latlon.orig, latlon.dest, vehicle = "car")

Arguments

latlon.orig

Latitude and longitude of the starting point

latlon.dest

Latitude and longitude of the destination point

vehicle

Either car or walking

Value

A list containing the fields described in Cartociudad API documentation (see the link below).

Author(s)

Carlos J. Gil Bellosta

References

http://www.cartociudad.es/recursos/Documentacion_tecnica/CARTOCIUDAD_ServiciosWeb.pdf

Examples

## Not run: 
res <- get_cartociudad_route(c(39.48,-0.37),
   c(39.484336,-0.358171),
   vehicle = "car")

## End(Not run)


cjgb/caRtociudad documentation built on June 2, 2022, 7:15 p.m.