This function sets the options to be passed to the API service. For full details of available options see https://docs.targomo.com/core/
targomoOptions(travelType = "bike", travelTimes = list(600, 1200,
1800), intersectionMode = "union", carRushHour = FALSE,
walkSpeed = 5, walkUpHillAdjustment = 10,
walkDownHillAdjustment = 0, bikeSpeed = 15,
bikeUpHillAdjustment = 20, bikeDownHillAdjustment = -10,
transitDate = NULL, transitTime = NULL, transitDuration = NULL,
transitMaxWalkingTimeFromSource = NULL,
transitMaxWalkingTimeToTarget = NULL, transitEarliestArrival = FALSE,
transitMaxTransfers = NULL, edgeWeight = "time",
maxEdgeWeight = 1800, elevation = FALSE, serializer = "geojson",
srid = 4326, minPolygonHoleSize = NULL, buffer = NULL,
simplify = NULL, quadrantSegments = NULL, decimalPrecision = NULL)
What mode of transport to use - car, bike, walk or public transport.
A list of times - each time corresponds to a
different polygon. Your API key will determine how many you can add. Acceptable formats
are numeric (interpreted as seconds), or a string of the form .h.m.s
. E.g. for
1 hour, "1h", 90 minutes = "1h30m" or "90m" etc.
Whether to calculate the union or intersection of multiple sources.
Account for rush hour while driving.
Settings for walking travel type.
Settings for cycling travel type.
The date for public transport calculations (YYYYMMDD).
The time in seconds since midnight to begin transit.
The duration of the transit timeframe (seconds or .h.m.s
string).
Settings for transit travel type.
Further transit settings.
Should calculations be in "time" or "distance"?
The max time or distance to search for routes/times in - acceptable
formats are numeric (seconds or metres), or a string of the form .h.m.s
for time,
or .km.m.ml
for distance, where ml represents miles (1609 metres).
Account for elevation?
Should be "geojson" or "json". See API for details.
The spatial reference of the returned data.
Minimum area of holes in returned polygons.
Parameters for manipulating the returned polygons.
Parameters for fine-tuning the returned polygons.
A (filtered, no NULLs) list of options to pass to the API
# NOT RUN {
targomoOptions(travelType = "transit")
targomoOptions(travelTimes = list("15m", "30m", "45m", "1h"), maxEdgeWeight = "1h")
# }
Run the code above in your browser using DataLab