$r = $res['result'][0];$query = [ LOC => [ '$near' => $r['l'] ], TAGS => new MongoRegex( '/^highway=(trunk|pedestrian|service|primary|secondary|tertiary|residential)/' )];$road = $c->findOne( $query );