Commit graph

145 commits

Author SHA1 Message Date
Patrick Brosi
ff8748ef3f some bugfixes 2022-01-22 00:57:44 +01:00
Patrick Brosi
15e84d930a update segmentation in shapevl, add --unique mode 2022-01-21 23:59:14 +01:00
Patrick Brosi
c3bc12eb8c bugfixes 2022-01-17 15:11:24 +01:00
Patrick Brosi
46482788ff remove debug output 2022-01-17 13:50:18 +01:00
Patrick Brosi
39fb167cbf some minor changes 2022-01-17 13:29:35 +01:00
Patrick Brosi
ea79e3ac52 remove gtfs_has_shapes from stats output, was always true as checked after the shapes were calculated 2022-01-14 17:44:48 +01:00
Patrick Brosi
516f04b9c5 bts classifier 2022-01-13 21:41:52 +01:00
Patrick Brosi
749044ce97 fix misnamed turning_circle parameter 2022-01-12 20:21:27 +01:00
Patrick Brosi
1e516f4d2b faster shapevl 2022-01-12 17:20:10 +01:00
Patrick Brosi
1febc192ce add "all" to keep-tags option for osmfilter 2022-01-11 23:21:12 +01:00
Patrick Brosi
c25d174e60 add --osmfilter option 2022-01-11 17:32:50 +01:00
Patrick Brosi
6473dcdb52 json output mode for shapevl 2022-01-09 23:58:18 +01:00
Patrick Brosi
f10397db41 add gaussian noise parameter 2022-01-09 15:09:41 +01:00
Patrick Brosi
0e5213f049 fix 2022-01-07 17:41:03 +01:00
Patrick Brosi
6b445b84d1 some updates to shapevl 2022-01-07 17:35:30 +01:00
Patrick Brosi
3a08b63d8e better stats.json 2022-01-05 11:24:42 +01:00
Patrick Brosi
4c29892658 * speed up hop-to-hop calculations
* better and faster trip clustering: trip tries
* add --write-colors to extract line colors from OSM data
* refactor config parameter names, update default pfaedle.cfg
* add --stats for writing a stats.json file
* add --no-fast-hops, --no-a-star, --no-trie for debugging
* general refactoring
2022-01-04 17:19:27 +01:00
Patrick Brosi
f1822868c5 include cstddef in Node.h 2021-11-30 12:46:24 +01:00
Patrick Brosi
57de18844f update cppgtfs 2021-11-30 12:45:58 +01:00
Patrick Brosi
364d6a19e5 update cppgtfs 2021-09-10 12:53:28 +02:00
Patrick Brosi
cfc41d01e7 remove check which was alywas true 2021-09-10 12:36:19 +02:00
Patrick Brosi
16e66e59a5 update cppgtfs 2021-09-09 00:14:52 +02:00
Patrick Brosi
366e4b2aba update cppgtfs 2021-09-08 21:21:44 +02:00
Patrick Brosi
deaaf23caf linter 2021-07-24 11:02:02 +02:00
Patrick Brosi
cea4474631 write doubles as bytes to shape container, not strings, to safe some disk space and speed up writing 2021-07-24 11:02:02 +02:00
Patrick Brosi
b0a2cff43a fix possible race condition in Normalizer cache 2020-11-20 17:00:20 +01:00
Alexander Held
08b0685ad1
Optional transit line penalties when no explicit line was given (#19)
* Enable transit line penalties also when no explicit line was given

Currently, if no transit line is given, all edges get penalty factor 0
regardless of whether there are transit lines following the edge or not.
The change introduced in this commit will give penalty factor 0 if there
is at least one transit line following the edge and penalty factor 1 if
there are no tranist lines at all following the edge.
Behavior in the case when a transit line is given is untouched.

This should improve routing results by preferring edges with
associated transit lines. This used to be the behaviour before
some refactoring. Maybe it was broken unintentionally.
2020-10-13 20:27:20 +02:00
Alexander Held | geOps
c023bb963d Fix edge splitting fragment being registered with wrong geometry in edge grid
If I'm not mistaken, there is a typo in the OsmBuilder when an edge is split
into two edges to insert a station: one of the new edges is registered with
the wrong geometry in the edge grid. This should fix it.
2020-09-30 16:20:04 +02:00
Patrick Brosi
69dc466605 remove empty variable from link 2020-05-26 10:23:24 +02:00
Alexander Matheisen
6c42f8244e Fix name of config param 2020-02-26 11:36:34 +01:00
Patrick Brosi
31f9cb72ff refactoring 2019-09-16 00:39:17 +02:00
Patrick Brosi
a5931eb9ec update util 2019-09-06 15:19:22 +02:00
Patrick Brosi
06aefa538a upate util 2019-09-06 01:24:24 +02:00
Patrick Brosi
feacae92ef output all GeoJSON as WGS84 to be RFC 7946 conform 2019-07-23 22:47:35 +02:00
Patrick Brosi
27da2a9c9e output -T geojson as WGS84 coordinates 2019-07-23 21:32:07 +02:00
Patrick Brosi
79303f12f2 update /util 2019-06-28 15:10:15 +02:00
Patrick Brosi
df1ba83a53 check if tmp is null 2019-05-14 00:46:53 +02:00
Patrick Brosi
347badf770 better tmp dir selection 2019-05-14 00:11:15 +02:00
Patrick Brosi
9d19e344d3 refactoring 2019-05-13 20:05:51 +02:00
Patrick Brosi
67308d02e9 centralize code for tmp storage file creation 2019-05-13 18:56:43 +02:00
Patrick Brosi
ee948a8810 prevent possible race condition while obtaining collision-free shape ID 2019-05-13 15:05:34 +02:00
Patrick Brosi
0db43ad457 update cfgparser 2019-05-02 01:20:35 +02:00
Patrick Brosi
78f9eb7044 update cppgtfs 2019-05-01 22:47:00 +02:00
Patrick Brosi
f6f1de05d2 remove unused class member 2019-02-11 17:55:38 +01:00
Patrick Brosi
1dff5eaf64 catch polymorphic exceptions by const reference 2019-02-11 17:55:05 +01:00
Patrick Brosi
d995f77b53 add missing stdexcept includes 2019-02-11 12:38:30 +01:00
Patrick Brosi
3e8672a268 fix typo in heur dist 2019-02-06 01:51:24 +01:00
Patrick Brosi
02bda75f01 update submodules 2019-02-04 02:49:41 +01:00
Patrick Brosi
549cc90616 use current dir as default dbg path, not ./geo 2019-02-03 19:33:35 +01:00
Patrick Brosi
89be7a1760 handle station entrances (should only occur in erroneous feeds) 2019-02-03 14:14:31 +01:00
Patrick Brosi
4733b0c676 refactoring 2019-02-03 12:48:48 +01:00
Patrick Brosi
2fb157ef37 dont output warning for unsnap if station lies outside the GTFS bounding box (because the trip it belongs to was filtered for some reason) 2019-01-16 15:37:42 +01:00
Patrick Brosi
8fb21919f3 only fail if not sort-in succeeded at all 2019-01-15 02:31:10 +01:00
Patrick Brosi
7835242cb8 update cppgtfs 2019-01-14 12:51:14 +01:00
Patrick Brosi
de787243c1 update cppgtfs 2019-01-13 01:42:13 +01:00
Patrick Brosi
72bc6106ae explicitely check if intermediate file is not already present in GTFS writing 2019-01-13 01:41:45 +01:00
Patrick Brosi
73ad8fdb96 update src/util 2019-01-12 01:46:29 +01:00
Patrick Brosi
50bbbc044d use default constructor in util lib to fix clang-5 compilation error 2019-01-12 01:38:19 +01:00
Patrick Brosi
eff4ee4521 update cppgtfs 2019-01-12 01:32:38 +01:00
Patrick Brosi
118beffe71 require gcc 4.9 because of incomplete regex support in gcc 4.8 2019-01-12 01:31:17 +01:00
Patrick Brosi
63f0b61ea1 clean up and refactor half-baked development commits and squash them into a new version.
Changes:

* support for multiple GTFS feeds as input in filtering, read default global and local configuration files
* be a bit more memory conservative
* make caching optional
* dont delete orphan edge if it would transform a degree 3 node with a possible full turn into a degree 2 node eligible for contraction
* dedicated filters for funicular and gondola
* make max snap level option more intuitive
* allow filter rules for level 0
* additional fallback for station snapping
* dont try to route for MOT unequal to trip in -T mode, force-snap to orphaned OSM station if not snap was possible
* write bounds to filtered osm
* remove unused surrounding heuristic
* use bus lanes info
* be a bit more tolerant for bus oneway streets
* create missing directories
* error if no cfg is present, clean up evaluation Makefile
2019-01-12 01:08:13 +01:00
Patrick Brosi
2cc2d2dc23 refactoring 2018-08-17 16:42:26 +02:00
Patrick Brosi
69a360c48f handle cases where multiple endpoints are colinear as non-intersecting for line segments (because otherwise it cannot be used to check if intersection() has undefined behaviour, as there will be an infinite number of intersections) 2018-08-17 15:07:20 +02:00
Patrick Brosi
95ce5ba03d correctly clear stringstream 2018-08-10 19:17:48 +02:00
Patrick Brosi
dbceb0ef74 revert some changes in util 2018-08-10 16:55:27 +02:00
Patrick Brosi
8446db5c4b make geometry precision configurable for build 2018-08-10 16:42:38 +02:00
Patrick Brosi
486a8136fd use double precision 2018-08-10 15:21:27 +02:00
Patrick Brosi
967963e180 use bus=designated 2018-08-09 20:55:23 +02:00
Patrick Brosi
18c00718f6 add util/json to repo 2018-08-09 19:33:20 +02:00
Patrick Brosi
dfce1a44fc refactoring 2018-08-09 19:32:54 +02:00
Patrick Brosi
10b72785ba evaluate our approach at the end in eval 2018-08-09 18:41:52 +02:00
Patrick Brosi
03aa3c5a7d fix deg output in geographjsonoutput 2018-08-08 18:58:48 +02:00
Patrick Brosi
713262f756 fix bug in line segment intersection 2018-08-08 17:36:28 +02:00
Patrick Brosi
f56294b597 correct use of numeric_limits 2018-08-02 19:41:39 +02:00
Patrick Brosi
64b83f569c refactoring 2018-08-01 14:25:54 +02:00
Patrick Brosi
5703eb47bd refactoring 2018-07-25 20:14:46 +02:00
Patrick Brosi
7f0443243c be a bit less verbose 2018-07-24 19:33:18 +02:00
Patrick Brosi
4220ad6efb add missing include 2018-07-23 17:10:29 +02:00
Patrick Brosi
e584eb7cbd another try to build on osx 2018-07-23 17:05:14 +02:00
Patrick Brosi
eb415cd234 use ctest command for verbose output 2018-07-23 03:07:28 +02:00
Patrick Brosi
df2ab2df77 try to compile with clang and on osx in travis 2018-07-23 02:46:31 +02:00
Patrick Brosi
30883e6487 fix some compiler warnings 2018-07-22 18:37:03 +02:00
Patrick Brosi
13fb21f626 get rid of boost 2018-07-22 17:32:31 +02:00
Patrick Brosi
63dfda9749 delete some unneeded code 2018-07-19 02:08:10 +02:00
Patrick Brosi
4710b4ae20 further work on util 2018-07-18 19:26:34 +02:00
Patrick Brosi
3af004e49b more work on util 2018-07-17 19:33:05 +02:00
Patrick Brosi
223ffa6f6b some work on util 2018-07-16 02:03:10 +02:00
Patrick Brosi
d387314715 get rid of libboost dependency 2018-07-15 14:13:31 +02:00
Patrick Brosi
4674f0f116 make destructor virtual 2018-07-13 18:04:27 +02:00
Patrick Brosi
b07110840e some work on util 2018-07-12 14:23:29 +02:00
Patrick Brosi
cf79e67631 changes 2018-07-10 17:04:59 +02:00
Patrick Brosi
73eb2c16da changes 2018-07-06 16:22:06 +02:00
Patrick Brosi
57efddbcf3 add missing submodule 2018-06-09 17:33:19 +02:00
Patrick Brosi
7d70f3c529 add submodules 2018-06-09 17:28:38 +02:00
Patrick Brosi
efcd3e1892 initial commit 2018-06-09 17:14:08 +02:00