ad-freiburg / pfaedle

Precise map-matching for public transit feeds. Generates high-quality GTFS shapes from OSM data.
GNU General Public License v3.0
206 stars 29 forks source link

MOT option seems mandatory #37

Closed laxopy closed 2 years ago

laxopy commented 2 years ago

Should the -m option be required? As per the documentation this seems not to be mandatory, but I've been trying to run the code unsuccessfully without it. Also, when I add it, it does not look clear to me which values this option can get assigned.

If the option is mandatory it would really help updating the documentation with some examples.

(base) ....@.... build % pfaedle -x -D spain-latest.osm gtfs-in

 [2022-09-16 08:57:27.061] ERROR: No MOT configurations specified and no implicit configurations found, see --help.
patrickbr commented 2 years ago

The error message is slightly confusing, sorry. The problem is not that no -m option was specified, but that pfaedle couldn't find a configuration file anywhere. The configuration file contains information on how to translate the OSM data into a graph for each MOT (which ways and nodes to use/keep, etc.).

A default configuration file pfaedle.cfg can be found in this repo and will be installed with make install. Custom configuration files can be specified with the -c flag. If no -c flag is set, pfaedle will parse and merge the following cfg files in the given order (if present): <install prefix>/etc/pfaedle/pfaedle.cfg, $HOME/.config/pfaedle/pfaedle.cfg, <CWD>/pfaedle.cfg. Values given in later files will overwrite earlier defined values.