sf
argument to geocode()
function. If TRUE
, the default, an {sf} object is returned, if FALSE
a data.frame with lng
and lat
columns. (@dpprdan, #44)intermodal_route()
adds support for requesting intermodal routes between given pairs of locations.set_verbose()
function to define (for the current R session) if the hereR
package should message information about the number of requests sent and data received (default = FALSE
).mapview
issue 271 is fixed.lwgeom
no longer exports st_make_valid()
, but sf
does. Therefore lwgeom
is moved from the package dependencies to the suggestions (see #38).traffic()
function, which has been replaced by the functions flow()
and incident()
.sf
0.9-0 (see #36).sf
package to version 0.9-0 due to a different CRS handling (for more information about the changes in sf, see here). Note: Older versions of the sf
package are no longer supported.mapview
issue 271 is fixed.route_matrix()
(see #30).origin
and destination
are now accepted as input in route_matrix()
(see #31).flow()
and incident()
to access traffic flow and incidents from the Traffic API. Deprecated the traffic()
function.set_auth()
and unset_auth()
are defunct and replaced by set_key()
and unset_key()
(see #23)..Deprecated()
was skipped because the API endpoints have also changed. After updating to a version greater than 0.2.1 the authentication must be adjusted.traffic(..., product = "flow")
. Now it is possible to only retrieve flow information of severe congestion with a jam factor greater than min_jam_factor
, which speeds up requests.connection()
implements requesting the most efficient and relevant transit connections between given pairs of locations.station()
retrieves nearby public transit stations with corresponding line information.start
parameter to origin
and unified the utilization of the datetime
and arrival
parameters in route()
, route_matrix()
, isoline()
and connection()
.c("POSIXct", "POSIXt")
inputs for the requests (mostly departure
) are converted to UTC using .encode_datetime()
and the responses are parsed and returned in the input timezone (or if missing: Sys.timezone()
) using .parse_datetime()
(see #28).@import sf
to the package documentation to ensure sf
objects are handled correctly.departure
and arrival
datetime column to the return value of route()
, route_matrix()
and isoline()
.data.table
object type from function return values. New: Pure data.frame
or sf, data.frame
because this integrates better with other packages (e.g. the overline2()
function from the stplanr
package).traffic()
: Clarified that from_dt
and to_dt
have no effect on the traffic flow (product = "flow"
). Traffic flow is always real-time. Detailed documentation of the variables in the return value.testthat
.id
column to the output of geocode()
and removed the id ordered row.names
in order to be consistent with other functions of the package. Using the id
column the addresses to geocode can be joined to the coordinates after geocoding (see #9).id
column also to autocomplete()
, reverse_geocode()
, route()
, isoline()
, traffic()
and weather()
. Using the id
column the result can be joined to the input..get_content()
. The id
column is still in correct order, even if there are failing requests in a function call (see #17).rownames() <- NULL
to all functions before returning the result.city
column in the returned object of weather()
to station
, as it stands for the name of the nearest meteorological station.geocode()
: In the case of empty responses the row names match the index of the geocoded addresses. Improved input checks. Option to use autocomplete by setting autocomplete = TRUE
.autocomplete()
allows autocompleting addresses.reverse_geocode()
implements reverse geocoding POIs in order to retrieve suggestions for addresses or landmarks.First release of the hereR
package, an sf
-based interface to the HERE REST APIs. The packages binds to the following HERE APIs:
Locations and routes are returned as sf
objects and tables as data.table
objects.