+ else if (conn->second == car)
+ inter.connections[from] = both;
+ }else{
+ Intersection& inter = _intersections[from];
+ hash_map<string,StreetType>::iterator conn = inter.connections.find(to);
+ if (conn == inter.connections.end())
+ inter.connections[from] = car;
+ else if (conn->second == foot)
+ inter.connections[from] = both;
+ }