correctly read osm_max_osm_station_distance, use default of 10 meters

This commit is contained in:
Patrick Brosi 2022-01-22 23:01:00 +01:00
parent e402f19cdb
commit cdbfb0966d
3 changed files with 3 additions and 12 deletions

View file

@ -27,8 +27,6 @@ using util::geo::output::GeoJsonOutput;
double Collector::add(const Trip* oldT, const Shape* oldS, const Trip* newT,
const Shape* newS) {
// This adds a new trip with a new shape to our evaluation.
// if (oldT->getId() != "pse-a779ac00") return 0;
_trips++;
if (!oldS) {
@ -213,7 +211,7 @@ std::vector<LINE> Collector::segmentize(
lastP = shape.front();
} else {
double progr = (cuts[0] - dists[to - 1]) / (dists[to] - dists[to - 1]);
auto lastP = shape[to - 1];
lastP = shape[to - 1];
lastP.setX(lastP.getX() + progr * (shape[to].getX() - shape[to-1].getX()));
lastP.setY(lastP.getY() + progr * (shape[to].getY() - shape[to-1].getY()));
}