No articles match
Getting started24 days ago
Installation | Reading data | Processing data | Working in a database | Creating a connection | Non-persistent database | Persistent database | Reopening saved tables | Technical Note on Interoperability
Quick Start: Install OSRM and calculate routes27 days ago
Create a temporary directory and copy example OSM PBF file into it | Start local OSRM server | Load spatial data | Calculate route between sampled points | Plot the route on top of the street network | Stop local OSRM server and cleanup
Intro to r5r: Rapid Realistic Routing with R5 in R1 months ago
1. Introduction | 2. Installation | 3. Usage | 3.1 Data requirements: | 4. Demonstration on sample data | Data | 4.1 Building routable transport network with build_network() | 4.2 Accessibility analysis | 4.3 Routing analysis | Fast many to many travel time matrix | Expanded travel time matrix with minute-by-minute estimates | Detailed itineraries | Visualize results | Cleaning up after usage
Accessibility1 months ago
1. Introduction | 2. Build routable transport network with build_network() | Increase Java memory and load libraries | 3. Accessibility: quick and easy approach | 4. Accessibility: flexible approach | 5. Map Accessibility | 5.1 Choropleth maps | 5.2 Spatial interpolation | Cleaning up after usage | References
Trip planning with detailed_itineraries()1 months ago
1. Introduction | 2. Build routable transport network with build_network() | 3. Detailed info by trip segment for multiple trip alternatives | 3.1 Visualize results | 4. A few options: | 4.1 Combining orings and destinations | 4.2 Keep geometry data in the output | 5. Hack for frequency-based GTFS feeds | Cleaning up after usage
Benchmark3 months ago
TL;DR | Prepare data | Spatial join | Spatial filter | Spatial distances | Dissolving geometries | Geometry predicates
Codebook and cookbook for v2 (2022 onwards) Spanish mobility data3 months ago
1. Spatial data with zoning boundaries | 1.1 Districts | 1.2 Municipalities | 1.3 LUAs (Large Urban Areas) | 2. Mobility data | 2.1. Origin-destination data | 2.2. Population by trip count data | 2.3. Population by overnight stay data | Advanced use
Areal Interpolation3 months ago
Setup Data | 1) Extensive vs. Intensive Interpolation | Case A: Extensive Variables (Counts) | Case B: Intensive Variables (Densities/Ratios) | Visual Comparison | 2) High Performance: Output as Tibble | 3) Database Mode: Large Data Workflows | Cleanup
Spatial joins3 months ago
1) In-memory: pass sf, return sf | 2) Connected: pass table names in DuckDB, return sf | 3) Write-to-DB: create a new table with the join result | Spatial Join Predicates: | Clean up
Codebook and cookbook for v1 (2020-2021) Spanish mobility data4 months ago
1. Spatial data with zoning boundaries | 1.1 Districts | 1.2 Municipalities | 2. Mobility data | 2.1. Origin-Destination data | 2.2. Population by trip count data | Advanced use
Download and convert mobility datasets4 months ago
Introduction | Two ways to get the data | Analysing large datasets | How to choose between DuckDB, Parquet, and CSV | Analysis Speed | Convenience of data analysis | Scenarios of getting the data | Setup | Getting a single day with spod_get() | Analysing the data using DuckDB database | Convert to DuckDB | Load the converted DuckDB | Analysing the data using Parquet | Convert to Parquet | Load the converted Parquet | Download all available data | Download all data | Convert all data into analysis ready format | Conversion speed | Connecting to and analysing the converted datasets
Quicky get daily data4 months ago
Introduction | Setup | Get the data | Get all flows with at least 1000 trips | Get only trips of certain length | Get only trips between certain municipalities | All trips from Madrid | All trips from Madrid to Barcelona
Quick Start Guide: Java Setup for 'R' Projects5 months ago
1. Quickly Download and Install Java | Install rJavaEnv | Quick Install Java JDK | 2. List Available Java Versions | 3. Check Java installation | Note for Linux users | 4. Return things to their original state | Unset Java | Delete Java from the project directory | 5. Complete Cleanup
Step-by-step: Download, Install, and Setup Java for 'R' Projects5 months ago
1. Set-up cache folder location | 2. List available Java versions | 3. Download Java JDK distributions | 4. Manage downloaded Java JDK distributions | 5. Install from downloaded Java JDK distributions into current project | 6. Manually set installed Java environment | 7. Cleanup
Create grid directly on disk (low memory usage)6 months ago
Introduction | Example: Create a 100m grid for Spain | Setup | Get the country boundary | Create grid directly to GeoPackage | Performance Note | Create grid directly to GeoTIFF (raster) | Raster Attribute Tables (RAT) | Format-Specific RAT Behavior | Parallel Generation | Note on Parallel Backends | Read the grid from disk | Controlling memory usage | Automatic Memory Detection | Output formats | Vector formats (output_type = "sf_polygons" or "sf_points") | Recommended Formats | Other Supported Formats | Format Support | For Text Output | Raster formats (output_type = "spatraster") | Performance Comparison | Text/tabular formats (output_type = "dataframe") | Tips for large grids
Install rJava from source6 months ago
1. Install Java | 2. Set the environment for building rJava | 3. Install rJava from source | Order Matters: use_java() Before library(rJava)
Using rJavaEnv in R Packages6 months ago
The Critical Decision: Does Your Package Use rJava? | Scenario A: Packages Using Command-Line Java (No rJava) | Recommended Pattern: local_java_env() | Using with_java_env() | Performance: Using .use_cache | Controlling Whether to Use System Java | Scenario B: Packages Importing rJava | Pattern 1: The Guard (Recommended) | Pattern 2: Process Isolation (Advanced) | Choosing Between use_java and java_ensure | Strategy: "Inform and Guide" | 1. Add rJavaEnv to Imports | 2. Document the Requirement | 3. Optional: Provide a Setup Helper | Performance & Caching | When to use .use_cache = TRUE | Debugging | CI/CD (GitHub Actions)
Quick Start: dump R docs and vignettes to text files for LLMs7 months ago
Introduction | Installation | Example: Create a 1km grid for Luxembourg
Isochrones7 months ago
1. Introduction | 2. Build routable transport network with build_network() | Increase Java memory and load libraries | 3. Calculating and visualizing isochrones | 3.1 Polygon-based isochrones | 3.1 Line-based isochrones | Cleaning up after usage
Multiple Java environments in one project with targets and callr10 months ago
How to use use_java() | How to use with targets and callr
Accounting for monetary costs10 months ago
1. Introduction | 1.1 Details | 2. Reprex: the public transport system of Porto Alegre | 3. Setting up the fare structure | 3.1 Global Properties | max_discounted_transfers | transfer_time_allowance | fare_cap | 3.2 Configure fares by transport mode | 3.3 Configure fares by transfers | 3.4 Routes configuration | 4. Calculating travel time and accessibiilty accounting for monetary costs | 4.1 Travel time with monetary cost | 4.2 Calculating accessibility with monetary cost | Cleaning up after usage
Trade-offs between travel time and monetary cost10 months ago
1. Introduction | 2. What the pareto_frontier means. | 3. Demonstration of pareto_frontier(). | 3.1 Build routable transport network with build_network() | 3.2 Set up the fare structure | 3.3 Calculating a pareto_frontier(). | Cleaning up after usage | References
Travel time matrices10 months ago
1. Introduction | 2. Build routable transport network with build_network() | 3. The travel_time_matrix() function | 4. The expanded_travel_time_matrix() function | 4. The arrival_travel_time_matrix() function | Cleaning up after usage | References
Using the time_window parameter10 months ago
1. Introduction | The problem | The solution | 2. How the time_window works and how to interpret the results. | 3. Demonstration of time_window. | 3.1 Build routable transport network with build_network() | 3.2 Accessibility with time_window. | 3.3 Travel time matrix with time_window. | 3.4 Expanded travel time matrix with time_window. | 3.5 Detailed itineraries with time_window. | Cleaning up after usage | References
FAQ - Frequently Asked Questions10 months ago
1. Why do some trips from/to the same ID have travel times larger than zero? | 2. Is it possible to run r5r with custom modifications to street nework data? | 3. Why are the output results of time_travel_matrix() and detailed_itineraries() different? | 4. What does the ERROR "Geographic extent of street layer exceeds limit" mean? and what to do about it? | 5. Is it possible to use custom car speed data with r5r? | 6. Why do I get identical results by public transport and walking?
Using custom OSM car speeds and LTS11 months ago
1. Introduction | 2. Changing car speeds | 2.1 Changing car speeds by OSM edge | 2.1.1 Setting different congestion levels by road hierarchy | 2.1.2 Applying the same speed factor to all roads | Extra tip: | 2.2 Changing car speeds with a spatial polygon | 3. Changing cycling LTS values | 3.1 Changing LTS by OSM edge | 3.2. Changing LTS with a spatial polygon | Cleaning up after usage
Quick Start: dump R docs and vignettes to text files for LLMs1 years ago
Quick Start with Flowmap.blue R widget2 years ago
Create research compendia3 years ago
Case 1: Create a Turing-style research compendium | Other ideas | Case 2: Enhance an existing research compendium | What to share?
FAQ3 years ago
General questions | Docker questions | Apptainer/Singularity questions