this.edge = edge;
this.location = new Point2DExt(location);
shape = new Rectangle2DExt(location.x-10,location.y-10,20,20);
//Find the point on the edge where the accident happens relative to the edge starting point
Point2D edgeStartingPoint = edge.getLanes().get(0).GetPoint(0);
double relativeLocation = Math.min(edgeStartingPoint.distance(this.location),edge.getLength());