<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>GTFS | Marcin Stępniak</title>
    <link>https://marcinstepniak.eu/tags/gtfs/</link>
      <atom:link href="https://marcinstepniak.eu/tags/gtfs/index.xml" rel="self" type="application/rss+xml" />
    <description>GTFS</description>
    <generator>Source Themes Academic (https://sourcethemes.com/academic/)</generator><language>en-us</language><copyright>© Marcin Stepniak; 2019</copyright><lastBuildDate>Mon, 18 May 2020 00:00:00 +0000</lastBuildDate>
    <image>
      <url>https://marcinstepniak.eu/img/icon-192.png</url>
      <title>GTFS</title>
      <link>https://marcinstepniak.eu/tags/gtfs/</link>
    </image>
    
    <item>
      <title>Temporal resolution</title>
      <link>https://marcinstepniak.eu/projects/calculus/main_results/temporal_resolution/</link>
      <pubDate>Sun, 05 May 2019 00:00:00 +0100</pubDate>
      <guid>https://marcinstepniak.eu/projects/calculus/main_results/temporal_resolution/</guid>
      <description>

&lt;p&gt;The study of an impact of temporal resolution on precision of travel time and accessibility measurement in public transport analysis.&lt;/p&gt;

&lt;h2 id=&#34;publication&#34;&gt;Publication&lt;/h2&gt;

&lt;p&gt;Stępniak, M., Pritchard, J. P., Geurs, K. T., &amp;amp; Goliszek, S. (2019). The impact of temporal resolution on public transport accessibility measurement: Review and case study in Poland. Journal of Transport Geography, 75, 8–24. &lt;a href=&#34;https://doi.org/10.1016/j.jtrangeo.2019.01.007&#34; target=&#34;_blank&#34;&gt;https://doi.org/10.1016/j.jtrangeo.2019.01.007&lt;/a&gt; (&lt;strong&gt;Open access&lt;/strong&gt;)&lt;/p&gt;

&lt;h3 id=&#34;abstract&#34;&gt;Abstract&lt;/h3&gt;

&lt;p&gt;In recent years there has been a significant increase of temporally variable analyses of accessibility by public transport as a result of the increased availability of open and standardized time table information in the form of GTFS (General Transit Feed Specification) data. To date, very little attention has been paid to systematically analyze the impact of temporal resolutions on the results. Different authors have applied different standards, often in an ad-hoc manner. In this study, we address the loss of precision associated with a stepwise reduction of the temporal resolution of travel time estimations based on GTFS data for the city of Szczecin in Poland. The paper aims to provide guidance to researchers and practitioners on the selection of appropriate temporal resolutions in accessibility studies. We test four sampling methods in order to analyze four different public transport frequency scenarios, three types of accessibility measures (travel time to the nearest provider, cumulative opportunities measure and potential accessibility) and seven types of destinations ranging from high to low centrality. Additionally, the impact on spatial disparities is explored using the Gini coefficient.&lt;/p&gt;

&lt;p&gt;We find that a reduction of temporal resolution is associated with a decrease in precision of public transport accessibility measurement. However, with up to 5-min resolutions this reduction is negligible, while computational time is reduced fivefold, compared to a 1-min resolution benchmark. Lower temporal resolutions still provide relatively precise estimations of travel times and accessibility measures. However, further resolution reductions are associated with decreasing reductions of computational time. As a result, we argue that 15-min temporal resolution provides a good balance between precision and computational time while providing very precise estimations of Gini coefficients (errors ≤0.001).&lt;/p&gt;

&lt;p&gt;A non-linear relationship is found between the public transport frequency and the loss of precision, with lower frequencies leading to a greater loss in precision. More attention should be paid to highly centralized services, in particular when analyzed using proximity and cumulative opportunities measures. Finally, the cumulative opportunities measure is found to be highly sensitive to changes in the temporal resolution and not suited for time-sensitive accessibility analysis.&lt;/p&gt;

&lt;h2 id=&#34;repository&#34;&gt;Repository&lt;/h2&gt;

&lt;p&gt;All the data used for the study, including its detailed description, can be downloaded from the open data repository ( &lt;a href=&#34;http://dx.doi.org/10.18150/repod.7727991&#34; target=&#34;_blank&#34;&gt;link&lt;/a&gt;). The data is shared under the &lt;a href=&#34;https://creativecommons.org/licenses/by/4.0/&#34; target=&#34;_blank&#34;&gt;CC-BY-4.0&lt;/a&gt; licence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reference&lt;/strong&gt;: Stepniak, M.; Goliszek, S.; Pritchard, J.; Geurs, K. (2019) The impact of temporal resolution on public transport accessibility measurement. RepOD. &lt;a href=&#34;http://dx.doi.org/10.18150/repod.7727991&#34; target=&#34;_blank&#34;&gt;http://dx.doi.org/10.18150/repod.7727991&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All the &lt;strong&gt;R code&lt;/strong&gt; used for the analysis is available from the github repository: &lt;a href=&#34;https://github.com/stmarcin/Temporal-paper&#34; target=&#34;_blank&#34;&gt;https://github.com/stmarcin/Temporal-paper&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Additionally, a separate code which can be used to generate departure times for a given day (e.g. to conduct accessibility analysis or calculate origin-destination matrices), using user-defined sampling method and temporal resolution is stored in separated github repo: &lt;a href=&#34;https://github.com/stmarcin/Sampling_Departure_Time&#34; target=&#34;_blank&#34;&gt;https://github.com/stmarcin/Sampling_Departure_Time&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;br&gt;&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>GTFS study</title>
      <link>https://marcinstepniak.eu/projects/calculus/main_results/gtfs_study/</link>
      <pubDate>Sun, 05 May 2019 00:00:00 +0100</pubDate>
      <guid>https://marcinstepniak.eu/projects/calculus/main_results/gtfs_study/</guid>
      <description>

&lt;p&gt;Evaluation of a supply side of public transport using GTFS data.&lt;/p&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;aim&lt;/strong&gt; of the study is to evaluate a supply side of public transport. The assumption that lies behind this study is that it should minimize the amount of data required and to guarantee its fully replicability. The result is a set of indicators which enable to evaluate public transport network in a given area and easily compare the results between different cities, functional urban areas (FUA) or metropolises, including international comparisons.&lt;/p&gt;

&lt;p&gt;The presented example uses an example of Madrid.&lt;/p&gt;

&lt;h2 id=&#34;data&#34;&gt;Data&lt;/h2&gt;

&lt;p&gt;Three different types of data are used in the study:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://developers.google.com/transit/gtfs/&#34; target=&#34;_blank&#34;&gt;GTFS&lt;/a&gt; (General Transit Feed Specification) which composes of a series of text files with data which contain all information about public transport schedules and associated geographic information.&lt;br /&gt;
Data source for an example: Open data from the &lt;a href=&#34;https://datos.crtm.es&#34; target=&#34;_blank&#34;&gt;Consorcio Regional de Transportes de Madrid&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;




  




&lt;figure&gt;

  &lt;a data-fancybox=&#34;&#34; href=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_scheme.png&#34; &gt;

&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_scheme.png&#34; &gt;
&lt;/a&gt;


&lt;figcaption data-pre=&#34;Figure &#34; data-post=&#34;:&#34; &gt;
  &lt;h4&gt;GTFS feed (part)&lt;/h4&gt;
  
&lt;/figcaption&gt;

&lt;/figure&gt;


&lt;ul&gt;
&lt;li&gt;Route network derived from &lt;a href=&#34;https://www.openstreetmap.org&#34; target=&#34;_blank&#34;&gt;OpenStreetMaps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Data on population distribution: population grids from Eurostat &lt;a href=&#34;https://ec.europa.eu/eurostat/statistics-explained/index.php/Population_grids#The_GEOSTAT_initiative&#34; target=&#34;_blank&#34;&gt;GEOSTAT initiative&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&#34;evaluation&#34;&gt;Evaluation&lt;/h2&gt;

&lt;p&gt;The evaluation procedure is divided into three main parts, preceded by an overview of available (or colleced) GTFS data:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;stops location and their accessibility&lt;/li&gt;
&lt;li&gt;frequency of service&lt;/li&gt;
&lt;li&gt;accessibility&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&#34;preview&#34;&gt;Preview&lt;/h2&gt;

&lt;p&gt;Before the evaluation, there is a need to revise a basic spatial and temporal information about all available &lt;em&gt;feeds&lt;/em&gt; for a given case study. A map shows a spatial range of all available GTFS &lt;em&gt;feeds&lt;/em&gt; comparing to the city and FUA limits.&lt;br /&gt;
&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_spatial_map.png&#34; width = 300/&gt;&lt;/p&gt;

&lt;p&gt;The table provides information about the names and temporal coverages of all &lt;em&gt;feeds&lt;/em&gt; in order to confirm that they cover the same period of time. It is also used to select a &amp;ldquo;typical day&amp;rdquo; for further analyses (different &lt;em&gt;feeds&lt;/em&gt; contain a calendar data coded in a different way, thus a selection of one day is necessary in order to avoid a double-counting of particular trips and/or departures). In this example, based on the data shown in the table, we focus on a &amp;ldquo;typical working day&amp;rdquo;: &lt;code&gt;2018/09/11&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_table.png&#34; width = 450/&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&#34;stops-location&#34;&gt;Stops location&lt;/h2&gt;

&lt;p&gt;First part of the evaluation focus on a description of public transport network, its spatial pattern and accessibility. The table summarize basic indicators of the network using all available GTFS &lt;em&gt;feeds&lt;/em&gt;, providing insights about existing transport modes, number of stops and total number of the departures during the selected day.&lt;br /&gt;
&lt;strong&gt;Note:&lt;/strong&gt; due to different systems of coding of calendar, departure times and frequencies. The table provides unified information, regardless:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;existence of &lt;code&gt;frequencies.txt&lt;/code&gt; file - if this file exists, not every departure time is listed in &lt;code&gt;stop_times.txt&lt;/code&gt;, what needs to be recalculated; this is usually the case of high frequency transport modes, like metro;&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;overlapping calendar data - some datasets code departure time as 25:30:00 (HH:MM:SS, i.e. 01:30:00 + 1 day) which refers to the departure realized the next day in relation to the analysed. If this is the case, there is a need to include part of the departures which are assigned to the previous day than selected for the analysis.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Finally, apart from the division by transport modes, the table summarize differences between the city within its limits, FUA and the whole GTFS dataset(s).&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_summary.png&#34; /&gt;&lt;/p&gt;

&lt;p&gt;Then, maps visualize distribution of public transport stops in order to analyse their spatial pattern and, e.g. compare a supply of public transport during the day (peak hours) and night (low frequency, limited service).&lt;/p&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th align=&#34;center&#34;&gt;city&lt;/th&gt;
&lt;th align=&#34;center&#34;&gt;FUA&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;

&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;stops in service during peak hours&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_fua_departures_peak_hours.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gffs_city_departures_peak_hours.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;stops in service during a night&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_fua_departures_night.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_city_departures_night.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;The last part focuses on &lt;strong&gt;accessibility to public transport&lt;/strong&gt;: what is a walking distance to the nearest stop in service? What is a difference between peak hours and night time? What is a difference between the city and its FUA? The next set of maps and graph address these questions.&lt;/p&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th align=&#34;center&#34;&gt;city&lt;/th&gt;
&lt;th align=&#34;center&#34;&gt;FUA&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;

&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;walking distance to stops in service during peak hours&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_distance_fua_peak_hours.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_distance_city_peak_hours.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;walking distance to stops during a night&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_distance_fua_night.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_distance_city_night.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_distance_to_nearest_stop.png&#34; width = 350/&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&#34;frequency&#34;&gt;Frequency&lt;/h2&gt;

&lt;p&gt;The frequency of public transport differs in a course of a day, in line with peaks and valleys of density of human mobility: more departures take place during peak hours, less in out-of-peak period and much less during the night. Each city or each country has its own curve of daily changes of frequency. Nevertheless, it is important to properly identify periods different frequency, especially, when doing international comparisons. These differences are visualized by the graph presented below. Note, that y-axis shows a total number of departures and not frequency - the latter would be difficult to visualize as there are changes in e.g. number of lines. Moreover, some differences in frequency patterns may occur between a city and its FUA, so both patterns are presented simultaneously. Additionally, it enables to check what share of departures in the all FUA are realized within city limits and how it changes during a day.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_frequencies_fua.png&#34; width = 400/&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&#34;accessibility-by-public-transport&#34;&gt;Accessibility by public transport&lt;/h2&gt;

&lt;p&gt;Regardless the number of stops, lines, departures etc., the most important function of public transport is to enable people to reach their destinations. Thus, the most important indicator which evaluates public transport network is a level of accessibility which offers this network. In this example, a potential accessibility is used, with the number of population as a proxy of destination&amp;rsquo;s attractiveness. This indicator includes relations between all pairs of origin–destination nodes in a given area and it assumes the greater importance of larger centres than smaller ones and the diminishing attractiveness of more distantly located destinations and it is expressed by the following formula.&lt;/p&gt;

&lt;p&gt;$$A_ {i} = \sum_{j}g(M_j)*f{(t_{ij} )} $$&lt;/p&gt;

&lt;p&gt;where $A_i$ is a potential accessibility of a zone $i$, $g(M_j)$ is the function of destination attractiveness of a zone $j$ (e.g. number of population&lt;sup&gt;1&lt;/sup&gt;), and $f{(t_{ij} )}$ is a distance decay function. In a given example, a negative exponential is used as distance decay function, with $\beta = 0.0223$ (i.e. a destination loses half-value of its attractiveness at 31 minutes travel time).&lt;/p&gt;

&lt;p&gt;&lt;sup&gt;1&lt;/sup&gt; we use number of population due to the fact that population data are the most broadly available in high resolution datasets.&lt;/p&gt;

&lt;p&gt;The results are presented as a set of maps which compare level of accessibility during the day (peak hours) and night and they are presented in a high resolution level of 1km&lt;sup&gt;2&lt;/sup&gt; grids. Map for FUA are accompanied by zoom-in maps limited to the city area.&lt;/p&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th align=&#34;center&#34;&gt;city&lt;/th&gt;
&lt;th align=&#34;center&#34;&gt;FUA&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;

&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;accessibility by public transport during peak hours&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_fua_Ai_peak_hours.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_city_Ai_peak_hours.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;accessibility by public transport during a night&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_fua_Ai_night.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_city_Ai_night.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;The last graph compares a share of population which has a particular level of accessibility (as a relation to the highest possible value measured in during a day).&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_accessibility_population.png&#34; width = 450/&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&#34;contributors&#34;&gt;Contributors&lt;/h2&gt;

&lt;p&gt;This study was prepared in collaboration with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Chris Jacobs-Crisioni (European Commission, Joint Research Centre)&lt;/li&gt;
&lt;li&gt;David Sousa Vale (University of Lisbon)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;br&gt;&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Policy support tool</title>
      <link>https://marcinstepniak.eu/projects/calculus/main_results/policy_support_tool/</link>
      <pubDate>Sun, 05 May 2019 00:00:00 +0100</pubDate>
      <guid>https://marcinstepniak.eu/projects/calculus/main_results/policy_support_tool/</guid>
      <description>

&lt;p&gt;Policy support tool for efficient transport policy: using temporal sensitive transport data to identify main accessibility restrictions.&lt;/p&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;main aim&lt;/strong&gt; of the study is to prepare a methodological guidelines and describe data needs related to the evaluation of an impact of particular transport related restrictions of accessibility at the level of the whole city or metropolitan area (global restrictions) and spatial pattern of their distribution (local restrictions). The results of the analyses enable to identify main causes of the limited accessibility in a given area which in turn can be used as a base of the strategic decisions leading towards more efficient transport system.&lt;/p&gt;

&lt;p&gt;The study extensively uses a potential of new, temporally sensitive data sources and methods which incorporate a temporal variability into the accessibility analysis. New data facilitates to compare accessibility by different transport modes (e.g. public transport and private car), as well as to identify different factors affecting spatial patterns of accessibility, including geography, quality of transport network and congestion levels and organization of public transport, including its routing, frequencies and timing.&lt;/p&gt;

&lt;p&gt;The bottom line of the study is to apply a &lt;em&gt;comparative approach&lt;/em&gt; in order to detect main reasons that limit accessibility level in particular areas. We compute travel times by private car using free flow and congested speeds, and we calculate travel times by public transport with a fine temporal resolution, applying a schedule-based, public transport data (&lt;a href=&#34;https://developers.google.com/transit/gtfs/&#34; target=&#34;_blank&#34;&gt;GTFS&lt;/a&gt; format).  Additionally, we prepare a &lt;em&gt;pseudo-GTFS&lt;/em&gt; dataset, transforming the original &lt;em&gt;GTFS feeds&lt;/em&gt; in a way that we exclude any waiting time from the model, i.e. travel time includes only in-vehicle time (or times in case of transfers) and walking to, from (i.e. from origin to stop and from the final stop to the destination) and between public transport stops (in case of transfers).&lt;/p&gt;

&lt;p&gt;The presented document uses Madrid as a case study and focuses on accessibility to jobs during the morning peak hours (i.e. 7-10am). However, depending on particular needs and availability of data, jobs might be replaced by any other type of destination.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&#34;data&#34;&gt;Data&lt;/h2&gt;

&lt;p&gt;The main characteristic of the tool are small data requirements. In fact it requires three types of data:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;road network data which permits to calculate travel time with free flow and congested speeds;&lt;/li&gt;
&lt;li&gt;GTFS feed in order to calculate travel time by public transport (for the details consult &lt;a href=&#34;projects/calculus/main_results/gtfs_study/&#34; target=&#34;_blank&#34;&gt;GTFS study&lt;/a&gt;);&lt;/li&gt;
&lt;li&gt;data for the origin-destinations zones&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Ad. 1. In the presented example of the application of the tool the TomTom® Speed Profiles are used in order to prepare origin-destination matrices with free flow and congested speeds. However, Speed Profiles can be replaced by another (similar) data (e.g. &lt;a href=&#34;https://www.openstreetmap.org/&#34; target=&#34;_blank&#34;&gt;OpenStreetMaps&lt;/a&gt;, &lt;a href=&#34;https://www.here.com/products/traffic-solutions&#34; target=&#34;_blank&#34;&gt;HERE Traffic&lt;/a&gt;, &lt;a href=&#34;https://app.traveltimeplatform.com&#34; target=&#34;_blank&#34;&gt;TravelTime Platform&lt;/a&gt; or &lt;a href=&#34;http://inrix.com/products/&#34; target=&#34;_blank&#34;&gt;Inrix Traffic&lt;/a&gt;, among others).&lt;/p&gt;

&lt;p&gt;Speed Profiles is a network dataset, where a particular edge of the network (i.e. road segment) contains a very precise information about an average travel speed, depending on: day of the week and hour with 5-minute temporal resolution. The graph below presents a relative change of speed during the course of the day (typical working day) with 100 equal to a free flow speed of a particular road segment. The graph presents a shape of curves of almost 300 different &amp;ldquo;speed profiles&amp;rdquo;.&lt;/p&gt;




  




&lt;figure&gt;

  &lt;a data-fancybox=&#34;&#34; href=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/Speed_profiles_all.png&#34; &gt;

&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/Speed_profiles_all.png&#34; &gt;
&lt;/a&gt;


&lt;figcaption data-pre=&#34;Figure &#34; data-post=&#34;:&#34; &gt;
  &lt;h4&gt;Figure: Speed Profiles&lt;/h4&gt;
  
&lt;/figcaption&gt;

&lt;/figure&gt;


&lt;p&gt;Ad. 2. GTFS feeds used for this example are provided by &lt;a href=&#34;https://datos.crtm.es&#34; target=&#34;_blank&#34;&gt;Consorcio Regional de Transportes de Madrid&lt;/a&gt;.&lt;/p&gt;




  




&lt;figure&gt;

  &lt;a data-fancybox=&#34;&#34; href=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_scheme.png&#34; &gt;

&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/GTFS/gtfs_scheme.png&#34; &gt;
&lt;/a&gt;


&lt;figcaption data-pre=&#34;Figure &#34; data-post=&#34;:&#34; &gt;
  &lt;h4&gt;Figure: Structure of GTFS feed (sample)&lt;/h4&gt;
  
&lt;/figcaption&gt;

&lt;/figure&gt;


&lt;p&gt;Apart from &lt;em&gt;real&lt;/em&gt; GTFS feed a &lt;em&gt;pseudo-GTFS&lt;/em&gt; is required in order to evaluate an impact of route network (routing scheme) on accessibility level. The &lt;em&gt;pseudo-GTFS&lt;/em&gt; is a public transport network dataset with no waiting times included (i.e. door-to-door travel time is equal to in-vehicle and walking to/from/between stops).&lt;/p&gt;

&lt;p&gt;Ad. 3. This example focuses on accessibility to jobs and it uses number of jobs as a proxy of destination attractiveness. The data are provided by &lt;a href=&#34;http://www.madrid.org/iestadis/fijas/estructu/economicas/ocupacion/estructucolectivo.htm&#34; target=&#34;_blank&#34;&gt;Instituto de Estadistica de Comunidad de Madrid&lt;/a&gt;. Additionally the population number per zone is used in order to: (1) remove areas of low population density from the analysis, and (2) to calculate weighted averages of accessibility level at the city level.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&#34;data-preparation-and-preliminary-analysis&#34;&gt;Data preparation and preliminary analysis&lt;/h2&gt;

&lt;h4 id=&#34;preparation-of-origin-destination-matrices&#34;&gt;Preparation of Origin-Destination matrices&lt;/h4&gt;

&lt;p&gt;The input data for the the analysis are several origin-destination matrices (OD matrices) for a particular transport mode. As travel time by public transport highly depends on the departure time (as it affects waiting times, transfer times etc.) in case of public transport there are several OD matrices, one for each of the departure times. Based on the previous &lt;a href=&#34;https://doi.org/10.1016/j.jtrangeo.2019.01.007&#34; target=&#34;_blank&#34;&gt;study&lt;/a&gt; we use a hybrid sampling method and 5-minute temporal resolution, in order to reduce an impact of temporal resolution on travel time measurement. In result, we use 36 OD matrices which are then aggregated in order to obtain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;average travel time (using a hybrid-based average, for the details see: &lt;a href=&#34;http://www.sciencedirect.com/science/article/pii/S0966692316305385&#34; target=&#34;_blank&#34;&gt;Stępniak and Jacobs-Crisoni, 2017)&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;minimum travel time in order to prepare a &amp;ldquo;&lt;em&gt;best-case scenario&lt;/em&gt;&amp;rdquo; (the highest possible accessibility level of a given area during the morning peak hours).&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;maximum travel time in order to prepare a &amp;ldquo;&lt;em&gt;worst-case scenario&lt;/em&gt;&amp;rdquo;&lt;br /&gt;
The last two are used to o evaluate an impact of public transport schedule on accessibility level, i.e. to what extent the fact that one can (or cannot) freely select their departure time affects the level of accessibility they experience.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In case of private &lt;strong&gt;car&lt;/strong&gt; accessibility, two matrices are required: one for flee flow speeds and one for congested speeds. In case of availability of more temporally detailed data (i.e. several OD matrices for different departure times, e.g. every 15 minutes), the minimum and maximum travel time may be prepared, as it is done in case of public transport. Nevertheless, the variability of travel time by car is more regular and smooth, thus this information is only a supplementary one.&lt;/p&gt;

&lt;p&gt;In result the number of OD matrices is limited to eight: four for public transport and four for private car travel times.&lt;/p&gt;

&lt;h3 id=&#34;accessibility-calculation&#34;&gt;Accessibility calculation&lt;/h3&gt;

&lt;p&gt;In the second step, the &lt;strong&gt;accessibility&lt;/strong&gt; values for each of the scenarios are calculated. In this case a potential accessibility measure is used:&lt;/p&gt;

&lt;p&gt;`$$A_ {i} = \sum_{j}g(M_j)*f{(t_{ij} )} $$&lt;/p&gt;

&lt;p&gt;where $ A_i $ is a potential accessibility of a zone $ i $, $ g(M_j) $ is the function of destination attractiveness of a zone $ j $ (e.g. number of job), and $ f{(t_{ij} )} $ is a distance decay function. In a given example, a negative exponential is used as distance decay function, with $ \beta = 0.0223 $ (i.e. a destination loses half-value of its attractiveness at 31 minutes travel time).&lt;/p&gt;

&lt;p&gt;Additionally, the coefficient of variation is calculated as it facilitates to evaluate a variability of travel time on accessibility level (only for public transport accessibility).&lt;/p&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th align=&#34;left&#34;&gt;&lt;strong&gt;Scenario Abbreviation&lt;/strong&gt;&lt;/th&gt;
&lt;th align=&#34;left&#34;&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/th&gt;
&lt;th align=&#34;left&#34;&gt;&lt;strong&gt;Comment&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;

&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&#34;left&#34;&gt;&lt;strong&gt;Car accessibility&lt;/strong&gt;&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;left&#34;&gt;FreeFlow&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;Free flow speed&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;Benchmark scenario&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;left&#34;&gt;Car_Best&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;Car best-case scenario&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;Congestion&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;left&#34;&gt;Car_Avg&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;Average car&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;Congestion&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;left&#34;&gt;Car_Worst&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;Car worst-case scenario&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;Congestion&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;left&#34;&gt;&lt;strong&gt;Public transport accessibility&lt;/strong&gt;&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;left&#34;&gt;FullFreq&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;PT - no waiting time&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;PT route network&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;left&#34;&gt;PT_Best&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;PT best-case scenario&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;Frequency of PT&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;left&#34;&gt;PT_Avg&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;Average PT&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;Frequency of PT&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;left&#34;&gt;PT_Worst&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;PT worst-case scenario&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;Frequency of PT&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;left&#34;&gt;PT_VarCoeff&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;Coefficient of variation of PT accessibility&lt;/td&gt;
&lt;td align=&#34;left&#34;&gt;variability of PT accessibility&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;The dataset which contains all the data above can be found in the project open data &lt;a href=&#34;http://127.0.0.1:4321/projects/calculus/repository/open_data/#madrid-accessibility&#34; target=&#34;_blank&#34;&gt;repository&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&#34;spatial-pattern-of-accessibility&#34;&gt;Spatial pattern of accessibility&lt;/h3&gt;

&lt;p&gt;Once accessibility values are calculated, we can focus on preliminary analysis of spatial patterns of accessibility in particular scenarios. Four of them are particularly important from the policy perspective: accessibility by car with free flow speeds, accessibility by car with congested speeds, accessibility by public transport in &lt;em&gt;no-waiting-times&lt;/em&gt; scenario and average accessibility by public transport. In order to facilitate comparison of maps, all of them follow the same color palette and breaks.&lt;/p&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th align=&#34;center&#34;&gt;accessibility by car&lt;/th&gt;
&lt;th align=&#34;center&#34;&gt;accessibility by public transport&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;

&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/FreeFlow.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/FullFreq.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/Car_Avg.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/PT_Avg.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;The preliminary analysis of spatial patterns of accessibility enable to identify main regularities in spatial distribution of accessibility level. First, it seems that all of them follow the same central-periphery division. However, some irregularities as well as differences between scenarios can be found. In case of congestion, there is a difference between south and north (and south-west in particular), while in case of public transport we can find a &lt;em&gt;star-shape&lt;/em&gt; pattern, along the rail links.
Moreover, one can find a strong difference in accessibility level between car and public transport scenarios. The next section focuses on these general differences.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&#34;accessibility-restrictions-at-city-scale&#34;&gt;Accessibility restrictions at city scale&lt;/h2&gt;

&lt;p&gt;The aim of this section is to facilitate a general comparison accessibility values in different scenarios and detect the main factors which limits accessibility at the city (metropolitan) level. The box-plot shows a general distribution of accessibility level, while table focuses on relative differences, but it additionally uses population weighted averages in order to reflect the extend to which observed differences affect inhabitants.&lt;/p&gt;




  




&lt;figure&gt;

  &lt;a data-fancybox=&#34;&#34; href=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/Ai_comparison.png&#34; &gt;

&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/Ai_comparison.png&#34; &gt;
&lt;/a&gt;


&lt;figcaption data-pre=&#34;Figure &#34; data-post=&#34;:&#34; &gt;
  &lt;h4&gt;Speed Profiles&lt;/h4&gt;
  
&lt;/figcaption&gt;

&lt;/figure&gt;


&lt;p&gt;First, we can see that accessibility in all car scenarios are higher than in public transport ones. The exception is made only for not realistic scenario with no-waiting times, which is slightly higher than the most congested scenario.
Second, the impact of congestion is less significant (less than 10%) than impact of change of transport mode (~25%). Finally, selection of a particular departure time is more important in case of travel by public transport than in case of car trips (difference between best and worst case scenarios: 90.7% vs 78.1%). This shows that those who travel by public transport have to larger extent adapt their daily schedule to public transport schedule than car traveler to the traffic conditions (congestion).&lt;/p&gt;

&lt;table class=&#34;table table-striped table-hover table-bordered&#34; style=&#34;width: auto !important; margin-left: auto; margin-right: auto;&#34;&gt;
&lt;caption&gt;Table 1: Population weighted relative differences between all accessibility scenarios&lt;/caption&gt;
 &lt;thead&gt;
&lt;tr&gt;
&lt;th style=&#34;border-bottom:hidden&#34; colspan=&#34;1&#34;&gt;&lt;/th&gt;
&lt;th style=&#34;border-bottom:hidden; padding-bottom:0; padding-left:3px;padding-right:3px;text-align: center; &#34; colspan=&#34;4&#34;&gt;&lt;div style=&#34;border-bottom: 1px solid #ddd; padding-bottom: 5px; &#34;&gt;Car accessibility&lt;/div&gt;&lt;/th&gt;
&lt;th style=&#34;border-bottom:hidden; padding-bottom:0; padding-left:3px;padding-right:3px;text-align: center; &#34; colspan=&#34;3&#34;&gt;&lt;div style=&#34;border-bottom: 1px solid #ddd; padding-bottom: 5px; &#34;&gt;Public transport accessibility&lt;/div&gt;&lt;/th&gt;
&lt;/tr&gt;
  &lt;tr&gt;
   &lt;th style=&#34;text-align:left;&#34;&gt; scenario &lt;/th&gt;
   &lt;th style=&#34;text-align:right;&#34;&gt; Free flow &lt;/th&gt;
   &lt;th style=&#34;text-align:right;&#34;&gt; Best &lt;/th&gt;
   &lt;th style=&#34;text-align:right;&#34;&gt; Average &lt;/th&gt;
   &lt;th style=&#34;text-align:right;&#34;&gt; Worst &lt;/th&gt;
   &lt;th style=&#34;text-align:right;&#34;&gt; no waiting times &lt;/th&gt;
   &lt;th style=&#34;text-align:right;&#34;&gt; Best &lt;/th&gt;
   &lt;th style=&#34;text-align:right;&#34;&gt; Average &lt;/th&gt;
  &lt;/tr&gt;
 &lt;/thead&gt;
&lt;tbody&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:left;width: 3.5cm; &#34;&gt; Car Best case &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 95.4 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:left;width: 3.5cm; &#34;&gt; Car Average &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 90.3 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 94.6 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:left;width: 3.5cm; &#34;&gt; Car Worst case &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 86.5 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 90.7 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 95.8 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:left;width: 3.5cm; &#34;&gt; PT no waiting times &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 87.1 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 91.3 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 96.6 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 100.9 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:left;width: 3.5cm; &#34;&gt; PT Best case &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 76.5 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 80.2 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 84.8 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 88.5 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 87.7 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:left;width: 3.5cm; &#34;&gt; PT Average &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 68.0 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 71.2 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 75.3 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 78.6 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 77.8 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 88.7 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt;  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:left;width: 3.5cm; &#34;&gt; PT Worst case &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 59.9 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 62.7 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 66.3 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 69.2 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 68.5 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 78.1 &lt;/td&gt;
   &lt;td style=&#34;text-align:right;width: 2cm; &#34;&gt; 87.9 &lt;/td&gt;
  &lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&#34;accessibility-restrictions-at-local-scale&#34;&gt;Accessibility restrictions at local scale&lt;/h2&gt;

&lt;p&gt;This section focuses on spatial pattern of impact of particular accessibility restrictions. The title of a particular map indicates which of the two scenarios are compared against each other. The in-depth analysis enable to evaluate the extent to which a particular transport-related accessibility restriction affects inhabitants of a given zone.&lt;/p&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th align=&#34;center&#34;&gt;Spatial pattern of accessibility restrictions&lt;/th&gt;
&lt;th align=&#34;center&#34;&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;

&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/Restriction_Congestion.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/Restriction_Route_network.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/Restriction_Intermodal.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;td align=&#34;center&#34;&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/Restriction_Frequency.png&#34; width = 350/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&#34;bivariate-maps&#34;&gt;Bivariate maps&lt;/h2&gt;

&lt;p&gt;The next set of maps focuses on an evaluation of impacts of pairs of factors. As the maps presented above show a spatial pattern of impact of a particular restriction, bivariate maps puts these results in the broader context. Apart of the evaluation of a given factor, they inform what these restrictions means for inhabitants, e.g. congestion affects inhabitants in the areas with low level of accessibility by public transport to the larger extent, as people have limited alternatives other than travel in traffic jams). Using this kind of illustration facilitates to identify areas of intervention which should be addressed in the first order.&lt;/p&gt;

&lt;p&gt;First map confronts impact of congestion and the level of accessibility by public transport. If high level of congestion affects areas with relatively efficient public transport, it may stimulate inhabitants to use public transport instead of private car, as it becomes to be more competitive. On the contrary, high level of congestion and low accessibility by public transport means that inhabitants are &lt;em&gt;stuck&lt;/em&gt; in traffic jams because they don´t have any reasonable alternative. In this case policy makers (or transport planners) should focus on this area first.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/biv_congestion.png&#34; width = 400/&gt;&lt;/p&gt;

&lt;p&gt;Second map facilitates to identify how public transport can be improved: to what extent accessibility in a given area is limited due to low (insufficient) frequency or in order to improve accessibility, there is a need to reorganize a route network of public transport.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/bic_route_frequency.png&#34; width = 400/&gt;&lt;/p&gt;

&lt;p&gt;The third map analyse to what extent inhabitants of particular zones are double affected by limited accessibility by public transport, i.e. not only by low average level of accessibility by public transport, but also by the high variation in accessibility level (so to larger extent their daily schedule need to focus a public transport schedule).&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/CALCULUS/Decision_tool/bic_intermodal_temporal.png&#34; width = 400/&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&#34;concluding-remarks&#34;&gt;Concluding remarks&lt;/h2&gt;

&lt;p&gt;The presented decision support tool facilitates an identification of the most severe restrictions of accessibility level, so transport planners and policy makers will know what they should focus on in order to improve quality of life of inhabitants of a city. It provides a general information about the most important accessibility restriction at the city level and provides a set of very detailed information about the spatial pattern of impacts of particular restrictions.&lt;br /&gt;
In the future, a technical note will be shared through a github repository and relevant information will be shared through &lt;a href=&#34;https://marcinstepniak.eu/projects/calculus/repository/open_code/&#34;&gt;project repository&lt;/a&gt;. At the moment, an example dataset of accessibility values used for the presented study is available throught the &lt;a href=&#34;https://marcinstepniak.eu/projects/calculus/repository/open_data/#madrid-accessibility&#34;&gt;open data&lt;/a&gt; repository.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&#34;contributors&#34;&gt;Contributors&lt;/h2&gt;

&lt;p&gt;This study was prepared in collaboration with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Borja Moya-Gómez (tGIS Research Group, Complutense University of Madrid)&lt;/li&gt;
&lt;li&gt;Juan Carlos Garcia Palomares (tGIS Research Group, Complutense University of Madrid)&lt;/li&gt;
&lt;li&gt;Amparo Moyano (Department of Civil Engineering, Universidad de Castilla-La Mancha)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href=&#34;#top&#34;&gt;&lt;strong&gt;Back to top&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;br&gt;&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>{DepartureTime} R package</title>
      <link>https://marcinstepniak.eu/post/departuretime-r-package/</link>
      <pubDate>Mon, 18 May 2020 00:00:00 +0000</pubDate>
      <guid>https://marcinstepniak.eu/post/departuretime-r-package/</guid>
      <description>

&lt;p&gt;I have created my first (ever!) #rstats package. It is called &lt;code&gt;{DepartureTime}&lt;/code&gt; and its purpose is to prepare a dataset with several departure times for temporally sensitive accessibility analysis.&lt;/p&gt;

&lt;h3 id=&#34;what-does-departuretime-do&#34;&gt;What does &lt;code&gt;{DepartureTime}&lt;/code&gt; do?&lt;/h3&gt;

&lt;p&gt;The package consists of one function which permits you to generate a series of departure times applying user-defined temporal resolution and one of four different sampling procedures:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Systematic&lt;/strong&gt; sampling method: departure times are selected using a regular interval defined by the frequency&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Simple Random&lt;/strong&gt; sampling method: a specified number of departure times (defined by the frequency) is randomly selected from the time window&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hybrid&lt;/strong&gt; sampling method: departure times are randomly selected from given time intervals (resulted from applied temporal resolution)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Constrained Random Walk Sampling&lt;/strong&gt; sampling method: a first departure time is randomly selected from the subset of the length defined by the frequency and beginning of the time window; then, the next departure time is randomly selected from the subset limited by &lt;code&gt;\(Tn+f/2\)&lt;/code&gt;  and  &lt;code&gt;\(Tn+f+f/2\)&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An example of the result of sampling procedures for 20-minute temporal resolution and 1-hour-long time window (07:00-08:00) illustrates the following table:&lt;/p&gt;

&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Sampling method&lt;/th&gt;
&lt;th&gt;Departure times&lt;/th&gt;
&lt;th&gt;Comments&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;

&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Systematic&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;07:00; 07:20, 7:40, 08:00&lt;/td&gt;
&lt;td&gt;regular interval of 20 minutes&lt;sup&gt;1&lt;/sup&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Simple Random&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;07:18; 07:51; 07:55&lt;/td&gt;
&lt;td&gt;3 randomly selected departure times from the time window&lt;sup&gt;2&lt;/sup&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Hybrid&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;07:02; 07:23; 07:50&lt;/td&gt;
&lt;td&gt;One randomly selected departure time from each time interval period&lt;sup&gt;3&lt;/sup&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Random Walk&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;07:15; 07:36; 07:49&lt;/td&gt;
&lt;td&gt;on average there should be 20-minute interval between departure times&lt;sup&gt;4&lt;/sup&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&lt;sup&gt;1&lt;/sup&gt;  as 20-minute interval fits to 60 minute time window it provides 4 departure times.&lt;br /&gt;
&lt;sup&gt;2&lt;/sup&gt;  i.e. one per each 20 min. in 60-minute time window.&lt;br /&gt;
&lt;sup&gt;3&lt;/sup&gt;  i.e. one from 07:00-07:19, one from 07:20-07:39 and one from 07:40-07:59.&lt;br /&gt;
&lt;sup&gt;4&lt;/sup&gt;  due to the nature of the sampling procedure, the number of departure times might differ.&lt;/p&gt;

&lt;p&gt;For details on sampling procedures, please consult &lt;a href=&#34;https://trid.trb.org/view/1497217&#34; target=&#34;_blank&#34;&gt;Owen &amp;amp; Murphy (2018)&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&#34;why-may-you-need-departuretime&#34;&gt;Why may you need &lt;code&gt;{DepartureTime}&lt;/code&gt;?&lt;/h3&gt;

&lt;p&gt;Briefly: because, if you include temporal dimension to your accessibility analysis, the result depends on the applied departure time. In particular, in case of public transport, accessibility level in a given area might be highly affected by the fact whether you are &amp;ldquo;lucky&amp;rdquo; or not in terms of waiting times (for the first connection and/or in case of transfers) and, in result, these values might differ substantially just because you decided on a particular departure time. In order to limit this negative impact on analysis, you need to consider different departure times and than aggregate results in order to better reflect how does one experience level of accessibility.&lt;/p&gt;

&lt;p&gt;Consider this graph presented by &lt;a href=&#34;http://www.sciencedirect.com/science/article/pii/S0965856415000191&#34; target=&#34;_blank&#34;&gt;Owen &amp;amp; Levinson (2015)&lt;/a&gt;:&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/post/post_20200518/Owen_Levinson_2015.png&#34; alt=&#34;*Source: [Owen &amp;amp; Levinson (2015)](http://www.sciencedirect.com/science/article/pii/S0965856415000191)*&#34; /&gt;{width=400px}&lt;/p&gt;

&lt;p&gt;It shows how accessibility change over time for a selected census block. Depending on the selected departure time, you can get completely different accessibility level, even though the transport system nor the distribution of activities does not change.&lt;/p&gt;

&lt;p&gt;Further, even if the level of availability does not change so drastically, you may still want to simulate different situation e.g. applying free flow, peak or out-of-peak speeds. The graph below, prepared for the Dutch case study, compares daily variation of job accessibility by car and by public transport (walk-and-ride and bike-and-ride models):&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/post/post_20200518/Pritchard_et_al_2019.png&#34; alt=&#34;*Source: [Pritchard, Stępniak and Geurs (2019)](https://www.sciencedirect.com/science/article/pii/B9780128148181000056)*&#34; /&gt;&lt;/p&gt;

&lt;p&gt;Thus, regardless transport mode, you may need to repeat analysis without changing anything but departure time (even though, a required temporal resolution would change): in case of car accessibility you may need to generate origin-destination matrices couple of times during the day, while in case of public transport you should compute travel times even couple of times per hour (I you need more information on the consequences of applied temporal resolution on precision of accessibility analysis I can shamelessly suggest you the following paper: &lt;a href=&#34;https://www.sciencedirect.com/science/article/pii/S0966692318305209&#34; target=&#34;_blank&#34;&gt;Stepniak, Pritchard, Geurs &amp;amp; Goliszek (2019)&lt;/a&gt;).&lt;/p&gt;

&lt;h3 id=&#34;how-can-you-take-advantage-of-departuretime&#34;&gt;How can you take advantage of &lt;code&gt;{DepartureTime}&lt;/code&gt;?&lt;/h3&gt;

&lt;p&gt;As described in the &lt;a href=&#34;https://www.sciencedirect.com/science/article/pii/S0966692318305209&#34; target=&#34;_blank&#34;&gt;paper&lt;/a&gt;, you can select different approach how to tackle the issue of temporal resolution. Regardless which approach you select, you would need a table which contains all departure times in order to automatize calculations. I used it in ArcGIS Network Analyst (with &lt;a href=&#34;http://esri.github.io/public-transit-tools/AddGTFStoaNetworkDataset.html&#34; target=&#34;_blank&#34;&gt;Add GTFS to a Network Dataset&lt;/a&gt; tool), but as far as I know, &lt;code&gt;{DepartureTime}&lt;/code&gt; may be also useful when working with &lt;a href=&#34;https://www.opentripplanner.org&#34; target=&#34;_blank&#34;&gt;OpenTripPlanner&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In ArcGIS you can easily prepare an arcpy code or just a ModelBuilder, which permits you to iterate by subsequent departure time. The simple ModelBuilder looks like this:&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/post/post_20200518/ModelBuilder.png&#34; alt=&#34;*Example of Model Builder in ArcGIS [(Click here for larger picture)](https://marcinstepniak.eu/img/post/post_20200518/ModelBuilder.png)*&#34; /&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;.dbf&lt;/code&gt; file with the output from &lt;code&gt;{DepartureTime}&lt;/code&gt; you need to locate in &lt;code&gt;Departure Times&lt;/code&gt; (market with the red circle) and iterate it by &lt;em&gt;Field Values&lt;/em&gt; (by &lt;code&gt;Date&lt;/code&gt; field, setting &lt;code&gt;Data type&lt;/code&gt; as &lt;em&gt;Date&lt;/em&gt;)&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;https://marcinstepniak.eu/img/post/post_20200518/ModelBuilder2.png&#34; alt=&#34;*Iterate Field Values settings*&#34; /&gt;&lt;/p&gt;

&lt;p&gt;In result of the above model, you obtain a set of origin-destination matrices, one for each of a departure time, exported to separate files (e.g. &lt;code&gt;.dbf&lt;/code&gt; files). Then, they can be aggregated in order to obtain more realistic &lt;em&gt;average travel time&lt;/em&gt; (or &lt;em&gt;average accessibility&lt;/em&gt;), e.g. during the morning peak-hours or during the day (night etc.).&lt;/p&gt;

&lt;h3 id=&#34;how-does-departuretime-work&#34;&gt;How does &lt;code&gt;{DepartureTime}&lt;/code&gt; work?&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;{DepartureTime}&lt;/code&gt; package can be installed in R directly from GitHub (if you don&amp;rsquo;t have &lt;code&gt;{devtools}&lt;/code&gt; installed, you need to install it first):&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# install.packages(&amp;quot;devtools&amp;quot;)
devtools::install_github(&amp;quot;stmarcin/DepartureTime&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The function has the following syntax and default values:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;DepartureTime &amp;lt;- function(method = &amp;quot;H&amp;quot;,
                          dy = format(Sys.Date(), &amp;quot;%Y&amp;quot;),  
                          dm = format(Sys.Date(), &amp;quot;%m&amp;quot;), 
                          dd = format(Sys.Date(), &amp;quot;%d&amp;quot;),
                          tmin = 0, tmax = 24,
                          res = 5,
                          MMDD = TRUE,
                          ptw = FALSE)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Function variables:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;method&lt;/code&gt; - sampling method; Options:

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;R&lt;/code&gt; OR &lt;code&gt;Random&lt;/code&gt;: Simple random sampling;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;S&lt;/code&gt; OR &lt;code&gt;Systematic&lt;/code&gt;: Systematic sampling;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;H&lt;/code&gt; OR &lt;code&gt;Hybrid&lt;/code&gt;: Hybrid sampling;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;W&lt;/code&gt; OR &lt;code&gt;Walk&lt;/code&gt;: Constrained random walk sampling;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;dy&lt;/code&gt;, &lt;code&gt;dm&lt;/code&gt; and &lt;code&gt;dd&lt;/code&gt; - date of the analysis (formats: YYYY, MM, DD); &lt;strong&gt;default: system date&lt;/strong&gt;;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;tmin&lt;/code&gt; and &lt;code&gt;tmax&lt;/code&gt; - limits of the time window (format: HH); &lt;strong&gt;default: full day&lt;/strong&gt; (00:00 - 24:00);&lt;/li&gt;
&lt;li&gt;&lt;code&gt;res&lt;/code&gt; - temporal resolution; &lt;strong&gt;default: 5 minutes&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;MMDD&lt;/code&gt; - date format of the output (TRUE / FALSE) &lt;strong&gt;default: TRUE&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;TRUE&lt;/code&gt;: MM/DD/YYYY;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;FALSE&lt;/code&gt;: DD/MM/YYYY;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ptw&lt;/code&gt; - print limits of subsetted time-windows; &lt;strong&gt;default: FALSE&lt;/strong&gt;;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;code&gt;DepartureTime()&lt;/code&gt; function creates a data frame with generated departure times, already formatted for ArcGIS:&lt;/p&gt;

&lt;table class=&#34;table&#34; style=&#34;width: auto !important; margin-left: auto; margin-right: auto;&#34;&gt;
 &lt;thead&gt;
  &lt;tr&gt;
   &lt;th style=&#34;text-align:left;&#34;&gt; ColumnName &lt;/th&gt;
   &lt;th style=&#34;text-align:left;&#34;&gt; Description &lt;/th&gt;
  &lt;/tr&gt;
 &lt;/thead&gt;
&lt;tbody&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:left;&#34;&gt; ID &lt;/td&gt;
   &lt;td style=&#34;text-align:left;&#34;&gt; rowID (integer), starts with 0 &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:left;&#34;&gt; Date &lt;/td&gt;
   &lt;td style=&#34;text-align:left;&#34;&gt; Departure date &amp;amp; hour &lt;/td&gt;
  &lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Example with selected user-defined parameters:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&#34;language-r&#34;&gt;DepartureTime(method = &amp;quot;S&amp;quot;,    # systematic sampling method
  dm = 5, dd = 15,             # user-defined date: 15th May, 2020 (current year)
  tmin = 7, tmax = 9,          # user-defined time window (07:00 - 09:00)
  res = 20)                    # user-defined temporal resolution (20 minutes)
&lt;/code&gt;&lt;/pre&gt;

&lt;table class=&#34;table&#34; style=&#34;width: auto !important; margin-left: auto; margin-right: auto;&#34;&gt;
 &lt;thead&gt;
  &lt;tr&gt;
   &lt;th style=&#34;text-align:right;&#34;&gt; ID &lt;/th&gt;
   &lt;th style=&#34;text-align:left;&#34;&gt; Date &lt;/th&gt;
  &lt;/tr&gt;
 &lt;/thead&gt;
&lt;tbody&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:right;&#34;&gt; 0 &lt;/td&gt;
   &lt;td style=&#34;text-align:left;&#34;&gt; 05/15/2020  07:00 &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:right;&#34;&gt; 1 &lt;/td&gt;
   &lt;td style=&#34;text-align:left;&#34;&gt; 05/15/2020  07:20 &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:right;&#34;&gt; 2 &lt;/td&gt;
   &lt;td style=&#34;text-align:left;&#34;&gt; 05/15/2020  07:40 &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:right;&#34;&gt; 3 &lt;/td&gt;
   &lt;td style=&#34;text-align:left;&#34;&gt; 05/15/2020  08:00 &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:right;&#34;&gt; 4 &lt;/td&gt;
   &lt;td style=&#34;text-align:left;&#34;&gt; 05/15/2020  08:20 &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:right;&#34;&gt; 5 &lt;/td&gt;
   &lt;td style=&#34;text-align:left;&#34;&gt; 05/15/2020  08:40 &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td style=&#34;text-align:right;&#34;&gt; 6 &lt;/td&gt;
   &lt;td style=&#34;text-align:left;&#34;&gt; 05/15/2020  09:00 &lt;/td&gt;
  &lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;You can easily save &lt;code&gt;{DepartureTime}&lt;/code&gt; output as &lt;code&gt;.dbf&lt;/code&gt; file (you need to have &lt;code&gt;{foreign}&lt;/code&gt; package installed):&lt;/p&gt;

&lt;pre&gt;&lt;code class=&#34;language-r&#34;&gt;library(DepartureTime)
library(foreign)
library(dplyr)

# generate departure times for 8-10am time window 
# with 30-minute temporal resolution applying hybrid sampling model:
DepartureTime(tmin = 8, tmax = 10, res = 30) %&amp;gt;% 
  
  #save output in OD_analysis subfolder as My_Departure_Times.dbf
  write.dbf(&amp;quot;OD_analysis/My_Departure_Times.dbf&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&#34;questions&#34;&gt;Questions?&lt;/h3&gt;

&lt;p&gt;If you have any questions, feel free to &lt;a href=&#34;https://marcinstepniak.eu/#contact&#34; target=&#34;_blank&#34;&gt;contact me&lt;/a&gt; or fill an &lt;a href=&#34;https://github.com/stmarcin/DepartureTime/issues&#34; target=&#34;_blank&#34;&gt;issue on github&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&#34;further-reading&#34;&gt;Further reading&lt;/h3&gt;

&lt;p&gt;Murphy, B., Owen, A., 2019. &lt;a href=&#34;https://jtlu.org/index.php/jtlu/article/view/1379&#34; target=&#34;_blank&#34;&gt;Temporal sampling and service frequency harmonics in transit accessibility evaluation&lt;/a&gt; Journal of Transport and Land Use 12, 893–913. &lt;a href=&#34;https://doi.org/10.5198/jtlu.2019.1379&#34; target=&#34;_blank&#34;&gt;https://doi.org/10.5198/jtlu.2019.1379&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Owen, A., Levinson, D.M., 2015. &lt;a href=&#34;http://www.sciencedirect.com/science/article/pii/S0965856415000191&#34; target=&#34;_blank&#34;&gt;Modeling the commute mode share of transit using continuous accessibility to jobs&lt;/a&gt; Transportation Research Part A: Policy and Practice 74, 110–122. &lt;a href=&#34;https://doi.org/10.1016/j.tra.2015.02.002&#34; target=&#34;_blank&#34;&gt;https://doi.org/10.1016/j.tra.2015.02.002&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Owen, A., Murphy, B., 2018. &lt;a href=&#34;https://trid.trb.org/view/1497217&#34; target=&#34;_blank&#34;&gt;Temporal Sampling and Service Frequency Harmonics in Transit Accessibility Evaluation&lt;/a&gt;, in: Transportation Research Board 97th Annual Meeting. p. 10.&lt;/p&gt;

&lt;p&gt;Pritchard, J.P., Stępniak, M., Geurs, K.T., 2019. &lt;a href=&#34;https://www.sciencedirect.com/science/article/pii/B9780128148181000056&#34; target=&#34;_blank&#34;&gt;Equity analysis of dynamic bike-and-ride accessibility in the Netherlands&lt;/a&gt;, in: Lucas, K., Martens, K., Ciommo, F. Di, Dupont-Kieffer, A. (Eds.), Measuring Transport Equity. Elsevier, pp. 73–83. &lt;a href=&#34;https://doi.org/10.1016/B978-0-12-814818-1.00005-6&#34; target=&#34;_blank&#34;&gt;https://doi.org/10.1016/B978-0-12-814818-1.00005-6&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Stępniak, M., Pritchard, J.P., Geurs, K.T., Goliszek, S., 2019. &lt;a href=&#34;https://www.sciencedirect.com/science/article/pii/S0966692318305209&#34; target=&#34;_blank&#34;&gt;The impact of temporal resolution on public transport accessibility measurement: Review and case study in Poland&lt;/a&gt; Journal of Transport Geography 75, 8–24. &lt;a href=&#34;https://doi.org/10.1016/j.jtrangeo.2019.01.007&#34; target=&#34;_blank&#34;&gt;https://doi.org/10.1016/j.jtrangeo.2019.01.007&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>The impact of temporal resolution on public transport accessibility measurement: Review and case study in Poland</title>
      <link>https://marcinstepniak.eu/publication/stepniak_et_al_2019_jtrg/</link>
      <pubDate>Sun, 28 Jul 2019 23:47:26 +0200</pubDate>
      <guid>https://marcinstepniak.eu/publication/stepniak_et_al_2019_jtrg/</guid>
      <description></description>
    </item>
    
  </channel>
</rss>
