line2points()on some set-ups fixed (#418)
gclip()functions deprecated, maintained alternatives can now be found in other packages.
spobjects updated for latest version of
sfobjects updated to support more recent CRS encoding (#393)
od_radiation()have been removed
SpatialLinesNetwork()fixed thanks to Andrea Gilardi (#394)
endarguments in short path calculations are numeric
dodgrremoved as Suggests until it’s back on CRAN (#398)
dplyrcode to prevent warnings when using the dev version (#395)
route()allowing you to save a list of raw outputs and use
data.tablefor faster performance if available
route_rolling_*()functions have been added:
geo_toptail()function now has
route()for parallel routing (#388)
od_data_samplein different ways:
od_aggregate, have been deprecated
route()function calls when
pbapplywas not installed has been fixed (#386)
oneway()has been deprecated in favour of faster and easier-to-maintain function
od_oneway()(also see the in-development
route_graphhopper()should now work with a local graphhopper instance. See https://github.com/ropensci/stplanr/pull/369
line2route()function now works with routing functions that return
route()function is now more resilient, providing a progress bar if you have
pbapplypackage installed, returning a result even if some routes failed, and telling you which routes failed
od2line()fails due to non-matching ids
od2line()in the vignette: https://docs.ropensci.org/stplanr/articles/stplanr-od.html#non-matching-ids
sln_add_node()for adding new nodes to routes, route networks and
sfNetworkobjects, closing #342
line_to_points()function removed in favour of
sln_clean_graph()removes unconnected elements of
sfNetworkobjects. Credit to Andrea Gilardi. See (#344).
line2vertices()for breaking up linestrings representing route networks into smaller segments, in preparation for routing. See (#282) (which these functions address) and PR (#347) for details.
line_to_points()depreciated in favour of
od2line(), the latter function name being more consistent with the package’s other functions
line2pointsn()now works with
stplanr-odvignette, thanks to Edward Leigh
odmatrix_to_od()to convert between matrix forms of origin-destination data
onewayid(), works better and is twice as fast
od_id*()functions provide a range of ways to convert origin-destination pair IDs into a single ID. See Stackoverflow and the issue tracker
stplanr-odprovides detailed documentation on the package’s OD data handling capabilities
od_aggregate_to()provide easy ways to aggregate origin-destination pairs. See #303.
overline2()is now faster and better documented (#307)
route_dodgr()function, which provides an interface to the dodgr package, accepts wider range of inputs
overline()has been updated so it calls the much faster
dl_stats19()are depreciated. They have been split-out into the new package
route_dodgr()has now been implemented
overline2()has been added, thanks to Malcolm Morgan. This is faster than
odfunctions, a new
stplanr::od_coords2line()function, and more support of
route_dodgr()has been added
osm_net_example, has been added for local routing purposes.
route_graphhopper()has been fixed, see https://github.com/ropensci/stplanr/pull/297
install.packages()installs suggested packages by default
line_via()for identifying intermediary points on a transport network
geo_length()returns numeric vector of line lengths from sp or sf objects.
library(stplanr), making it less tied to sp. This is a continuation of the work to support sf and will make it easier for the package to work with alternative representations of geographic data.
geo_select_aeq.sf()was fixed by Jakub Nowosad in pull #238
od_aggregate.sf()was fixed making it much faster
bb2poly(). The new function can return polygons, points and matrix objects determined by the
outputargument. It also allows bounding boxes to be extended in metres, and scaled in x and y dimensions.
geo_code()now uses nominatim by default to find locations on the maps.
od_coords()takes a wide range of input data types to return a consistent output representing OD data as a data frame of origin and destination coordinates. This is used behind the scenes to make other functions more modular.
sum_network_routes()so it runs quicker - see pull/177.
find_network_nodes()- see e.g.
introducing-stplanrvignette has been updated. It now provides a more basic introduction for people new to R for spatial and transport data.
line2route()has been refactored to improve error detection and allow
n_processesarguments. Thanks @nikolai-b. See pull/151 for details.
line_match()function added, a wrapper around
rgeos::gDistance(), to find similar routes.
sp_aggregate()have been added, to enable OD data to be aggregated to new geographic levels.
onewayid()is now a generic function, meaning it can handle spatial and non-spatial data
line2route()allow you to specify variables to join-by - also has updated and more sensible defaults
od_id_order()to put origin-destination ids in order, to identify 2 way duplicates (split out from
example(od2line)for an example.
destinationsfor showing how OD matrix with destinations can be converted to spatial data
list_outputallows the route information to be saved as a list, allowing
save_raw = TRUE(which does not return a
Spatialobject) to be passed to the
reproject() is a simple wrapper around
spTransform() that uses
crs_select_aeq() to convert a spatial object in geographic (lat/lon) coordinates into on with projected coordinates, with units of 1 m. This is useful for various spatial operations, such as finding the length and area of an object.
gprojected(), a function for performing GIS operations on a temporary, projected, version of spatial objects.
line_bearing() to return the bearing of lines based on start and end points.
angle_diff() for finding the angular difference between lines: are they roughly parallel or perpendicular?
Update to OSRM functions to support API v5.
buff_geo() allows the results to be exported to any coordinate reference system (CRS).
gprojected() generalises concept of
buff_geo(), building on
crs_select_aeq() to allow any GIS query to be conducted on a temporary projected version of spatial objects with geographical CRSs.
od_dist() can quickly calculate Euclidean distances of OD pairs without converting to spatial objects.
Bug fix in
onewayid() so it captures all lines.
Various improvements to documentation and code.
Interface to the Google Distance Matrix
API with dist_google.
New transport planning API added, with
route_transportapi_public (for testing).
line2route, allowing it to accept different routing funtions via the new argument
route_fun (for testing - tested with
route_fun = route_cyclestreet).
New functions for creating origin-destination data frames (
point2odf) and SpatialLinesDataFrames (
is_linepoint for identifying the number of vertices in spatial objects and whether the ‘line’ is really a point.
line2routerefactored, with 10 fold speed increases on large (1000+) batches of lines.
Addition of new class definition
SpatialLinesNetwork, methods for
summary and functions
find_network_nodes allowing fast route calculations via igraph and other network analysis functions.
Functions for removing beginning and end of lines:
toptailgs. Helper functions
Functionality for reading in the UK’s stats19 data:
read_stats19_* functions download, unzip and re-categorise the data.
read_table functions added for reading Australian OD data.
decode_gl added to decode Google polylines and other functions for querying and reading data from OSRM services.
gtfs2sldf added to import GTFS routes as SpatialLinesDataFrames.