Experimental: Distance analysis for STOP with no recognized directional tagging

This commit is contained in:
sonora 2017-10-28 16:22:18 +02:00
parent d05150f2ff
commit 2d6d6076ee

View file

@ -703,7 +703,11 @@ public class RouteDataObject {
// return 1; // return 1;
//} //}
} }
// Open: Could add some analysis if a STOP without directional tagging is shortly _behind_ an intersection // Experimental: Distance analysis for STOP with no recognized directional tagging
if (((direction == true) && (distance(0, intId) < distance(intId, getPointsLength() - 1)))
|| ((direction == false) && (distance(0, intId) > distance(intId, getPointsLength() - 1)))) {
return -1;
}
return 0; //no directional info detected return 0; //no directional info detected
} }