The method described below uses Google Maps Directions API to obtain and compare travel times per mode (taking account of public transport schedules and traffic conditions) for randomly selected sets of same-distance trips, via 2 steps.
The first step is to generate origin-destination pairs (OD-pairs) to feed into the Google Maps Directions API. OD-pairs between building locations1 are generated using Python libraries OSMnx and Shapely, based on data from OpenStreetMaps for different trip lengths (e.g. 1.5, 4, and 6 kilometers) for selected administrative boundaries (also based on OpenStreetMaps data). Trip origins are randomly-selected buildings at a 3.8 – 4.2km Euclidian distance from trip destinations. Trip destinations are randomly selected buildings within 200m of the administrative city center. Figure A C.1 shows the result of 100 4-km OD-pairs for the city of Tarragona.