$intersectingWays = array();
foreach ( $q as $crossRoad )
{
$crossTags = Functions::split_tags( $crossRoad[TAGS] );
if ( !in_array( "name={$roadName}", $crossRoad ) && array_key_exists( 'name', $crossTags ) )
{
$intersectingWays[] = $crossRoad['_id'];
}
}