update_distances: Updates a set of distance data with new data

Description Usage Arguments Value

Description

Queries, for each of the given geographical locations, distances to the nearest available bike for several timestamps in the past, from the JUMP Bikes database. Queries only data after the last timestamp of the provided dockless_dfc object. Database credentials are needed for this function.

Usage

1
2
update_distances(data, locations, to = Sys.time(), database_user,
  database_password)

Arguments

data

object of class dockless_dfc to be updated.

locations

object of class sf with point geometry.

to

timestamp of class POSIXct defining until which timestamp data should be queried. Default is set to the system time.

database_user

character defining the user name to access the database.

database_password

character defining the password to access the database.

Value

Returns the updated object of class dockless_dfc.


luukvdmeer/dockless documentation built on May 10, 2019, 1:24 p.m.